Update Site

View as Markdown

Update a specific Site

User must have authorization role with PROVIDER_ADMIN suffix.

Infrastructure Provider updating the Site must be the owner of the Site. At present, there are no other Site specific configurations modifiable by Tenant.

Authentication

AuthorizationBearer
``` export JWT_BEARER_TOKEN="<jwt-bearer-token>" # Example org name: "acme-inc export ORG_NAME=<org-name> # Use the JWT bearer token in your API request auth header: curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current ```

Path parameters

orgstringRequired
siteIdstringRequired

Request

This endpoint expects an object.
namestring or nullOptional
Update name of the Site. Can only be updated by Provider
descriptionstring or nullOptional
Update description for the Site. Can only be updated by Provider
renewRegistrationTokenbooleanOptional
Set to true to issue a new registration token. Can only be updated by Provider
serialConsoleHostnamestring or nullOptionalformat: "hostname"
Hostname to reach Serial Console for the Site. Can only be updated by Provider
locationobjectOptional
Location of the Site
contactobjectOptional
Contact for the Site
capabilitiesobjectOptional
Modify Site capabilities. Can only be updated by Provider. Partial update allowed, only specify capabilities that should be updated.
isSerialConsoleEnabledbooleanOptionalDeprecated

Enable/disable Serial Console. Can only be updated by Provider. Modifying this attribute has no actual effect on SOL. It will be removed in a future API version.

serialConsoleIdleTimeoutintegerOptionalDeprecated
Maximum idle time in seconds before Serial Console is disconnected. Can only be updated by Provider. Modifying this attribute has no actual effect on SOL. It will be removed in a future API version.
serialConsoleMaxSessionLengthintegerOptionalDeprecated
Maximum length of Serial Console session in seconds. Can only be updated by Provider. Modifying this attribute has no actual effect on SOL. It will be removed in a future API version.
isSerialConsoleSSHKeysEnabledbooleanOptionalDeprecated

Enable/disable Serial Console access using SSH Keys. Previously updateable only by Tenants, modifying this value is no longer supported, update SSH Key Groups to remove Site instead.

Response

OK
idstringRead-onlyformat: "uuid"
namestring2-256 characters
Name of the Site
descriptionstring or null
Optional description for the Site
orgstring
infrastructureProviderIdstringformat: "uuid"
siteControllerVersionstring or null
Version of the Site Controller software
siteAgentVersionstring or null
Version of the Site Agent software
registrationTokenstring or null
Token that can be used to register a Site. Value only exposed to Provider
registrationTokenExpirationdatetime or nullRead-only

Date/time when registration token expires. Value only exposed to Provider

serialConsoleHostnamestring or nullformat: "hostname"
isSerialConsoleEnabledboolean
Indicates if Serial Console is enabled for the Site by the Provider
serialConsoleIdleTimeoutinteger or null
Maximum idle time in seconds before Serial Console is disconnected
serialConsoleMaxSessionLengthinteger or null
Maximum length of Serial Console session in seconds
isSerialConsoleSSHKeysEnabledboolean
Only visible to Tenant retrieving the Site. Indicates if Serial Console access using SSH Keys is enabled by Tenant
isOnlineboolean
Indicates if the Site is currently reachable from Cloud
statusenum
Status values for Site objects
Allowed values:
statusHistorylist of objects
createddatetime
updateddatetime
locationobject
Location of the Site
contactobject
Contact for the Site
capabilitiesobject
Boolean flags to indicate features supported by a Site
machineStatsobject
Machine stats for a Site