部署 CODEARTS DEPLOY-示例2:根据主机集群id查询主机集群详情:步骤2:查询主机集群详情

时间:2024-04-10 16:24:47

步骤2:查询主机集群详情

  • 请求示例:
    GET  https://{endpoint}/v2/host-groups/ab7647b0863c4e969c8949d38d591339
  • 响应示例:
    { 
      "name" : "test", 
      "description" : "11122211", 
      "os" : "linux", 
      "region_name" : "cn-north-7", 
      "project_id" : "6039d4480efc4dddb178abff98719913", 
      "created_by" : { 
        "user_id" : "6baa7454109d47c192f22078fe6cda20", 
        "user_name" : "devcloud_devcloud_l00490255_01" 
      }, 
      "updated_by" : { 
        "user_id" : "6baa7454109d47c192f22078fe6cda20", 
        "user_name" : "devcloud_devcloud_l00490255_01" 
      }, 
      "permission" : { 
        "can_view" : true, 
        "can_edit" : true, 
        "can_delete" : true, 
        "can_add_host" : true, 
        "can_manage" : true 
      }, 
      "auto_connection_test_switch" : 0, 
      "slave_cluster_id" : "", 
      "nick_name" : "AB边账号", 
      "group_id" : "ab7647b0863c4e969c8949d38d591339", 
      "created_time" : "2021-04-01 17:05:53", 
      "updated_time" : "2021-04-21 14:29:14", 
      "host_count" : 1 
    }
support.huaweicloud.com/api-deployman/CloudDeploy_api_00102.html