Export Customization Specs
Released in v7.0.0Returns the content of the customization specification in the specified format. Note that any passwords in the customization specification will be set to blank values during the export operation.
Request
URLURL
https://{api_host}/rest/vcenter/guest/customization-specs/{name}?action=export
Parameters
Parameters
string
name
Required
The name of the customization specification that has to be returned.
The parameter must be an identifier for the resource type: com.vmware.vcenter.guest.CustomizationSpec.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
GuestCustomizationSpecsExportRequestBody of type application/json (required){
"format": "enum"
}
format
Required
The format in which the customization specification has to be returned.
Possible values are:
Response
Response
Response BodyResponse Body
200 OK returns
GuestCustomizationSpecsExportResponseBody
of type application/json
The string representation of the customization specification in the specified format.
{
"value": "string"
}
string
value
Optional
The string representation of the customization specification in the specified format.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"format":"enum"}' https://{api_host}/rest/vcenter/guest/customization-specs/{name}?action=export
Errors
401
com.vmware.vapi.std.errors.unauthenticated : if the user can not be authenticated. | com.vmware.vapi.std.errors.unauthorized : if the user doesn't have the required privileges.
404
com.vmware.vapi.std.errors.not_found : if the customization specification is not found.
503
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.