Updates the specified machine to cloud config's machine pool
PUThttps://api.spectrocloud.com/v1/cloudconfigs/edge-native/:configUid/machinePools/:machinePoolName/machines/:machineUid
Updates the specified machine to cloud config's machine pool
Request
Path Parameters
configUid stringrequired
Cluster's cloud config uid
machinePoolName stringrequired
Machine pool name
machineUid stringrequired
Machine uid
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
kindstring
metadata
object
spec
object
status
object
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/cloudconfigs/edge-native/:configUid/machinePools/:machinePoolName/machines/:machineUid' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"deletionTimestamp": "2024-07-29T15:51:28.071Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-29T15:51:28.071Z",
"name": "string",
"uid": "string"
},
"spec": {
"edgeHostUid": "string",
"instanceType": {
"diskGiB": 0,
"memoryMiB": 0,
"name": "string",
"numCPUs": 0
},
"nics": [
{
"index": 0,
"networkName": "string",
"privateIPs": [
"string"
],
"publicIp": "string"
}
]
},
"status": {
"health": {
"conditions": [
{
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"lastHeartBeatTimestamp": "2024-07-29T15:51:28.071Z",
"state": "string"
},
"instanceState": "Pending",
"maintenanceStatus": {
"action": "string",
"message": "string",
"state": "string"
}
}
}'