Create Zones
Creates a zone based on the provided specifications. if you do not have all of the privileges described as follows: - Operation execution requires Zone.Manage.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specifications for the zone to be created.
{
"zone": "string"
}
Identifier of the zone. It has the following restrictions: 1. The ID must be 63 characters or less (cannot be empty), 2. The ID must begin and end with a lowercase alphanumeric character ([a-z0-9]), 3. The ID must only contain dashes (-), and lowercase alphanumerics in between, 4. The ID must be unique within the vCenter in which it is created. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.
Description of the zone. If unset or empty, an empty description is set.
Authentication
Response
Response BodyResponse Body
The identifier of the created zone. The result will be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.
Errors
com.vmware.vapi.std.errors.already_exists : if a zone with the same identifier already exists in this vCenter server. | com.vmware.vapi.std.errors.invalid_argument : if any of the input information in the createSpec is invalid.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have Zones.Manage privilege.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: create