API endpoints to get list of policies and all details
search cancel

API endpoints to get list of policies and all details

book

Article ID: 412902

calendar_today

Updated On:

Products

DX SaaS

Issue/Introduction

You need API endpoints to export the data in bulk which can provide each and every field of policies with condition.

Resolution

API endpoints details to get list of policies and all details


You need to create a user token and use it as authorization type Bearer.

Generate a User Token
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-operational-observability/saas/settings/access-tokens-security/manage-tokens/generate-a-user-token.html


Step 1-
In first step you get the List All Policies within your account using the following API query.

method: GET

https://apmgw.dxi-na1.saas.broadcom.com/<tenant_identifier>/dxinotify/notify/v1/filters/{orgid}

Where:

    <tenant_identifier>
    is the cohort ID. For example,

    if the Cohort ID
    is 55NB47U7-F53C-XXXXX-8229-2YYYYYYYYJD,

    then the <tenant_identifier>
    is 55NB47U7F53CXXXXX82292YYYYYYYYJD
    
    {orgid}
    is the Tenant ID. 
    
You can get both parameters for your account from Settings -> Connector Parameters


authorization type: Bearer token <you need to create a user token and use it as describe above>

 

Step 2-
Once you get the list, then you need to call the following API query for each Policy to get the details.


method: GET

https://apmgw.dxi-na1.saas.broadcom.com/<tenant_identifier>/dxinotify/notify/v1/filters/{orgId}/{Policyname}

 

Where:

    <tenant_identifier>
    is the cohort ID. For example,

    if the Cohort ID
    is 55NB47U7-F53C-XXXXX-8229-2YYYYYYYYJD,

    then the <tenant_identifier>
    is 55NB47U7F53CXXXXX82292YYYYYYYYJD

    
    {orgid}
    is the Tenant ID. 
    
    {Policyname}
    is the name of the policy in your account and should exist in the response for first API query.
    
    
authorization type: Bearer token <you need to create a user token and use it as describe above>