Interface ServiceAdminApi
-
@Beta @Consumes("application/json") @Path("OS-KSADM/services") public interface ServiceAdminApiProvides access to Service Administration actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Servicecreate(String name, String type, String description)Creates a new Servicebooleandelete(String serviceId)Deletes a serviceServiceget(String serviceId)Gets the servicePagedIterable<Service>list()Retrieve the list of servicesPaginatedCollection<Service>list(PaginationOptions options)
-
-
-
Method Detail
-
list
@Named("service:list") @GET PagedIterable<Service> list()Retrieve the list of services- Returns:
- the list of services
-
list
@Named("service:list") @GET PaginatedCollection<Service> list(PaginationOptions options)
-
create
@Named("service:create") @POST @Nullable Service create(String name, String type, String description)Creates a new Service- Returns:
- the new Service
-
get
@Named("service:get") @GET @Path("/{serviceId}") @Nullable Service get(@PathParam("serviceId") String serviceId)Gets the service- Returns:
- the service
-
delete
@Named("service:delete") @DELETE @Path("/{id}") boolean delete(@PathParam("id") String serviceId)Deletes a service- Returns:
- true if successful
-
-