@Beta
@Consumes(value="application/json")
public interface SecurityGroupApi
Modifier and Type | Method and Description |
---|---|
SecurityGroupRule |
createRuleAllowingCidrBlock(String parentGroup,
Ingress ip_protocol,
String sourceCidr)
Create a Security Group Rule.
|
SecurityGroupRule |
createRuleAllowingSecurityGroupId(String parentGroup,
Ingress ip_protocol,
String groupId)
Create a Security Group Rule.
|
SecurityGroup |
createWithDescription(String name,
String description)
Create a Security Group
|
boolean |
delete(String id)
Delete a Security Group.
|
boolean |
deleteRule(String ruleId)
Delete a Security Group Rule.
|
SecurityGroup |
get(String id)
Get a specific Security Group
|
com.google.common.collect.FluentIterable<SecurityGroup> |
list()
List all Security Groups.
|
@Named(value="securityGroup:list") @GET @Path(value="/os-security-groups") com.google.common.collect.FluentIterable<SecurityGroup> list()
@Named(value="securityGroup:get") @GET @Path(value="/os-security-groups/{id}") @Nullable SecurityGroup get(@PathParam(value="id") String id)
@Named(value="securityGroup:create") @POST @Path(value="/os-security-groups") @Produces(value="application/json") @Nullable SecurityGroup createWithDescription(String name, String description)
@Named(value="securityGroup:delete") @DELETE @Path(value="/os-security-groups/{id}") boolean delete(@PathParam(value="id") String id)
@Named(value="securityGroup:create") @POST @Path(value="/os-security-group-rules") @Produces(value="application/json") @Nullable SecurityGroupRule createRuleAllowingCidrBlock(String parentGroup, Ingress ip_protocol, String sourceCidr)
@Named(value="securityGroup:create") @POST @Path(value="/os-security-group-rules") @Produces(value="application/json") @Nullable SecurityGroupRule createRuleAllowingSecurityGroupId(String parentGroup, Ingress ip_protocol, String groupId)
@Named(value="securityGroup:delete") @DELETE @Path(value="/os-security-group-rules/{id}") boolean deleteRule(@PathParam(value="id") String ruleId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.