ヘルスモニタ一覧取得
Description
ヘルスモニタの一覧を取得します。
Request URL
Network API v2.0 GET /v2.0/lb/health_monitors
Request Json
This operation does not accept a request body.
Request Parameters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | Userトークン | header | トークン発行 にて払い出されたID |
Response
-
Normal response codes
200
Example
-
Request
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
https://networking.jpt1.cloud.z.com/v2.0/lb/health_monitors
-
Response
HTTP/1.1 200 OK
Date: Mon, 11 Jul 2016 03:43:49 GMT
Server: Apache
Content-Length: 731
Content-Type: application/json
{
"health_monitors": [
{
"admin_state_up": true,
"delay": 監視間隔,
"expected_codes": "期待するレスポンスのステータスコード(HTTPプロトコルの場合のみ)",
"http_method": "GET",
"id": "ヘルスモニタID",
"max_retries": 3,
"pools": [],
"tenant_id": "テナントID",
"timeout": 5,
"type": "プロトコル",
"url_path": "チェック先のパス(HTTPプロトコルの場合のみ)"
},
{
"admin_state_up": true,
"delay": 監視間隔,
"id": "ヘルスモニタID",
"max_retries": 3,
"pools": [],
"tenant_id": "テナントID",
"timeout": 5,
"type": "プロトコル"
},
{
"admin_state_up": true,
"delay": 監視間隔,
"expected_codes": "期待するレスポンスのステータスコード(HTTPプロトコルの場合のみ)",
"http_method": "GET",
"id": "ヘルスモニタID",
"max_retries": 3,
"pools": [],
"tenant_id": "テナントID",
"timeout": 5,
"type": "プロトコル",
"url_path": "チェック先のパス(HTTPプロトコルの場合のみ)"
}
]
}