Skip to main content

Get cloud provider accounts

Contributors netapp-ranuk

You can retrieve a list of the cloud provider accounts that have been added to BlueXP.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Resource path

GET

/occm/api/accounts/cloud-providers

Curl example
curl --request GET \
--location "https://cloudmanager.cloud.netapp.com/occm/api/accounts/cloud-providers" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
JSON output example

The JSON output example shows the cloud provider accounts returned in separate named arrays.

Example output
{
    "awsAccounts": [
        {
            "publicId": "InstanceProfile",
            "accountName": "Instance Profile",
            "accountType": "INSTANCE_PROFILE",
            "accountId": "733004784675",
            "accessKey": "",
            "assumeRole": null,
            "occmRole": "occm",
            "vsaList": [
                {
                    "publicId": "VsaWorkingEnvironment-N6BPfglr",
                    "name": "ziv04we01ha",
                    "workingEnvironmentType": "AWSHA"
                }
            ],
            "subscriptionId": "subsctionIDshownhere"
        }
    ],
    "azureAccounts": [],
    "gcpStorageAccounts": [],
    "nssAccounts": []
}