Update Site
Update an existing site to support actions like reconnecting. The platform will keep the site up to date as long as the site remains connected and healthy, thus, updating information on the site is not required. However, in the case of a connection being lost, update allows the site to be reconnected using provided credentials.
Notes:
- The credentials provided are one-time use to re-establish the connection. They are never stored or re-used.
- Connection Type Changes Not Allowed: You cannot change the connection type (DYNAMIC <-> STATIC) during a reconnect operation. The connection type must remain the same as it was during initial onboarding.
- To Change Connection Type: You must first offboard the site, then onboard it again with the new connection type.
- IP/Hostname Changes Allowed:
- For DYNAMIC mode: You can change the hostname during reconnect.
- For STATIC mode: You can change the host addresses (IPs/ports) during reconnect.
The site ID of the site being updated.
All required details for taking action on a site.
{
"site_connection_info": {
"connection_type": "DYNAMIC",
"hostname": "192.168.0.1",
"username": "admin",
"password": "password123",
"certificate": "{nsx_cert}"
},
"site_type": "NSX_MANAGER",
"site_name": "nsx-mgr-0",
"desired_state": "ONBOARD"
}
ACCEPTED
{
"id": "b8f47985-22ed-3193-bca8-11c7b025cbce",
"status_url": "/operation/status"
}
UUID identifier of the response.
The URL to check the status of the operation.
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unexpected error
{
"error_code": 200001,
"error_message": "An internal server error occurred.",
"module_name": "site"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/ssp/sites/{site-id}