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:

Parameter
Description
Type
Required
Default

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": "Cluster A",
        "IP": "192.168.1.1",
        "status": "active",
        "type": "GPU"
    },
    {
        "id": 2,
        "name": "Compute Target 2",
        "cluster": "Cluster B",
        "IP": "192.168.1.2",
        "status": "inactive",
        "type": "CPU"
    }
]

Response Fields:

Field
Description
Type

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.

string

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

Last updated