Adds the Libvirt machine to cloud config's machine pool
POSThttps://api.spectrocloud.com/v1/cloudconfigs/libvirt/:configUid/machinePools/:machinePoolName/machines
Adds the Libvirt 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/libvirt/:configUid/machinePools/:machinePoolName/machines' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-01T23:32:14.219Z",
"deletionTimestamp": "2024-07-01T23:32:14.219Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-01T23:32:14.219Z",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"disks": [
{
"dataStoragePool": "string",
"managed": true,
"sizeInGB": 0
}
],
"edgeHostUid": "string",
"failureDomain": "string",
"imageName": "string",
"instanceType": {
"cpuPassthroughSpec": {
"cachePassthrough": true,
"isEnabled": true
},
"cpuset": "string",
"gpuConfig": {
"addresses": {},
"deviceModel": "string",
"numGPUs": 0,
"vendorName": "string"
},
"memoryInMB": 0,
"numCPUs": 0
},
"nics": [
{
"index": 0,
"macAddress": "string",
"privateIPs": [
"string"
]
}
],
"targetStoragePool": "string"
},
"status": {
"health": {
"conditions": [
{
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"lastHeartBeatTimestamp": "2024-07-01T23:32:14.219Z",
"state": "string"
},
"instanceState": "Pending"
}
}'