@Path(value="api/v1beta2")
@Produces(value="application/json")
@Consumes(value="application/json")
public interface Kubernetes
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE_ALL |
static String |
NAMESPACE_DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
String |
createPod(io.fabric8.kubernetes.api.model.Pod entity,
String namespace) |
String |
createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity,
String namespace) |
String |
createService(io.fabric8.kubernetes.api.model.Service entity,
String namespace) |
String |
deletePod(String podId,
String namespace) |
String |
deleteReplicationController(String controllerId,
String namespace)
Delete a specific controller
|
String |
deleteService(String serviceId,
String namespace) |
io.fabric8.kubernetes.api.model.Endpoints |
endpointsForService(String serviceId,
String namespace)
List all endpoints for a service
|
io.fabric8.kubernetes.api.model.EndpointsList |
getEndpoints(String namespace)
List all service endpoints on this cluster
|
io.fabric8.kubernetes.api.model.MinionList |
getMinions()
List all the minions on this cluster
|
io.fabric8.kubernetes.api.model.Pod |
getPod(String podId,
String namespace)
Get a specific pod
|
io.fabric8.kubernetes.api.model.PodList |
getPods(String namespace)
List all pods on this cluster
|
io.fabric8.kubernetes.api.model.ReplicationController |
getReplicationController(String controllerId,
String namespace)
Get a specific controller
|
io.fabric8.kubernetes.api.model.ReplicationControllerList |
getReplicationControllers(String namespace)
List all replicationControllers on this cluster
|
io.fabric8.kubernetes.api.model.Service |
getService(String serviceId,
String namespace)
Get a specific service
|
io.fabric8.kubernetes.api.model.ServiceList |
getServices(String namespace)
List all services on this cluster
|
io.fabric8.kubernetes.api.model.Minion |
minion(String minionId)
List all endpoints for a service
|
String |
updatePod(String podId,
io.fabric8.kubernetes.api.model.Pod entity,
String namespace)
Update a pod
|
String |
updateReplicationController(String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity,
String namespace) |
String |
updateService(String serviceId,
io.fabric8.kubernetes.api.model.Service entity,
String namespace)
Update a service
|
static final String NAMESPACE_ALL
static final String NAMESPACE_DEFAULT
@GET
@Path(value="pods")
io.fabric8.kubernetes.api.model.PodList getPods(@QueryParam(value="namespace")
String namespace)
namespace - @POST @Path(value="pods") @Consumes(value="application/json") String createPod(io.fabric8.kubernetes.api.model.Pod entity, @QueryParam(value="namespace") String namespace) throws Exception
Exception@GET
@Path(value="pods/{podId}")
io.fabric8.kubernetes.api.model.Pod getPod(@PathParam(value="podId")@NotNull
String podId,
@QueryParam(value="namespace")
String namespace)
podId - namespace - @PUT
@Path(value="pods/{podId}")
@Consumes(value="application/json")
String updatePod(@PathParam(value="podId")@NotNull
String podId,
io.fabric8.kubernetes.api.model.Pod entity,
@QueryParam(value="namespace")
String namespace)
throws Exception
podId - entity - namespace - Exception@DELETE
@Path(value="pods/{podId}")
@Consumes(value="text/plain")
String deletePod(@PathParam(value="podId")@NotNull
String podId,
@QueryParam(value="namespace")
String namespace)
throws Exception
Exception@Path(value="services")
@GET
@Produces(value="application/json")
io.fabric8.kubernetes.api.model.ServiceList getServices(@QueryParam(value="namespace")
String namespace)
namespace - @Path(value="services") @POST @Consumes(value="application/json") String createService(io.fabric8.kubernetes.api.model.Service entity, @QueryParam(value="namespace") String namespace) throws Exception
Exception@GET
@Path(value="services/{serviceId}")
@Produces(value="application/json")
io.fabric8.kubernetes.api.model.Service getService(@PathParam(value="serviceId")@NotNull
String serviceId,
@QueryParam(value="namespace")
String namespace)
serviceId - namespace - @PUT
@Path(value="services/{serviceId}")
@Consumes(value="application/json")
String updateService(@PathParam(value="serviceId")@NotNull
String serviceId,
io.fabric8.kubernetes.api.model.Service entity,
@QueryParam(value="namespace")
String namespace)
throws Exception
Exception@DELETE
@Path(value="services/{serviceId}")
@Produces(value="application/json")
@Consumes(value="text/plain")
String deleteService(@PathParam(value="serviceId")@NotNull
String serviceId,
@QueryParam(value="namespace")
String namespace)
throws Exception
Exception@Path(value="replicationControllers")
@GET
@Produces(value="application/json")
io.fabric8.kubernetes.api.model.ReplicationControllerList getReplicationControllers(@QueryParam(value="namespace")
String namespace)
namespace - @Path(value="replicationControllers") @POST @Consumes(value="application/json") String createReplicationController(io.fabric8.kubernetes.api.model.ReplicationController entity, @QueryParam(value="namespace") String namespace) throws Exception
Exception@PUT
@Path(value="replicationControllers/{controllerId}")
@Consumes(value="application/json")
String updateReplicationController(@PathParam(value="controllerId")@NotNull
String controllerId,
io.fabric8.kubernetes.api.model.ReplicationController entity,
@QueryParam(value="namespace")
String namespace)
throws Exception
Exception@GET
@Path(value="replicationControllers/{controllerId}")
@Produces(value="application/json")
io.fabric8.kubernetes.api.model.ReplicationController getReplicationController(@PathParam(value="controllerId")@NotNull
String controllerId,
@QueryParam(value="namespace")
String namespace)
controllerId - namespace - @DELETE
@Path(value="replicationControllers/{controllerId}")
@Produces(value="application/json")
@Consumes(value="text/plain")
String deleteReplicationController(@PathParam(value="controllerId")@NotNull
String controllerId,
@QueryParam(value="namespace")
String namespace)
throws Exception
controllerId - Exception@GET
@Path(value="endpoints")
io.fabric8.kubernetes.api.model.EndpointsList getEndpoints(@QueryParam(value="namespace")
String namespace)
@GET
@Path(value="endpoints/{serviceId}")
io.fabric8.kubernetes.api.model.Endpoints endpointsForService(@PathParam(value="serviceId")@NotNull
String serviceId,
@QueryParam(value="namespace")
String namespace)
@GET @Path(value="minions") io.fabric8.kubernetes.api.model.MinionList getMinions()
@GET
@Path(value="minions/{minionId}")
io.fabric8.kubernetes.api.model.Minion minion(@PathParam(value="minionId")@NotNull
String minionId)
Copyright © 2011–2015 Red Hat. All rights reserved.