Enumerate Regions

Enumerate Regions

Get the available regions for specified cloud account

Request
URI
POST
https://{api_host}/iaas/api/cloud-accounts/region-enumeration
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Request Body

CloudAccount instance

CloudAccountSpecification of type(s) application/json
Optional

Show optional properties

{
    "name": "string",
    "cloudAccountType": "vsphere, aws, azure, nsxv, nsxt",
    "privateKeyId": "ACDC55DB4MFH6ADG75KK",
    "privateKey": "gfsScK345sGGaVdds222dasdfDDSSasdfdsa34fS",
    "cloudAccountProperties": {},
    "regionIds": [
        {}
    ]
}
{
    "name": "string",
    "description": "string",
    "cloudAccountType": "vsphere, aws, azure, nsxv, nsxt",
    "privateKeyId": "ACDC55DB4MFH6ADG75KK",
    "privateKey": "gfsScK345sGGaVdds222dasdfDDSSasdfdsa34fS",
    "associatedCloudAccountIds": [
        "string"
    ],
    "cloudAccountProperties": {
        "cloudAccountProperties": "string"
    },
    "customProperties": {
        "customProperties": "string"
    },
    "regionIds": [
        "string"
    ],
    "createDefaultZones": true,
    "tags": [
        {
            "key": "string",
            "value": "string"
        }
    ]
}
Responses
200

successful operation

Returns CloudAccountRegions of type(s) application/json
"CloudAccountRegions Object"
array of string
externalRegionIds
Required

A set of region ids for the cloud account.


400

Invalid Request - bad data

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"cloudAccountProperties:"object","cloudAccountType:"string","name:"string","privateKey:"string","privateKeyId:"string","regionIds":["string"]}' https://{api_host}/iaas/api/cloud-accounts/region-enumeration