您可以使用GetProtectionDomainLayout该方法返回集群的所有保护域信息、包括每个节点所在的机箱和自定义保护域。
此方法具有无输入参数。
此方法的请求类似于以下示例:
{ " 方法 " : "GetProtectionDomainLayout " 、 "params": {}, "id" : 1 }
此方法返回类似于以下示例的响应:
{ "id": 1, "result": { "ProtectionDomainLayout " : [ { "nodeID": 1, "ProtectionDomains" : [ { " 保护域名 " : "Qtfcr2914008d" 、 "ProtectionDomainType" : "Chassis" }, { " 保护域名 " : " 机架 1 " 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 2, "ProtectionDomains" : [ { " 保护域名 " : "Qtfcr291500ea" 、 "ProtectionDomainType" : "Chassis" }, { " 保护域名 " : " 机架 1 " 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 3, "ProtectionDomains" : [ { " 保护域名 " : "Qtfcr291500 c3" 、 "ProtectionDomainType" : "Chassis" }, { " 保护域名 " : "rack-2" 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 4, "ProtectionDomains" : [ { " 保护域名 " : "Qtfcr291400e6" 、 "ProtectionDomainType" : "Chassis" }, { " 保护域名 " : "rack-2" 、 "ProtectionDomainType" : "Custom" } ] } ] } }
12.0