Export Configs
Released in v7.0.0Exports the desired profile specification.
Request
URLURL
https://{api_host}/api/appliance/infraprofile/configs?action=export
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
InfraprofileConfigsProfilesSpec of type application/json (required){
"description": "string",
"encryption_key": "string",
"profiles": [
"string"
]
}
string
description
Optional
Custom description provided by the user. If unset description will be empty.
string
encryption_key
Optional
Encryption Key to encrypt/decrypt profiles. If unset encryption will not be used for the profile.
array of
string
profiles
Optional
Profiles to be exported/imported. If unset or empty, all profiles will be returned. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.infraprofile.profile. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.infraprofile.profile.
Response
Response
Response BodyResponse Body
200 OK returns
string
of type application/json
Configuration specification JSON in string format.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"description":"string","encryption_key":"string","profiles":["string"]}' https://{api_host}/api/appliance/infraprofile/configs?action=export
Errors
404
com.vmware.vapi.std.errors.error : If there is unknown internal error. The accompanying error message will give more details about the failure. | com.vmware.vapi.std.errors.not_found : If there is no profile associated.