Adds the machine to cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/maas/:configUid/machinePools/:machinePoolName/machines
Adds the machine to cloud config's machine pool
Request
Path Parameters
configUid stringrequired
Cluster's cloud config uid
machinePoolName stringrequired
Machine pool name
- application/json
Body
apiVersionstring
kindstring
metadata
object
spec
object
status
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 -X POST 'https://api.spectrocloud.com/v1/cloudconfigs/maas/:configUid/machinePools/:machinePoolName/machines' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-05T19:21:09.629Z",
"deletionTimestamp": "2024-07-05T19:21:09.629Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-05T19:21:09.629Z",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"az": "string",
"hostname": "string",
"nics": [
{
"index": 0,
"privateIPs": [
"string"
],
"publicIp": "string"
}
]
},
"status": {
"health": {
"conditions": [
{
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"lastHeartBeatTimestamp": "2024-07-05T19:21:09.629Z",
"state": "string"
},
"instanceState": "Pending",
"maintenanceStatus": {
"action": "string",
"message": "string",
"state": "string"
}
}
}'