ポート一覧取得

Description

ポートの一覧を取得します。

Request URL

Network API v2.0

GET /v2.0/ports

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークン発行 にて払い出されたID

Response

  • Normal response codes
200

Example

  • Request
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
ネットワークエンドポイント/ports
  • Response
HTTP/1.1 200 OK
Date: Fri, 30 Mar 2018 02:33:15 GMT
Server: Apache
Content-Length: 678
Content-Type: application/json

{
    "ports": [
        {
            "status": "ACTIVE", 
            "name": "ネットワーク名", 
            "allowed_address_pairs": [
                {
                    "ip_address": "0.0.0.0/0", 
                    "mac_address": "MACアドレス"
                }
            ], 
            "admin_state_up": true, 
            "network_id": "ネットワークID", 
            "tenant_id": "テナントID", 
            "extra_dhcp_opts": [], 
            "binding:vnic_type": "normal", 
            "device_owner": "compute:nova", 
            "mac_address": "MACアドレス", 
            "fixed_ips": [
                {
                    "subnet_id": "サブネットID", 
                    "ip_address": "IPアドレス"
                }
            ], 
            "id": "ポートID", 
            "security_groups": [
                "セキュリティグループID"
            ], 
            "device_id": "デバイスID"
        }
    ]
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.