华为HiLens-查询应用部署详情:响应示例

时间:2025-02-12 15:03:28

响应示例

状态码: 200

请求成功

{  "template" : {    "configs" : {      "migration" : false,      "host_network" : false,      "host_pid" : false,      "restart_policy" : "Always",      "toleration_seconds" : 0    },    "apps" : [ {      "name" : "example1-skill-name",      "args" : [ ],      "command" : [ "--log_dir=/train --learning_rate=0.01 --batch_size=150" ],      "resources" : {        "limits" : {          "cpu" : "0.25",          "memory" : "128"        },        "requests" : { }      },      "envs" : [ {        "name" : "IVA_SVC_CONFIG",        "value" : "{\"algorithm\":{\"multiTask\":\"no\",\"algType\":\"hilens\"},\"cloud\":{\"disEndpoint\":\"https://dis.cn-north-7.myhuaweicloud.com\",\"region\":\"cn-north-7\"},\"svcInstanceId\":\"modelbox-instance-xxxx\"}"      } ],      "msgs" : [ ],      "ports" : [ {        "container_port" : 10,        "host_port" : 23,        "host_ip" : "10.10.10.10"      } ],      "privileged" : false,      "volumes" : [ {        "name" : "tmp",        "type" : "emptyDir",        "source" : "memory",        "destination" : "/tmp",        "read_only" : false      }, {        "name" : "run",        "type" : "emptyDir",        "source" : "memory",        "destination" : "/run",        "read_only" : false      }, {        "name" : "cgroup",        "type" : "hostPath",        "source" : "/sys/fs/cgroup",        "destination" : "/sys/fs/cgroup",        "read_only" : true      } ],      "app_url" : "xxx",      "is_modelbox" : true    } ]  },  "reason" : null,  "ready_replicas" : 0,  "replicas" : 1,  "description" : "",  "created_at" : "2022-01-25 15:57:07 GMT+08:00",  "source" : "userdefined",  "api_version" : null,  "node_ids" : [ "hilens-e17b497c3a00406f89f605e5c16b40d7" ],  "result" : [ {    "node_id" : "hilens-e17b497c3a00406f89f605e5c16b40d7"  } ],  "cluster_id" : "",  "updated_at" : "2022-01-25 15:57:07 GMT+08:00",  "project_id" : "fff47e1722f94c4e98531bae56821372",  "name" : "example1",  "id" : "hilens-9eebd2c03a2e48a6a47949fcb4f3f66f",  "state" : "CREATING"}
support.huaweicloud.com/api-hilens/getDeploymentUsingGET.html