Create Cloud Account Async
Create a cloud account in the current organization
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
If provided, it only validates the credentials in the Cloud Account Specification, and cloud account will not be created.
CloudAccount instance
Show optional properties
{
"name": "string",
"cloudAccountType": "vsphere, aws, azure, nsxt, vmc",
"cloudAccountProperties": {},
"regions": [
{
"name": "East Asia",
"externalRegionId": "eastasia"
}
]
}
{
"name": "string",
"description": "string",
"cloudAccountType": "vsphere, aws, azure, nsxt, vmc",
"privateKeyId": "ACDC55DB4MFH6ADG75KK",
"privateKey": "gfsScK345sGGaVdds222dasdfDDSSasdfdsa34fS",
"associatedCloudAccountIds": [
"42f3e0d199d134755684cd935435a"
],
"associatedMobilityCloudAccountIds": {
"42f3e0d199d134755684cd935435a": "BIDIRECTIONAL"
},
"cloudAccountProperties": {
"supportPublicImages": "true",
"acceptSelfSignedCertificate": "true"
},
"customProperties": {
"sampleadapterProjectId": "projectId"
},
"regions": [
{
"name": "East Asia",
"externalRegionId": "eastasia"
}
],
"createDefaultZones": true,
"tags": [
{
"key": "env",
"value": "dev"
}
],
"certificateInfo": {
"certificate": "-----BEGIN CERTIFICATE-----\nMIIDHjCCAoegAwIBAgIBATANBgkqhkiG9w0BAQsFADCBpjEUMBIGA1UEChMLVk13\nYXJlIEluYAAc1pw18GT3iAqQRPx0PrjzJhgjIJMla\n/1Kg4byY4FPSacNiRgY/FG2bPCqZk1yRfzmkFYCW/vU+Dg==\n-----END CERTIFICATE-----\n-"
}
}
A human-friendly name used as an identifier in APIs that support this option.
A human-friendly description.
Cloud account type
Access key id or username to be used to authenticate with the cloud account
Secret access key or password to be used to authenticate with the cloud account.
Cloud accounts to associate with this cloud account
Cloud Account IDs and directionalities create associations to other vSphere cloud accounts that can be used for workload mobility. ID refers to an associated cloud account, and directionality can be unidirectional or bidirectional. Only supported on vSphere cloud accounts.
Cloud Account specific properties supplied in as name value pairs
Additional custom properties that may be used to extend the Cloud Account.
A set of regions to enable provisioning on.Refer to /iaas/api/cloud-accounts/region-enumeration. 'regionInfos' is a required parameter for AWS, AZURE, GCP, VSPHERE, VMC, VCF cloud account types.
Create default cloud zones for the enabled regions.
A set of tag keys and optional values to set on the Cloud Account
Specification for certificate for a cloud account.
Accepted
"RequestTracker Object"
Progress of the request as percentage.
Status message of the request.
Status of the request.
Collection of resources.
Name of the operation.
ID of this request.
Self link of this request.
ID of the deployment, this request is connected to.
Invalid Request - bad data
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Forbidden
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"cloudAccountProperties:"object","cloudAccountType:"string","name:"string","regions":["object"]}' https://{api_host}/iaas/api/cloud-accounts