Creates an Custom cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/cloudTypes/:cloudType/:configUid/machinePools
Creates an Custom cloud config's machine pool
Request
Path Parameters
cloudType stringrequired
Cluster's cloud type
configUid stringrequired
Cluster's cloud config uid
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
cloudConfig
object
required
poolConfig
object
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/cloudconfigs/cloudTypes/:cloudType/:configUid/machinePools' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"cloudConfig": {
"values": "string"
},
"poolConfig": {
"additionalLabels": {},
"isControlPlane": true,
"taints": [
{
"effect": "NoSchedule",
"key": "string",
"timeAdded": "2024-07-29T15:51:28.071Z",
"value": "string"
}
],
"useControlPlaneAsWorker": true
}
}'