ポート詳細取得
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 | トークンID | header | トークン発行 にて払い出されたID |
| port_id | ポートID | URI | ポート一覧取得 にて対象のポートIDをご確認ください。 |
Response
-
Normal response codes
200
Example
-
Request
curl -i -X GET \ -H "Accept: application/json" \ -H "X-Auth-Token: トークンID" \ ネットワークエンドポイント/ports/ポートID
-
Response
HTTP/1.1 200 OK
Date: Fri, 30 Mar 2018 02:47:59 GMT
Server: Apache
Content-Length: 675
Content-Type: application/json
{
"port": {
"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"
}
}