Repository navigation
Networks
kazuya edited this page Jan 6, 2012
·
1 revision
A short description of networks associated with a tenant.
- tenant_id : a unique id of the tenant (required).
GET /tenants/:tenant_id/networks
- 200 : OK
- 404 : Not found the specified tenant.
- 500 : Internal error. (Failed to retrieve details of the specified tenant.)
[
{
"id" : "slice1",
"description" : "description for slice1"
},
{
"id" : "slice2",
"description" : "description for slice2"
}
]
Create a new network associated with a tenant.
- tenant_id : a unique id of the tenant (required).
POST /tenants/:tenant_id/networks
-
id : a unique id of the network (option). id is automatically assigned if it is not specified.
-
description : description of the creating network (option).
{
"id": "slice_created_via_rest_if",
"description": "description here"
}
- 202 : Succeeded.
- 404 : Not found the specified tenant.
- 422 : The specified parameters are unacceptable.
- 500 : Internal error.
{
"id": "slice_created_via_rest_if",
"description": "description here"
}
Show details of a network identified by net_id.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
GET /tenants/:tenant_id/networks/:net_id
- 200 : OK
- 404 : Not found the specified tenant or network.
- 500 : Internal error. (Failed to retrieve details of the specified network.)
{
"bindings": [
{
"type" : 2,
"id" : "mac_created_via_rest_if",
"mac" : "01:00:00:00:00:01"
},
{
"vid" : 65535,
"datapath_id" : "1024",
"type" : 4,
"id" : "port_mac_created_via_rest_if",
"mac" : "01:01:01:01:01:01",
"port" : 1
},
{
"vid" : 65535,
"datapath_id" : "1024",
"type" : 1,
"id" : "port_created_via_rest_if",
"port" : 1
}
],
"description" : "description here"
}
Update details of a network identified by net_id.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
PUT /tenants/:tenant_id/networks/:net_id
- description : description of the creating network (option)
{
"description" : "new description here"
}
- 202 : Succeeded.
- 404 : Not found the specified tenant or network.
- 422 : The specified parameters are unacceptable.
- 500 : Internal error. (Failed to modify the specified network.)
Remove the network identified by net_id.
- tenant_id : a unique id of the tenant (required).
- net_id : a unique id of the network (required).
DELETE /tenants/:tenant_id/networks/:net_id
- 202 : Succeeded.
- 404 : Not found the specified tenant or network.
- 500 : Internal error. (Failed to destroy the specified network.)