Update Site
Update a specific Site
User must have FORGE_PROVIDER_ADMIN role.
Infrastructure Provider updating the Site must be the owner of the Site. At present, there are no Site specific configuration 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://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current
```
Path parameters
org
siteId
Request
This endpoint expects an object.
name
Update name of the Site. Can only be updated by Provider
description
Update description for the Site. Can only be updated by Provider
renewRegistrationToken
Set to true to issue a new registration token. Can only be updated by Provider
serialConsoleHostname
Hostname to reach Serial Console for the Site. Can only be updated by Provider
location
Location of the Site
contact
Contact for the Site
isSerialConsoleEnabledDeprecated
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.
serialConsoleIdleTimeoutDeprecated
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.
serialConsoleMaxSessionLengthDeprecated
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.
isSerialConsoleSSHKeysEnabledDeprecated
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
id
name
Name of the Site
description
Optional description for the Site
org
infrastructureProviderId
siteControllerVersion
Version of the Site Controller software
siteAgentVersion
Version of the Site Agent software
registrationToken
Token that can be used to register a Site. Value only exposed to Provider
registrationTokenExpiration
Date/time when registration token expires. Value only exposed to Provider
serialConsoleHostname
isSerialConsoleEnabled
Indicates if Serial Console is enabled for the Site by the Provider
serialConsoleIdleTimeout
Maximum idle time in seconds before Serial Console is disconnected
serialConsoleMaxSessionLength
Maximum length of Serial Console session in seconds
isSerialConsoleSSHKeysEnabled
Only visible to Tenant retrieving the Site. Indicates if Serial Console access using SSH Keys is enabled by Tenant
isOnline
Indicates if the Site is currently reachable from Cloud
status
Status values for Site objects
Allowed values:
statusHistory
created
updated
location
Location of the Site
contact
Contact for the Site
capabilities
Boolean flags to indicate features supported by a Site
machineStats
Machine stats for a Site