Creates a OpenStack cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/openstack/:configUid/machinePools
Creates a OpenStack cloud config's machine pool
Request
Path Parameters
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/openstack/:configUid/machinePools' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"cloudConfig": {
"azs": [
"string"
],
"diskGiB": 0,
"flavorConfig": {
"diskGiB": 0,
"memoryMiB": 0,
"name": "string",
"numCPUs": 0
},
"subnet": {
"id": "string",
"name": "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
}
}'