@Beta
@Consumes(value="application/json")
@Path(value="OS-KSADM/services")
public interface ServiceAdminApi
Modifier and Type | Method and Description |
---|---|
Service |
create(String name,
String type,
String description)
Creates a new Service
|
boolean |
delete(String serviceId)
Deletes a service
|
Service |
get(String serviceId)
Gets the service
|
PagedIterable<Service> |
list()
Retrieve the list of services
|
PaginatedCollection<Service> |
list(PaginationOptions options) |
@Named(value="service:list") @GET PagedIterable<Service> list()
@Named(value="service:list") @GET PaginatedCollection<Service> list(PaginationOptions options)
@Named(value="service:create") @POST @Nullable Service create(String name, String type, String description)
@Named(value="service:get") @GET @Path(value="/{serviceId}") @Nullable Service get(@PathParam(value="serviceId") String serviceId)
@Named(value="service:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String serviceId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.