public class LocationResource extends AbstractBrooklynRestResource implements LocationApi
AbstractBrooklynRestResource.RestValueResolver
Constructor and Description |
---|
LocationResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(LocationSpec locationSpec) |
void |
delete(java.lang.String locationId)
Deprecated.
|
LocationSummary |
get(java.lang.String locationId)
Deprecated.
since 0.7.0; REST call now handled by below (optional query parameter added)
|
LocationSummary |
get(java.lang.String locationId,
boolean fullConfig) |
LocationSummary |
get(java.lang.String locationId,
java.lang.String fullConfig)
WARNING: behaviour will change in a future release; this will only return location instances.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getLocatedLocations() |
java.util.List<LocationSummary> |
list() |
brooklyn, injectManagementContext, mgmt
public java.util.List<LocationSummary> list()
list
in interface LocationApi
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getLocatedLocations()
getLocatedLocations
in interface LocationApi
public LocationSummary get(java.lang.String locationId)
public LocationSummary get(java.lang.String locationId, java.lang.String fullConfig)
LocationApi
CatalogApi.getLocation(String, String)
for retrieving location definitions.get
in interface LocationApi
public LocationSummary get(java.lang.String locationId, boolean fullConfig)
public javax.ws.rs.core.Response create(LocationSpec locationSpec)
create
in interface LocationApi
@Deprecated public void delete(java.lang.String locationId)
delete
in interface LocationApi