Get cloud provider accounts

Contributors netapp-ranuk Download PDF of this page

You can retrieve a list of the Cloud Manager accounts available for the supported cloud platforms.

1. Get the cloud provider accounts

HTTP method Resource path

GET

/occm/api/accounts/cloud-providers

curl example
curl --location --request GET '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>'
Input parameters

None

Output

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

JSON output example
{
    "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": "aws-a0s9zvu5ghepz0j9yamr2wsjk-jFyX7UNDTjB"
        }
    ],
    "azureAccounts": [],
    "gcpStorageAccounts": [],
    "nssAccounts": []
}