智能边缘平台 IEF-查询应用实例列表:响应示例

时间:2024-04-15 09:12:47

响应示例

状态码: 200

ok

{
  "count" : 1,
  "pods" : [ {
    "id" : "3e64d98a-37c5-43a6-9bfe-052b9083e362",
    "name" : "app-test-69f9dc4b67-wfwn6",
    "configs" : {
      "host_network" : true,
      "host_pid" : true,
      "migration" : true,
      "restart_policy" : "Always",
      "toleration_seconds" : 300
    },
    "containers" : [ {
      "args" : [ "-c", "sleep 1000" ],
      "command" : [ "/bin/bash" ],
      "name" : "container-0",
      "envs" : [ {
        "name" : "CERT_PATH",
        "value" : "/opt/cert"
      } ],
      "image_url" : "swr.cn-north-1.myhuaweicloud.com/ief-test/nginx:0705",
      "npu_type" : "",
      "liveness_probe" : {
        "http_get" : {
          "path" : "/",
          "port" : 80,
          "scheme" : "http"
        },
        "initial_delay_seconds" : 10,
        "timeout_seconds" : 10
      },
      "readiness_probe" : {
        "http_get" : {
          "path" : "/",
          "port" : 80,
          "scheme" : "http"
        },
        "initial_delay_seconds" : 10,
        "timeout_seconds" : 10
      },
      "ports" : [ {
        "container_port" : 80,
        "host_port" : 80
      } ],
      "resources" : {
        "limits" : {
          "cpu" : 0.25,
          "memory" : 500,
          "gpu" : 500
        },
        "requests" : {
          "cpu" : 0.25,
          "memory" : 500,
          "gpu" : 500
        }
      },
      "volumes" : [ {
        "name" : "log-volume",
        "type" : "hostPath",
        "read_only" : false,
        "source" : "/var/IEF",
        "destination" : "/var/IEF"
      } ],
      "restarts" : 0,
      "message" : "",
      "reason" : ""
    } ],
    "node_id" : "bcd83056c918480f8f190844bd425b23",
    "project_id" : "bcd83056c918480f8f190844bd425b23",
    "reason" : "",
    "message" : "",
    "created_at" : "2019-10-10T02:24:02.325Z",
    "state" : "RUNNING"
  } ]
}

状态码: 400

error

{
  "error_code" : "IEF.100001",
  "error_msg" : "PROJECT_ID not found"
}

状态码: 500

error

{
  "error_code" : "IEF.100158",
  "error_msg" : "Fail to extract gpu infomation"
}
support.huaweicloud.com/api-ief/ListPods.html