A newer release of this product is available.
Cluster chassis endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Retrieving chassis information
The chassis GET API retrieves all of the chassis information in the cluster.
Examples
1) Retrieve a list of chassis from the cluster
The following example shows the response with a list of chassis in the cluster:
# The API: /api/cluster/chassis # The call: curl -X GET "https://<mgmt-ip>/api/cluster/chassis" -H "accept: application/hal+json" # The response: { "records": [ { "id": "021352005981", "_links": { "self": { "href": "/api/cluster/chassis/021352005981" } } }, ], "num_records": 1, "_links": { "self": { "href": "/api/cluster/chassis" } } }
2) Retrieve a specific chassis from the cluster
The following example shows the response of the requested chassis. If there is no chassis with the requested id, an error is returned.
# The API: /api/cluster/chassis/{id} # The call: curl -X GET "https://<mgmt-ip>/api/cluster/chassis/021352005981" -H "accept: application/hal+json" # The response: { "id": "021352005981", "state": "ok", "nodes": [ { "name": "node-1", "uuid": "6ede364b-c3d0-11e8-a86a-00a098567f31", "_links": { "self": { "href": "/api/cluster/nodes/6ede364b-c3d0-11e8-a86a-00a098567f31" } } } ], "frus": [ { "id": "PSU2", "type": "psu", "state": "ok" }, { "id": "PSU1", "type": "psu", "state": "ok" }, { "id": "Fan2", "type": "fan", "state": "ok" }, { "id": "Fan3", "type": "fan", "state": "ok" }, { "id": "Fan1", "type": "fan", "state": "ok" } ], "_links": { "self": { "href": "/api/cluster/chassis/021352005981" } } }