获取当前的群集配置状态和资源属性。
请求示例:
GET /api/hardware/v1/cluster HTTP/1.1 Authorization: Basic abcd45sMWE= Host: tanana:215 Accept: application/json
响应示例:
HTTP/1.1 200 OK
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 529
X-Zfssa-Api: 1.0
{
"cluster": {
"description": "Clustering is not configured",
"peer_asn": "",
"peer_description": "",
"peer_hostname": "",
"peer_state": "",
"resources": {
"net/ixgbe0": {
"details": ["10.80.231.58"],
"href": "/hardware/v1/cluster/resources/resources/net/ixgbe0",
"owner": "tanana",
"type": "singleton",
"user_label": "Untitled Interface"
},
"zfs/gold": {
"details": ["821G"],
"href": "/hardware/v1/cluster/resources/resources/zfs/gold",
"owner": "tanana",
"type": "singleton",
"user_label": ""
}
},
"state": "AKCS_UNCONFIGURED"
}
}