Create Customization Specs
Creates a customization specification. if you do not have all of the privileges described as follows: - Operation execution requires VirtualMachine.Provisioning.ModifyCustSpecs.
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
The information i.e. name, description and the settings i.e hostname, ip address etc for the new customization specification that needs to be created.
{
"description": "string",
"name": "string",
"spec": {
"configuration_spec": {},
"global_DNS_settings": {},
"interfaces": [
{
"adapter": {}
}
]
}
}
Description of the specification.
Name of the specification.
Authentication
Response
Response BodyResponse Body
The name of the customization specification that is created. The result will be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec.
Errors
com.vmware.vapi.std.errors.already_exists : if a customization specification is already present with the same name. | com.vmware.vapi.std.errors.invalid_argument : if the specified specification is not a valid one.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/vcenter/guest/customization-specs
x-vmw-doc-operation: create