ポート詳細取得

Description

ポートの詳細を取得します。

Request URL

Network API v2.0

GET /v2.0/ports/{port_id}

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID
port_id ポートID URI ポート一覧取得にてご確認ください。

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/ports/ポートID
  • Response
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 06:53:35 GMT
Server: Apache
Content-Length: 614
Content-Type: application/json

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

Internet for everyone

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