Updates the specified generic cloud config's machine pool
PUThttps://api.spectrocloud.com/v1/cloudconfigs/generic/:configUid/machinePools/:machinePoolName
Updates the specified generic cloud config's machine pool
Request
Path Parameters
configUid stringrequired
Cluster's cloud config uid
machinePoolName stringrequired
Machine pool name
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
cloudConfig
object
poolConfig
object
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/cloudconfigs/generic/:configUid/machinePools/:machinePoolName' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"cloudConfig": {
"instanceType": {
"diskGiB": 0,
"memoryMiB": 0,
"name": "string",
"numCPUs": 0
},
"region": "string"
},
"poolConfig": {
"additionalLabels": {},
"additionalTags": {},
"isControlPlane": true,
"labels": [
"string"
],
"machinePoolProperties": {
"archType": "amd64"
},
"maxSize": 0,
"minSize": 0,
"name": "string",
"nodeRepaveInterval": 0,
"size": 0,
"taints": [
{
"effect": "NoSchedule",
"key": "string",
"timeAdded": "2024-07-02T18:20:56.882Z",
"value": "string"
}
],
"updateStrategy": {
"type": "RollingUpdateScaleOut"
},
"useControlPlaneAsWorker": true
}
}'