Adds the machine to cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/aws/: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
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
apiVersionstring
Deprecated. Not used for the resource info.
kindstring
Deprecated. Cloud type of the machine.
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 'https://api.spectrocloud.com/v1/cloudconfigs/aws/:configUid/machinePools/:machinePoolName/machines' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"deletionTimestamp": "2024-07-29T15:51:28.071Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-29T15:51:28.071Z",
"name": "string",
"uid": "string"
},
"spec": {
"additionalSecurityGroups": [
{
"arn": "string",
"filters": [
{
"name": "string",
"values": [
"string"
]
}
],
"id": "string"
}
],
"ami": "string",
"az": "string",
"dnsName": "string",
"iamProfile": "string",
"instanceType": "string",
"nics": [
{
"index": 0,
"privateIPs": [
"string"
],
"publicIp": "string"
}
],
"phase": "string",
"sshKeyName": "string",
"subnetId": "string",
"type": "string",
"vpcId": "string"
},
"status": {
"health": {
"conditions": [
{
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"lastHeartBeatTimestamp": "2024-07-29T15:51:28.071Z",
"state": "string"
},
"instanceState": "Pending",
"maintenanceStatus": {
"action": "string",
"message": "string",
"state": "string"
}
}
}'