Updates the specified AWS cloud config's machine pool
PUThttps://api.spectrocloud.com/v1/cloudconfigs/aws/:configUid/machinePools/:machinePoolName
Updates the specified AWS cloud config's machine pool
Request
Path Parameters
configUid stringrequired
Cluster's cloud config uid
machinePoolName stringrequired
Machine pool name
- application/json
Body
cloudConfig
object
required
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/aws/:configUid/machinePools/:machinePoolName' \
-H 'Content-Type: application/json' \
-d '{
"cloudConfig": {
"additionalSecurityGroups": [
{
"arn": "string",
"filters": [
{
"name": "string",
"values": [
"string"
]
}
],
"id": "string"
}
],
"azs": [
"string"
],
"capacityType": "on-demand",
"instanceType": "string",
"rootDeviceSize": 0,
"spotMarketOptions": {
"maxPrice": "string"
},
"subnets": [
{
"az": "string",
"id": "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-29T15:51:28.071Z",
"value": "string"
}
],
"updateStrategy": {
"type": "RollingUpdateScaleOut"
},
"useControlPlaneAsWorker": true
}
}'