Adds the machine to cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/aws/:configUid/machinePools/:machinePoolName/machines
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
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
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/aws/:configUid/machinePools/:machinePoolName/machines' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:48.007Z",
"deletionTimestamp": "2023-12-01T21:31:48.007Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:48.007Z",
"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": "2023-12-01T21:31:48.008Z",
"state": "string"
},
"instanceState": "Pending",
"maintenanceStatus": {
"action": "string",
"message": "string",
"state": "string"
}
}
}'