对HealthCheck无效的响应

时间:2018-11-01 14:00:39

标签: google-apis-explorer health-monitoring

尝试获取在项目中的负载均衡器中配置的运行状况检查列表,但是,healthChecks.list没有返回预期的JSON响应。它仅返回以下响应*。

{
 "kind": "compute#healthCheckList",
 "id": "projects/project/global/healthChecks",
 "selfLink": "https://www.googleapis.com/compute/v1/projects/project/global/healthChecks"
}

但是在获取目标池的同时,能够进行运行状况检查。请参阅下面的响应:

{
   "kind": "compute#targetPool",
   "id": "8848412370427089325",
   "creationTimestamp": "2018-10-29T09:03:14.095-07:00",
   "name": "a05fa1d8ddb9411e8a5b242010a80010",
   "description": "{\"kubernetes.io/service-name\":\"cisco1/mongo-gateway-lb\"}",
   "region": "https://www.googleapis.com/compute/v1/projects/project/regions/us-central1",
   "healthChecks": [
    "https://www.googleapis.com/compute/v1/projects/project/global/httpHealthChecks/k8s-ed60b89f223d08c7-node"
   ],
   "instances": [
    "https://www.googleapis.com/compute/v1/projects/project/zones/us-central1-a/instances/gke-sakshiag-optimiz-sakshiag-pre-emp-d0791372-4mw7",
    "https://www.googleapis.com/compute/v1/projects/project/zones/us-central1-a/instances/gke-sakshiag-optimiz-sakshiag-pre-emp-d0791372-klqn",
    "https://www.googleapis.com/compute/v1/projects/project/zones/us-central1-a/instances/gke-sakshiag-optimiz-sakshiag-pre-emp-d0791372-bs30"
   ],
   "sessionAffinity": "NONE",
   "selfLink": "https://www.googleapis.com/compute/v1/projects/project/regions/us-central1/targetPools/a05fa1d8ddb9411e8a5b242010a80010"
}

我在这里错过了什么吗,还是一个错误?

注意:为保密起见,修改了项目名称。

0 个答案:

没有答案