@Beta
@Consumes(value="application/json")
@Produces(value="application/json")
public interface SecurityGroupApi
Modifier and Type | Method and Description |
---|---|
Rule |
create(Rule.CreateRule securityGroupRule)
Creates a new Security Group Rule.
|
SecurityGroup |
create(SecurityGroup.CreateSecurityGroup securityGroup)
Creates a new SecurityGroup.
|
boolean |
deleteRule(String id)
Deletes the specified Security Group Rule.
|
boolean |
deleteSecurityGroup(String id)
Deletes the specified Security Group.
|
Rule |
get(String id) |
SecurityGroup |
getSecurityGroup(String id) |
PagedIterable<Rule> |
listRules() |
Rules |
listRules(PaginationOptions options) |
PagedIterable<SecurityGroup> |
listSecurityGroups() |
SecurityGroups |
listSecurityGroups(PaginationOptions options) |
@Path(value="/security-groups") @Named(value="security-group:list") @GET PagedIterable<SecurityGroup> listSecurityGroups()
@Path(value="/security-groups") @Named(value="security-group:list") @GET SecurityGroups listSecurityGroups(PaginationOptions options)
@Path(value="/security-groups/{id}") @Named(value="security-group:get") @GET @Nullable SecurityGroup getSecurityGroup(@PathParam(value="id") String id)
id
- the id of the security group to return@Path(value="/security-groups") @Named(value="secuity-group:create") @POST SecurityGroup create(SecurityGroup.CreateSecurityGroup securityGroup)
securityGroup
- Describes the security group to be created.@Path(value="/security-groups/{id}") @Named(value="security-group:delete") @DELETE boolean deleteSecurityGroup(@PathParam(value="id") String id)
id
- the id of the security group to delete@Path(value="/security-group-rules") @Named(value="security-group-rule:list") @GET PagedIterable<Rule> listRules()
@Path(value="/security-group-rules") @Named(value="security-group-rule:list") @GET Rules listRules(PaginationOptions options)
@Path(value="/security-group-rules/{id}") @Named(value="security-group-rule:get") @GET @Nullable Rule get(@PathParam(value="id") String id)
id
- the id of the security group rule to return.@Path(value="/security-group-rules") @Named(value="security-group-rule:create") @POST Rule create(Rule.CreateRule securityGroupRule)
securityGroupRule
- Describes the security group rule to be created.@Path(value="/security-group-rules/{id}") @Named(value="security-group-rule:delete") @DELETE boolean deleteRule(@PathParam(value="id") String id)
id
- the id of the security group rule to delete.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.