Get cloud provider accounts
You can retrieve a list of the cloud provider accounts that have been added to BlueXP.
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": "subsctionIDshownhere"
}
],
"azureAccounts": [],
"gcpStorageAccounts": [],
"nssAccounts": []
}