您可以使用SetProtectionDomainLayout该方法将节点分配给自定义保护域。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
protectionDomainLayout | 每个节点的保护域信息。 | NodeProtectionDomains 对象的 JSON 列表。 | 无 | 是 |
此方法的请求类似于以下示例:
{ "id": 1, " 方法 " : "SetProtectionDomainLayout " 、 "params": { "ProtectionDomainLayout " : [ { "nodeID": 1, "ProtectionDomains" : [ { " 保护域名 " : " 机架 1 " 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 2, "ProtectionDomains" : [ { " 保护域名 " : " 机架 1 " 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 3, "ProtectionDomains" : [ { " 保护域名 " : "rack-2" 、 "ProtectionDomainType" : "Custom" } ] }, { "nodeID": 4, "ProtectionDomains" : [ { " 保护域名 " : "rack-2" 、 "ProtectionDomainType" : "Custom" } ] } ] } }
此方法返回类似于以下示例的响应:
{ "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