Update Machine
Update a Machine
Instance Type attribute updates, maintenance attribute updates and labels updates must be specified in separate requests. They cannot be processed at the same time.
Some attributes can only be updated by Provider, while others can be updated by Provider or a Privileged 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
machineId
Request
This endpoint expects an object.
instanceTypeId
Update the Instance Type of the Machine. Cannot be specified when clearing Instance Type. Can only be updated by Provider.
clearInstanceType
Set to true to clear the existing Instance Type. Cannot be specified if Instance Type ID is specified. Can only be set by Provider.
setMaintenanceMode
Set to true to enable maintenance mode and to false to disable maintenance mode. Can be set by Provider or Privileged Tenant.
maintenanceMessage
Optional message describing the reason for moving Machine into maintenance mode. Can be updated by Provider or Privileged Tenant.
labels
Machine labels will be overwritten, include existing labels to preserve them. Can be updated by Provider or Privileged Tenant.
Response
OK
id
Unique ID of Machine
infrastructureProviderId
ID of the Provider that owns the Machine
siteId
ID of the Site the Machine belongs to
instanceTypeId
ID of the Instance Type, if assigned
instanceId
ID of the Instance if this Machine is assigned to one
tenantId
ID of the Tenant that owns the Instance if the Machine is assigned to one
controllerMachineId
ID of the Machine at Site, now same as the primary ID
controllerMachineType
Denotes architecture (x86 vs ARM) of the Machine
hwSkuDeviceType
SKU derived device type of the machine, e.g. cpu, gpu, cache, storage, etc.
vendor
Name of the vendor of the Machine
productName
Product name of the Machine
serialNumber
Serial number of the Machine, only visible to Provider
machineCapabilities
machineInterfaces
maintenanceMessage
If the Machine is in maintenance mode, this message will typically describe the reason and how long it is expected to be in maintenance
health
Describes results of various Machine health probes and alerts
metadata
Only available to Providers. Returned if includeMetadata query param is specified. Otherwise attribute is omitted from response.
labels
status
Status values for Machine objects
isUsableByTenant
Indicates whether the machine is usable by or currently in use by a tenant.
statusHistory
created
updated