Service/Amazon/Ec2/Securitygroups.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Amazon
- Subpackage
- Ec2
- Version
- $Id$
\Zend_Service_Amazon_Ec2_Securitygroups
- Parent(s)
- \Zend_Service_Amazon_Ec2_Abstract < \Zend_Service_Amazon_Abstract < \Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods

authorizeGroup(string $name, string $groupName, string $ownerId) : booleanAdds permissions to a security group
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the group to modify. |
| $groupName | string | Name of security group to authorize access to when operating on a user/group pair. |
| $ownerId | string | Owner of security group to authorize access to when operating on a user/group pair. |
| Type | Description |
|---|---|
| boolean |

authorizeIp(string $name, string $ipProtocol, integer $fromPort, integer $toPort, string $cidrIp) : booleanAdds permissions to a security group
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the group to modify. |
| $ipProtocol | string | IP protocol to authorize access to when operating on a CIDR IP. |
| $fromPort | integer | Bottom of port range to authorize access to when operating on a CIDR IP. This contains the ICMP type if ICMP is being authorized. |
| $toPort | integer | Top of port range to authorize access to when operating on a CIDR IP. This contains the ICMP code if ICMP is being authorized. |
| $cidrIp | string | CIDR IP range to authorize access to when operating on a CIDR IP. |
| Type | Description |
|---|---|
| boolean |

create(string $name, string $description) : booleanCreates a new security group.
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the new security group. |
| $description | string | Description of the new security group. |
| Type | Description |
|---|---|
| boolean |

delete(string $name) : booleanDeletes a security group.
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the security group to delete. |
| Type | Description |
|---|---|
| boolean |

describe(string | array $name = null) : arrayReturns information about security groups that you own.
| Name | Type | Description |
|---|---|---|
| $name | string | array | List of security groups to describe |
| Type | Description |
|---|---|
| array |

revokeGroup(string $name, string $groupName, string $ownerId) : booleanRevokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the group to modify. |
| $groupName | string | Name of security group to revoke access to when operating on a user/group pair. |
| $ownerId | string | Owner of security group to revoke access to when operating on a user/group pair. |
| Type | Description |
|---|---|
| boolean |

revokeIp(string $name, string $ipProtocol, integer $fromPort, integer $toPort, string $cidrIp) : booleanRevokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions.
| Name | Type | Description |
|---|---|---|
| $name | string | Name of the group to modify. |
| $ipProtocol | string | IP protocol to revoke access to when operating on a CIDR IP. |
| $fromPort | integer | Bottom of port range to revoke access to when operating on a CIDR IP. This contains the ICMP type if ICMP is being revoked. |
| $toPort | integer | Top of port range to revoked access to when operating on a CIDR IP. This contains the ICMP code if ICMP is being revoked. |
| $cidrIp | string | CIDR IP range to revoke access to when operating on a CIDR IP. |
| Type | Description |
|---|---|
| boolean |