Update a Site (v4.4)
Update an existing site.
Path Parameters
- tenant_id string required
The tenant ID.
- site_id string required
ID of the site. More details on the site can be retrieved by querying the sites API.
- application/json
Request Body
Details of the site to update
address Address
The address of the site.
city stringThe name of the city. Max size = 100.
country stringThe name of the country. Max size = 100.
post_code stringThe postal code. Max size = 100.
state stringThe name of the state. Max size = 100.
street stringThe name of the street. Max size = 100.
street2 stringThe name of the street. Max size = 100.
- admin_state string required
The site mode of operation, can be in one of three states: Active - the site is in Control mode and network policy is applied. Monitor - the site is in Analytics mode, no network policy is applied. Disabled: the site is disabled.
- description
Description for the site (Max size = 1024).
- element_cluster_role string required
This attribute describes the type i.e. SPOKE or HUB.
- id string
The ID.
location Location
The geographical cordinates for the site address.
descriptionThe decsription of the location.
latitude floatThe latitude of the location. Max range = 90.
longitude floatThe longitude of the location. Max range = 180.
- name string required
The site name (Max size = 128).
- nat_policysetstack_id string
Nat Policysetstack Id: Digits(fraction = 0, integer = 20, error = INVALID_NAT_POLICYSETSTACK_ID: Invalid nat policy set stack id.)
- network_policysetstack_id string
The ID for the Path Policyset Stack. Can be retrieved using networkpolicysetstack API.
- policy_set_id string
The ID for the Original Network Policy Set. Can be retrieved using policysets API.
- priority_policysetstack_id string
ID for the QoS Policyset Stack. Can be retrieved using prioritypolicysetstack API.
- security_policyset_id string
The ID for the Original Security Policy Set. Can be retrieved using securitypolicysets API.
- service_binding string
Bind a site to a set of domains. Can be retrieved using sericebindingmaps API.
- tags string[]
A information field that can be added to identify the site.
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
address Address
The address of the site.
city stringThe name of the city. Max size = 100.
country stringThe name of the country. Max size = 100.
post_code stringThe postal code. Max size = 100.
state stringThe name of the state. Max size = 100.
street stringThe name of the street. Max size = 100.
street2 stringThe name of the street. Max size = 100.
- admin_state string required
The site mode of operation, can be in one of three states: Active - the site is in Control mode and network policy is applied. Monitor - the site is in Analytics mode, no network policy is applied. Disabled: the site is disabled.
- description
Description for the site (Max size = 1024).
- element_cluster_role string required
This attribute describes the type i.e. SPOKE or HUB.
- id string
The ID.
location Location
The geographical cordinates for the site address.
descriptionThe decsription of the location.
latitude floatThe latitude of the location. Max range = 90.
longitude floatThe longitude of the location. Max range = 180.
- name string required
The site name (Max size = 128).
- nat_policysetstack_id string
Nat Policysetstack Id: Digits(fraction = 0, integer = 20, error = INVALID_NAT_POLICYSETSTACK_ID: Invalid nat policy set stack id.)
- network_policysetstack_id string
The ID for the Path Policyset Stack. Can be retrieved using networkpolicysetstack API.
- policy_set_id string
The ID for the Original Network Policy Set. Can be retrieved using policysets API.
- priority_policysetstack_id string
ID for the QoS Policyset Stack. Can be retrieved using prioritypolicysetstack API.
- security_policyset_id string
The ID for the Original Security Policy Set. Can be retrieved using securitypolicysets API.
- service_binding string
Bind a site to a set of domains. Can be retrieved using sericebindingmaps API.
- tags string[]
A information field that can be added to identify the site.
{
"address": {
"city": "string",
"country": "string",
"post_code": "string",
"state": "string",
"street": "string",
"street2": "string"
},
"admin_state": "string",
"element_cluster_role": "string",
"id": "string",
"location": {
"latitude": 0,
"longitude": 0
},
"name": "string",
"nat_policysetstack_id": "string",
"network_policysetstack_id": "string",
"policy_set_id": "string",
"priority_policysetstack_id": "string",
"security_policyset_id": "string",
"service_binding": "string",
"tags": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
_error ErrorResponse[]
Array [code stringmessage string]
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "POLICY_CONFIG_INVALID_FOR_HUB_SITE"
},
{
"code": "INVALID_SECURITY_POLICYSET"
},
{
"code": "INVALID_POLICY_CONFIGURATION"
},
{
"code": "INVALID_NETWORK_POLICYSETSTACK"
},
{
"code": "DEFAULT_NETWORK_POLICYSETSTACK_NOT_AVAILABLE"
},
{
"code": "INVALID_PRIORITY_POLICYSETSTACK"
},
{
"code": "DEFAULT_PRIORITY_POLICYSETSTACK_NOT_AVAILABLE"
},
{
"code": "POLICYSETSTACK_CONFIG_NOT_SUPPORTED"
},
{
"code": "DEFAULT_POLICY_NOT_CONFIGURED"
},
{
"code": "SITE_CONFIG_SERVICEBINDING_INVALID_FOR_HUB"
},
{
"code": "SITE_CONFIG_SERVICEBINDING_DOES_NOT_EXIST"
},
{
"code": "INVALID_POLICYSET"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
}
]
}
}