Compute Target
1. Get Compute Target List API
This API retrieves a list of compute targets, including their ID, name, cluster, IP, status, and type.
Endpoint: GET /compute_targets
Parameters:
ids
Fetch specific ids.
string
No
-
offset
The offset for pagination.
integer
No
0
limit
The maximum number of results per page.
integer
No
100
Example Request:
GET /compute_targets?ids=1,2&offset=0&limit=10
Example Response:
[
{
"id": 1,
"name": "Compute Target 1",
"cluster": {
"id": 1,
"name": "Cluster A",
"address": "https://cluster-a.com/"
},
"ip": "192.168.1.1",
"status": "available",
"type": "edge-server"
},
{
"id": 2,
"name": "Compute Target 2",
"cluster": {
"id": 1,
"name": "Cluster B",
"address": "https://cluster-b.com/"
},
"ip": "192.168.1.2",
"status": "available",
"type": "edge-server"
}
]
Response Fields:
id
The unique identifier for the compute target.
integer
name
The name of the compute target.
string
cluster
The name of the cluster to which the compute target belongs.
object
IP
The IP address of the compute target.
string
status
The status of the compute target (e.g., "available").
string
type
The type of compute resource (e.g., "x86", "aiot").
string
cluster
id
The id of the compute target cluster.
integer
name
The name of the compute target cluster.
string
address
The address of the compute target cluster.
string
Last updated