云应用引擎 CAE-获取组件详情:响应示例

时间:2024-11-14 17:12:18

响应示例

状态码: 200

请求成功。

{
  "api_version" : "v1",
  "kind" : "Component",
  "metadata" : {
    "id" : "b04980af-5f20-49ec-b499-79b5a4eb8a43",
    "name" : "test",
    "annotations" : {
      "log_group_id" : "96fe4c34-578a-4ea8-8e77-ee59bf8a0fd1",
      "log_stream_id" : "9c024ad2-5c80-45ee-8651-5f2bd89d3c7e",
      "version" : "1.0.0"
    },
    "created_at" : "2023-03-03T03:32:10.040303Z",
    "updated_at" : "2023-03-03T03:32:10.040303Z"
  },
  "spec" : {
    "runtime" : "Docker",
    "env_id" : "7eb2f920-e183-4d4e-9b9d-fffb875ae520",
    "replica" : 1,
    "source" : {
      "type" : "image",
      "url" : "nginx:stable-alpine-perl"
    },
    "resource_limit" : {
      "cpu_limit" : "500m",
      "memory_limit" : "1Gi"
    },
    "image_url" : "nginx:stable-alpine-perl",
    "available_replica" : 1,
    "job_id" : "c96c6907-5c69-4d72-bce0-03926a857b21",
    "status" : "running"
  }
}
support.huaweicloud.com/api-cae/ShowComponent.html