AI开发平台MODELARTS-查询作业资源规格:响应示例

时间:2024-11-22 17:41:06

响应示例

  • 成功响应示例
    {
        "specs": [
    
            {
                "spec_id": 2,
                "core": "2",
                "cpu": "8",
                "gpu_num": 0,
                "gpu_type": "",
                "spec_code": "modelarts.vm.cpu.2u",
                "unit_num": 1,
                "max_num": 2,
                "storage": "",
                "interface_type": 1,
                "no_resource": false
            }
        ],
        "is_success": true,
        "spec_total_count": 1
    }
  • 失败响应示例
    {
        "is_success": false,
        "error_message": "Error string",
        "error_code": "ModelArts.0105"
    }
support.huaweicloud.com/api-modelarts/modelarts_03_0072.html