Retrieves a list of OpenStack machines
GEThttps://api.spectrocloud.com/v1/cloudconfigs/openstack/:configUid/machinePools/:machinePoolName/machines
Retrieves a list of OpenStack machines
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
Responses
- 200
An array of OpenStack machine items
- application/json
- Schema
- Example (from schema)
Schema
items
object[]
required
{
"items": [
{
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-02T20:23:33.467Z",
"deletionTimestamp": "2024-07-02T20:23:33.467Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-02T20:23:33.467Z",
"name": "string",
"uid": "string"
},
"spec": {
"az": "string",
"image": "string",
"instanceType": {
"diskGiB": 0,
"memoryMiB": 0,
"name": "string",
"numCPUs": 0
},
"nics": [
{
"index": 0,
"networkName": "string",
"privateIPs": [
"string"
]
}
],
"projectId": "string",
"securityGroups": [
"string"
],
"sshKeyName": "string"
},
"status": {
"health": {
"conditions": [
{
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"lastHeartBeatTimestamp": "2024-07-02T20:23:33.467Z",
"state": "string"
},
"instanceState": "Pending",
"maintenanceStatus": {
"action": "string",
"message": "string",
"state": "string"
}
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X GET 'https://api.spectrocloud.com/v1/cloudconfigs/openstack/:configUid/machinePools/:machinePoolName/machines' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>'