List Bare Metal Instances
Retrieve a comprehensive inventory of your bare metal instances, including detailed specifications such as hardware configurations, system identifiers, operating systems, and operational status.
HTTP Request
GET
{API_URL}bare-metal/instances
Query Parameters
Parameter | Requirement | Type | Description |
---|---|---|---|
limit | Optional | int | Maximum number of records to return |
offset | Optional | int | Number of records to skip for pagination |
sortField | Optional | string | Field identifier for result ordering |
sortOrder | Optional | string | Sort direction: desc (descending) or asc (ascending) |
filters | Optional | string | JSON-encoded filter criteria. Format: [{"key":"name","op":"contains","val":"hub"}] |
Response Structure
status boolean
Operation result indicator. Returns true
for successful execution, false
when encountering an error.
message string
Descriptive response indicating the outcome of the instance retrieval request.
total int
Aggregate count of available records.
data object
Collection of instance objects containing detailed specifications.
For comprehensive documentation of instance object attributes, please refer to our Instance Object Documentation.
Implementation Example
Request
bash
curl -X GET '{API_URL}bare-metal/instances' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'refresh-token: {REFRESH_TOKEN}' \
-H 'Content-Type: application/json'
Response
json
{
"status": true,
"message": "Bare metal instances retrieved successfully",
"total": 1,
"data": [
{
"id": "6762414692058871d146cbc6",
"name": "BM-dhSqf5qh",
"status": "running",
"login": {
"ssh_key": {
"name": "sshkey"
},
"password": "password",
"username": "username"
},
"fixed_ip": "*.*.*.*",
"started_time": 1734492485,
"flavor": {
"name": "s3-H100x8",
"cpu": 192,
"ram": 1844,
"disk": 32100,
"gpu": "H100-80G-SXM5",
"gpu_count": 8
},
"image": {
"name": "Ubuntu Server 22.04 LTS"
},
"region": {
"name": "SINGAPORE-1"
}
}
]
}