Enumerate V Sphere Regions

Enumerate V Sphere Regions

Get the available regions for specified vSphere cloud account

Request
URI
POST
https://{api_host}/iaas/api/cloud-accounts-vsphere/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

CloudAccountVsphere specification

CloudAccountVsphereSpecification of type(s) application/json
Optional

Show optional properties

{
    "name": "string",
    "hostName": "vc.mycompany.com",
    "username": "[email protected]",
    "password": "cndhjslacd90ascdbasyoucbdh",
    "regionIds": [
        {}
    ]
}
{
    "name": "string",
    "description": "string",
    "hostName": "vc.mycompany.com",
    "acceptSelfSignedCertificate": false,
    "associatedCloudAccountIds": [
        "string"
    ],
    "dcid": "23959a1e-18bc-4f0c-ac49-b5aeb4b6eef4",
    "username": "[email protected]",
    "password": "cndhjslacd90ascdbasyoucbdh",
    "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 '{"hostName:"string","name:"string","password:"string","regionIds":["string"],"username:"string"}' https://{api_host}/iaas/api/cloud-accounts-vsphere/region-enumeration