forked from trema/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Port attachments
kazuya edited this page Jan 6, 2012
·
3 revisions
A short description of attachment information currently plugged into the specified logical port.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
- port_id : a unique id of the port (required).
GET /tenants/:tenant_id/networks/:net_id/ports/:port_id/attachments
- 200 : OK
- 404 : Not found the specified tenant or network.
- 500 : Internal error.
[
{
"id" : "port_mac_created_via_rest_if",
"mac" : "01:01:01:01:01:01"
}
]
Plug resources into a logical port on a network.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
- port_id : a unique id of the logical port (required).
POST /tenants/:tenant_id/networks/:net_id/ports/:port_id/attachments
- id : a unique id of the attachment (mandatory).
- mac : a mac address attached to the logical port (mandatory).
{
"id" : "port_mac_created_via_rest_if",
"mac" : "01:01:01:01:01:01"
}
- 202 : Succeeded.
- 404 : Not found the specified tenant, network or port.
- 422 : The specified parameters are unacceptable.
- 500 : Internal error. (Failed to attach the specified resource.)
Show information about the attachment specified by the request URI.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
- port_id : a unique id of the logical port (required).
- attachment_id : a unique id of the attachement (required).
GET /tenants/:tenant_id/networks/:net_id/ports/:port_id/attachments/:attachment_id
- 200 :
- 404 : Not found the specified tenant, network, port or attachment.
- 500 : Internal error.
{
"id" : "port_mac_created_via_rest_if",
"mac" : "01:01:01:01:01:01"
}
Remove the attachment specified by the request URI.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
- port_id : a unique id of the logical port (required).
- attachment_id : a unique id of the attachement (required).
DELETE /tenants/:tenant_id/networks/:net_id/ports/:port_id/attachments/:attachment_id
- 202 : Succeeded.
- 404 : Not found the specified tenant, network, port or attachment.
- 500 : Internal error. (Failed to remove the specified attachment.)