Modifier and Type | Method and Description |
---|---|
String |
authorizeIngressICMPToCIDRs(String securityGroupId,
int ICMPCode,
int ICMPType,
Iterable<String> cidrList,
AccountInDomainOptions... options)
Authorizes a particular ICMP ingress rule for this security group
|
String |
authorizeIngressICMPToSecurityGroups(String securityGroupId,
int ICMPCode,
int ICMPType,
com.google.common.collect.Multimap<String,String> accountToGroup,
AccountInDomainOptions... options)
Authorizes a particular ICMP ingress rule for this security group
|
String |
authorizeIngressPortsToCIDRs(String securityGroupId,
String protocol,
int startPort,
int endPort,
Iterable<String> cidrList,
AccountInDomainOptions... options)
Authorizes a particular TCP or UDP ingress rule for this security group
|
String |
authorizeIngressPortsToSecurityGroups(String securityGroupId,
String protocol,
int startPort,
int endPort,
com.google.common.collect.Multimap<String,String> accountToGroup,
AccountInDomainOptions... options)
Authorizes a particular TCP or UDP ingress rule for this security group
|
SecurityGroup |
createSecurityGroup(String name)
Creates a security group
|
void |
deleteSecurityGroup(String id)
delete a specific security group by id
|
SecurityGroup |
getSecurityGroup(String id)
get a specific security group by id
|
SecurityGroup |
getSecurityGroupByName(String securityGroupName)
get a specific security group by name
|
Set<SecurityGroup> |
listSecurityGroups(ListSecurityGroupsOptions... options)
Lists security groups
|
String |
revokeIngressRule(String id,
AccountInDomainOptions... options)
Deletes a particular ingress rule from this security group
|
@Named(value="listSecurityGroups") @GET @Consumes(value="application/json") Set<SecurityGroup> listSecurityGroups(ListSecurityGroupsOptions... options)
options
- if present, how to constrain the list.@Named(value="listSecurityGroups") @GET @Consumes(value="application/json") SecurityGroup getSecurityGroup(@QueryParam(value="id") String id)
id
- group to get@Named(value="listSecurityGroups") @GET @Consumes(value="application/json") SecurityGroup getSecurityGroupByName(@QueryParam(value="securitygroupname") String securityGroupName)
securityGroupName
- group to get@Named(value="createSecurityGroup") @GET @Consumes(value="application/json") SecurityGroup createSecurityGroup(@QueryParam(value="name") String name)
name
- name of the security group@Named(value="authorizeSecurityGroupIngress") @GET @Consumes(value="application/json") String authorizeIngressPortsToCIDRs(@QueryParam(value="securitygroupid") String securityGroupId, @QueryParam(value="protocol") String protocol, @QueryParam(value="startport") int startPort, @QueryParam(value="endport") int endPort, Iterable<String> cidrList, AccountInDomainOptions... options)
securityGroupId
- The ID of the security groupprotocol
- tcp or udpstartPort
- start port for this ingress ruleendPort
- end port for this ingress rulecidrList
- the cidr list associated@Named(value="authorizeSecurityGroupIngress") @GET @Consumes(value="application/json") String authorizeIngressPortsToSecurityGroups(@QueryParam(value="securitygroupid") String securityGroupId, @QueryParam(value="protocol") String protocol, @QueryParam(value="startport") int startPort, @QueryParam(value="endport") int endPort, com.google.common.collect.Multimap<String,String> accountToGroup, AccountInDomainOptions... options)
securityGroupId
- The ID of the security groupprotocol
- tcp or udpstartPort
- start port for this ingress ruleendPort
- end port for this ingress ruleaccountToGroup
- mapping of account names to security groups you wish to
authorize@Named(value="authorizeSecurityGroupIngress") @GET @Consumes(value="application/json") String authorizeIngressICMPToCIDRs(@QueryParam(value="securitygroupid") String securityGroupId, @QueryParam(value="icmpcode") int ICMPCode, @QueryParam(value="icmptype") int ICMPType, Iterable<String> cidrList, AccountInDomainOptions... options)
securityGroupId
- The ID of the security groupICMPCode
- type of the icmp message being sentICMPType
- error code for this icmp messagecidrList
- the cidr list associated@Named(value="authorizeSecurityGroupIngress") @GET @Consumes(value="application/json") String authorizeIngressICMPToSecurityGroups(@QueryParam(value="securitygroupid") String securityGroupId, @QueryParam(value="icmpcode") int ICMPCode, @QueryParam(value="icmptype") int ICMPType, com.google.common.collect.Multimap<String,String> accountToGroup, AccountInDomainOptions... options)
securityGroupId
- The ID of the security groupICMPCode
- type of the icmp message being sentICMPType
- error code for this icmp messageaccountToGroup
- mapping of account names to security groups you wish to
authorize@Named(value="revokeSecurityGroupIngress") @GET @Consumes(value="application/json") String revokeIngressRule(@QueryParam(value="id") String id, AccountInDomainOptions... options)
id
- The ID of the ingress ruleoptions
- scope of the rule.@Named(value="deleteSecurityGroup") @GET @Consumes(value="application/json") void deleteSecurityGroup(@QueryParam(value="id") String id)
id
- group to deleteCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.