@Consumes(value="application/json") @Path(value="/groups") public interface GroupApi extends Closeable
Modifier and Type | Method and Description |
---|---|
Group |
create(GroupConfiguration groupConfiguration,
LaunchConfiguration launchConfiguration,
List<CreateScalingPolicy> scalingPolicies)
Create a scaling group.
|
boolean |
delete(String groupId)
This operation deletes the specified Autoscaling Group
|
Group |
get(String id)
This operation gets group details for a group
|
GroupConfiguration |
getGroupConfiguration(String id)
This operation gets the configuration for the scaling group.
|
LaunchConfiguration |
getLaunchConfiguration(String id)
This operation gets the launch configuration for the scaling group.
|
GroupState |
getState(String id)
This operation gets the state of the Autoscaling Group.
|
com.google.common.collect.FluentIterable<GroupState> |
listGroupStates()
This operation lists all autoscaling groups.
|
boolean |
pause(String groupId)
This operation pauses the specified Autoscaling Group
|
boolean |
resume(String groupId)
This operation resumes the specified Autoscaling Group.
|
boolean |
updateGroupConfiguration(String id,
GroupConfiguration groupConfiguration)
This operation updates the configuration for the scaling group.
|
boolean |
updateLaunchConfiguration(String id,
LaunchConfiguration launchConfiguration)
This operation updates the launch configuration for the scaling group.
|
@Named(value="group:create") @POST @Nullable Group create(GroupConfiguration groupConfiguration, LaunchConfiguration launchConfiguration, List<CreateScalingPolicy> scalingPolicies)
groupConfiguration
- The group configuration.launchConfiguration
- The launch configuration.scalingPolicies
- The list of scaling policies.GroupConfiguration
,
LaunchConfiguration
,
CreateScalingPolicy
,
Group
@Named(value="group:pause") @POST @Path(value="/{groupId}/pause") boolean pause(@PathParam(value="groupId") String groupId)
groupId
- The id for the specified Group.resume(String)
@Named(value="group:resume") @POST @Path(value="/{groupId}/resume") boolean resume(@PathParam(value="groupId") String groupId)
groupId
- The id for the specified Group.pause(String)
@Named(value="group:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String groupId)
groupId
- The id for the specified Group.@Named(value="group:get") @GET @Path(value="/{id}") @Nullable Group get(@PathParam(value="id") String id)
id
- The unique identifier of the scaling group.@Named(value="group:getState") @GET @Path(value="/{id}/state") @Nullable GroupState getState(@PathParam(value="id") String id)
id
- The unique identifier of the scaling group.GroupState
@Named(value="group:listGroupStates") @GET com.google.common.collect.FluentIterable<GroupState> listGroupStates()
GroupState
@Named(value="group:getGroupConfiguration") @GET @Path(value="/{groupId}/config") @Nullable GroupConfiguration getGroupConfiguration(@PathParam(value="groupId") String id)
GroupConfiguration
@Named(value="group:updateGroupConfiguration") @PUT @Path(value="/{groupId}/config") boolean updateGroupConfiguration(@PathParam(value="groupId") String id, GroupConfiguration groupConfiguration)
GroupConfiguration
@Named(value="group:getLaunchConfiguration") @GET @Path(value="/{groupId}/launch") @Nullable LaunchConfiguration getLaunchConfiguration(@PathParam(value="groupId") String id)
LaunchConfiguration
@Named(value="group:updateLaunchConfiguration") @PUT @Path(value="/{groupId}/launch") boolean updateLaunchConfiguration(@PathParam(value="groupId") String id, LaunchConfiguration launchConfiguration)
LaunchConfiguration
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.