@Path(value="tenants")
public class TenantWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
TenantWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addTenantId(InputStream stream)
Creates a tenant with the given tenant identifier.
|
protected static org.onosproject.incubator.net.virtual.TenantId |
getExistingTenantId(org.onosproject.incubator.net.virtual.VirtualNetworkAdminService vnetAdminSvc,
org.onosproject.incubator.net.virtual.TenantId tidIn)
Get the matching tenant identifier from existing tenant identifiers in system.
|
javax.ws.rs.core.Response |
getVirtualNetworkTenantIds()
Returns all tenant identifiers.
|
javax.ws.rs.core.Response |
removeTenantId(String tenantId)
Removes the specified tenant with the specified tenant identifier.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getVirtualNetworkTenantIds()
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response addTenantId(InputStream stream)
stream - TenantId JSON stream@DELETE
@Path(value="{tenantId}")
public javax.ws.rs.core.Response removeTenantId(@PathParam(value="tenantId")
String tenantId)
tenantId - tenant identifierprotected static org.onosproject.incubator.net.virtual.TenantId getExistingTenantId(org.onosproject.incubator.net.virtual.VirtualNetworkAdminService vnetAdminSvc,
org.onosproject.incubator.net.virtual.TenantId tidIn)
vnetAdminSvc - virtual network administration servicetidIn - tenant identifier