REST API - export

appliance infraprofile configs: export

Exports the desired profile specification.

Request:

HTTP request

POST https://{server}/api/appliance/infraprofile/configs

?action=export
{
    "profiles"[
        "obj-103",
        "obj-103"
    ],
    "encryption_key""secret string",
    "description""string"
}

Body Parameters:

Name Type Description
bold = required
- profiles_spec Optional.
-.encryption_key secret Encryption Key to encrypt/decrypt profiles.

Optional. If unset encryption will not be used for the profile.

-.description string Custom description provided by the user.

Optional. If unset description will be empty.

-.profiles string[] Profiles to be exported/imported.

Optional. 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:

HTTP Status Code: 200

Response Body Structure:

"string"

Headers:

None

Type:

Name Type Description
bold = required
- string Configuration specification JSON in string format.

Errors:

HTTP Status Code Type Description
500 error If there is unknown internal error. The accompanying error message will give more details about the failure.
404 not_found If there is no profile associated.
503 service_unavailable If the service is not available.
401 unauthenticated If the caller is not authenticated.