Get accounts
You can perform this workflow to retrieve accounts.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Resource path |
---|---|
GET |
/occm/api/accounts |
Curl example
curl --request POST \
--location "https://netapp-cloud-account.auth0.com/occm/api/accounts" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
Additional input parameters
The JSON input example includes the minimum list of parameters.
Parameter | Type | Required | Description |
---|---|---|---|
|
Query |
No |
Identifies the provider type |
JSON output example
The JSON output example includes the list of occm accounts.
Example output
{ "awsAccounts": [ { "publicId": "InstanceProfile", "accountName": "Instance Profile", "accountType": "INSTANCE_PROFILE", "accountId": "73300470000", "accessKey": "", "assumeRole": null, "occmRole": "occm", "vsaList": [ { "publicId": "VsaWorkingEnvironment-fay4FNet", "name": "ziv01we02", "workingEnvironmentType": "AWS" } ], "subscriptionId": "aws-a0s9zvu5ghepz0j9yamr2wsjk-jFyX7UNDTjB" } ], "azureAccounts": [], "gcpStorageAccounts": [], "nssAccounts": [] }