セキュリティグループ ルール一覧取得
Description
セキュリティグループルールの一覧を取得します。
Request URL
Network API v2.0 GET /v2.0/security-group-rules
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 "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
https://networking.jpt1.cloud.z.com/v2.0/security-group-rules
-
Response
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 01:58:29 GMT
Server: Apache
Content-Length: 1372
Content-Type: application/json
{
"security_group_rules": [
{
"direction": "ルールを適用するトラフィックの向き",
"ethertype": "イーサタイプ",
"id": "セキュリティグループルールID",
"port_range_max": null,
"port_range_min": null,
"protocol": null,
"remote_group_id": null,
"remote_ip_prefix": null,
"security_group_id": "セキュリティグループID",
"tenant_id": "テナントID"
},
{
"direction": "ルールを適用するトラフィックの向き",
"ethertype": "イーサタイプ",
"id": "セキュリティグループルールID",
"port_range_max": null,
"port_range_min": null,
"protocol": null,
"remote_group_id": null,
"remote_ip_prefix": null,
"security_group_id": "セキュリティグループルールID",
"tenant_id": "テナントID"
},
{
"direction": "ルールを適用するトラフィックの向き",
"ethertype": "イーサタイプ",
"id": "セキュリティグループルールID",
"port_range_max": null,
"port_range_min": null,
"protocol": null,
"remote_group_id": null,
"remote_ip_prefix": null,
"security_group_id": "セキュリティグループルールID",
"tenant_id": "テナントID"
},
{
"direction": "ルールを適用するトラフィックの向き",
"ethertype": "イーサタイプ",
"id": "セキュリティグループルールID",
"port_range_max": null,
"port_range_min": null,
"protocol": null,
"remote_group_id": null,
"remote_ip_prefix": null,
"security_group_id": "セキュリティグループルールID",
"tenant_id": "テナントID"
},
]
}