Get accounts
You can perform this workflow to retrieve accounts.
1. Get accounts
HTTP method | Resource path |
---|---|
GET |
/occm/api/accounts |
- curl example
curl --location --request POST '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>'
- Input parameters
-
-
(Optional) Query parameters:
providerType
string
-
- Output
-
The JSON output example includes the list of occm accounts.
- JSON output example
{
"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": []
}