Retrieve All Sites
Get all sites currently in SSP.
Get all sites currently in SSP.
Request
URI
GET
https://{api_host}/v3/sites
COPY
Query Parameters
string
site_name
Optional
Use this request param to filter by site name.
string
site_type
Optional
Use this request param to filter by site type.
Possible values are :
NSX,
SSP,
AVI,
string
current_state
Optional
Use this request param to filter by a site's current status.
Possible values are :
READY,
NOT_READY,
INACTIVE,
UNKNOWN,
Authorization
This operation uses the following authorization methods.
Responses
200
OK
Returns
SiteListV3
of type(s)
application/json
This response body class contains all of the following:
ListResult
{
"sites": [
{
"site_type": "string",
"desired_state": "string",
"site_discovery_info": {
"discovery_hostname": "string",
"username": "string",
"password": "string",
"certificate": "string"
},
"site_name": "string",
"virtual_ip": "number",
"manager_hostname": "string",
"cluster_manager_ips": [
"string"
],
"status": {
"connection_status": "string",
"infrastructure_sync_agent_status": {
"status": "string",
"last_transition_time": "string"
},
"inventory_sync_agent_status": {
"status": "string",
"last_transition_time": "string"
},
"cluster_status": "string",
"nsx_cluster_id": "string",
"nsx_version": "string",
"configuration_status": {
"site_precheck_status": "string",
"site_precheck_message": "string",
"current_status": "string"
},
"conditions": [
{
"name": "string",
"message": "string",
"last_transition_time": "string",
"state": "string"
}
]
}
}
]
}
default
unexpected error
Returns
Error
of type(s)
application/json
"Error Object"
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/v3/sites