Interface ServiceAdminApi
-
@Beta @Consumes("application/json") @Path("OS-KSADM/services") public interface ServiceAdminApi
Provides access to Service Administration actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Service
create(String name, String type, String description)
Creates a new Serviceboolean
delete(String serviceId)
Deletes a serviceService
get(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
-
-