public interface SecurityGroupExtension
SecurityGroups. Implementation
 is optional by providers.| Modifier and Type | Method and Description | 
|---|---|
| SecurityGroup | addIpPermission(IpPermission ipPermission,
               SecurityGroup group)Add a @{link IpPermission} to an existing @{link SecurityGroup}. | 
| SecurityGroup | addIpPermission(IpProtocol protocol,
               int startPort,
               int endPort,
               com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs,
               Iterable<String> ipRanges,
               Iterable<String> groupIds,
               SecurityGroup group)Add a @{link IpPermission} to an existing @{link SecurityGroup}, based on the parameters given. | 
| SecurityGroup | createSecurityGroup(String name,
                   Location location)Create a new @{link SecurityGroup} from the parameters given. | 
| SecurityGroup | getSecurityGroupById(String id)Get a security group by id. | 
| Set<SecurityGroup> | listSecurityGroups()List security groups. | 
| Set<SecurityGroup> | listSecurityGroupsForNode(String id)List security groups for a given instance given the instance's ID. | 
| Set<SecurityGroup> | listSecurityGroupsInLocation(Location location)List security groups in a given @{link Location}. | 
| SecurityGroup | removeIpPermission(IpPermission ipPermission,
                  SecurityGroup group)Remove a @{link IpPermission} from an existing @{link SecurityGroup}. | 
| SecurityGroup | removeIpPermission(IpProtocol protocol,
                  int startPort,
                  int endPort,
                  com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs,
                  Iterable<String> ipRanges,
                  Iterable<String> groupIds,
                  SecurityGroup group)Remove a @{link IpPermission} from an existing @{link SecurityGroup}, based on the parameters given. | 
| boolean | removeSecurityGroup(String id)Remove an existing @{link SecurityGroup}, and its permissions. | 
| boolean | supportsExclusionCidrBlocks()Returns true if this SecurityGroupExtension supports exclusion CIDR groups. | 
| boolean | supportsGroupIds()Returns true if this SecurityGroupExtension supports group IDs. | 
| boolean | supportsPortRangesForGroups()Returns true if this SecurityGroupExtension supports port ranges for group authorization. | 
| boolean | supportsTenantIdGroupIdPairs()Returns true if this SecurityGroupExtension supports tenant ID + group ID pairs. | 
| boolean | supportsTenantIdGroupNamePairs()Returns true if this SecurityGroupExtension supports tenant ID + group name pairs. | 
Set<SecurityGroup> listSecurityGroups()
Set<SecurityGroup> listSecurityGroupsInLocation(Location location)
Set<SecurityGroup> listSecurityGroupsForNode(String id)
SecurityGroup getSecurityGroupById(String id)
SecurityGroup createSecurityGroup(String name, Location location)
name - The name of the security grouplocation - The @{link Location} of the security groupboolean removeSecurityGroup(String id)
id - The id of the SecurityGroup to delete.SecurityGroup addIpPermission(IpPermission ipPermission, SecurityGroup group)
rule - The IpPermission to add.group - The SecurityGroup to add the permission to.SecurityGroup removeIpPermission(IpPermission ipPermission, SecurityGroup group)
rule - The IpPermission to remove.group - The SecurityGroup to remove the permission from.SecurityGroup addIpPermission(IpProtocol protocol, int startPort, int endPort, com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs, Iterable<String> ipRanges, Iterable<String> groupIds, SecurityGroup group)
protocol - The @{link IpProtocol} for the permission.startPort - The first port in the range to be opened, or -1 for ICMP.endPort - The last port in the range to be opened, or -1 for ICMP.tenantIdGroupNamePairs - source of traffic allowed is on basis of another group in a tenant, as opposed to by cidripRanges - An Iterable of Strings representing the IP range(s) the permission should allow.groupIds - An Iterable of @{link SecurityGroup} IDs this permission should allow.group - The SecurityGroup to add the permission to.SecurityGroup removeIpPermission(IpProtocol protocol, int startPort, int endPort, com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs, Iterable<String> ipRanges, Iterable<String> groupIds, SecurityGroup group)
protocol - The @{link IpProtocol} for the permission.startPort - The first port in the range to be opened, or -1 for ICMP.endPort - The last port in the range to be opened, or -1 for ICMP.tenantIdGroupNamePairs - source of traffic allowed is on basis of another group in a tenant, as opposed to by cidripRanges - An Iterable of Strings representing the IP range(s) the permission should allow.groupIds - An Iterable of @{link SecurityGroup} IDs this permission should allow.group - The SecurityGroup to remove the permission from.boolean supportsTenantIdGroupNamePairs()
boolean supportsTenantIdGroupIdPairs()
boolean supportsGroupIds()
boolean supportsPortRangesForGroups()
@Beta boolean supportsExclusionCidrBlocks()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.