REST API - execute

vcenter nsx recovery: execute

Recovers the system from the loss of WCP service and/or NSX. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Request:

HTTP request

POST https://{server}/api/vcenter/nsx/recovery

?action=execute
{
    "root_password""secret string"
}

Body Parameters:

Name Type Description
bold = required
- execute_spec Contains information related to recovery of NSX for WCP clusters.
-.root_password secret Root password for the NSX-I VM and NSX Edge nodes that would be created. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional. This field is currently required.

Response:

HTTP Status Code: 200

Response Body Structure:

"obj-103"

Headers:

None

Type:

Name Type Description
bold = required
- string The task identifier for the operation. The task is not cancellable.

Errors:

HTTP Status Code Type Description
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user is not a member of the Administrators group.
400 not_allowed_in_current_state if the operation is already in progress.
400 already_in_desired_state if the operation is not needed.
400 invalid_argument if spec contains any errors.
500 internal_server_error if the type of recovery is invalid.
500 error for any other unspecified error.