AI开发平台MODELARTS-查询节点池列表:响应示例

时间:2024-11-22 17:40:58

响应示例

状态码: 200

OK。

{
  "kind" : "NodePoolList",
  "apiVersion" : "v2",
  "items" : [ {
    "kind" : "NodePool",
    "apiVersion" : "v2",
    "metadata" : {
      "name" : "modelarts.vm.2u4g.dcc-Default"
    },
    "spec" : {
      "resources" : {
        "nodePool" : "modelarts.vm.2u4g.dcc-Default",
        "flavor" : "modelarts.vm.2u4g.dcc",
        "count" : 1,
        "maxCount" : 1,
        "network" : {
          "vpc" : "277e9abc-0e6b-431a-9232-cfd25d5fc566",
          "subnet" : "03796378-c356-4c14-826b-e4913aa9c8b9",
          "securityGroups" : [ "0a15b48d-06f1-41e4-b782-ade90087bf59" ]
        }
      }
    },
    "status" : {
      "resources" : {
        "available" : {
          "nodePool" : "modelarts.vm.2u4g.dcc-Default",
          "flavor" : "modelarts.vm.2u4g.dcc",
          "count" : 1,
          "maxCount" : 1,
          "azs" : [ {
            "az" : "cn-north-7c",
            "count" : 1
          } ]
        }
      }
    }
  }, {
    "kind" : "NodePool",
    "apiVersion" : "v2",
    "metadata" : {
      "name" : "nodepool-1"
    },
    "spec" : {
      "resources" : {
        "nodePool" : "nodepool-1",
        "flavor" : "modelarts.vm.2u4g.dcc",
        "count" : 1,
        "maxCount" : 1,
        "network" : {
          "vpc" : "277e9abc-0e6b-431a-9232-cfd25d5fc566",
          "subnet" : "03796378-c356-4c14-826b-e4913aa9c8b9",
          "securityGroups" : [ "0a15b48d-06f1-41e4-b782-ade90087bf59" ]
        }
      }
    },
    "status" : {
      "resources" : {
        "available" : {
          "nodePool" : "nodepool-1",
          "flavor" : "modelarts.vm.2u4g.dcc",
          "count" : 1,
          "maxCount" : 1,
          "azs" : [ {
            "az" : "cn-north-7c",
            "count" : 1
          } ]
        }
      }
    }
  } ]
}
support.huaweicloud.com/api-modelarts/ListNodePools.html