[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 301 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Service_Amazon_Ec2_Securitygroups:: (7 methods):
create()
describe()
delete()
authorizeIp()
authorizeGroup()
revokeIp()
revokeGroup()
Class: Zend_Service_Amazon_Ec2_Securitygroups - X-Ref
An Amazon EC2 interface to create, delete, describe, grand and revoke sercurity permissions.create($name, $description) X-Ref |
Creates a new security group. Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the {@link authorizeIp}, {@link authorizeGroup}, {@link revokeGroup} and {$link revokeIp} operations. param: string $name Name of the new security group. param: string $description Description of the new security group. return: boolean |
describe($name = null) X-Ref |
Returns information about security groups that you own. If you specify security group names, information about those security group is returned. Otherwise, information for all security group is returned. If you specify a group that does not exist, a fault is returned. param: string|array $name List of security groups to describe return: array |
delete($name) X-Ref |
Deletes a security group. If you attempt to delete a security group that contains instances, a fault is returned. If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed. param: string $name Name of the security group to delete. return: boolean |
authorizeIp($name, $ipProtocol, $fromPort, $toPort, $cidrIp) X-Ref |
Adds permissions to a security group Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). When authorizing ICMP, -1 can be used as a wildcard in the type and code fields. Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur. param: string $name Name of the group to modify. param: string $ipProtocol IP protocol to authorize access to when operating on a CIDR IP. param: integer $fromPort Bottom of port range to authorize access to when operating on a CIDR IP. param: integer $toPort Top of port range to authorize access to when operating on a CIDR IP. param: string $cidrIp CIDR IP range to authorize access to when operating on a CIDR IP. return: boolean |
authorizeGroup($name, $groupName, $ownerId) X-Ref |
Adds permissions to a security group When authorizing a user/group pair permission, GroupName, SourceSecurityGroupName and SourceSecurityGroupOwnerId must be specified. Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur. param: string $name Name of the group to modify. param: string $groupName Name of security group to authorize access to when operating on a user/group pair. param: string $ownerId Owner of security group to authorize access to when operating on a user/group pair. return: boolean |
revokeIp($name, $ipProtocol, $fromPort, $toPort, $cidrIp) X-Ref |
Revokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions. Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). When authorizing ICMP, -1 can be used as a wildcard in the type and code fields. Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur. param: string $name Name of the group to modify. param: string $ipProtocol IP protocol to revoke access to when operating on a CIDR IP. param: integer $fromPort Bottom of port range to revoke access to when operating on a CIDR IP. param: integer $toPort Top of port range to revoked access to when operating on a CIDR IP. param: string $cidrIp CIDR IP range to revoke access to when operating on a CIDR IP. return: boolean |
revokeGroup($name, $groupName, $ownerId) X-Ref |
Revokes permissions from a security group. The permissions used to revoke must be specified using the same values used to grant the permissions. Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur. When revoking a user/group pair permission, GroupName, SourceSecurityGroupName and SourceSecurityGroupOwnerId must be specified. param: string $name Name of the group to modify. param: string $groupName Name of security group to revoke access to when operating on a user/group pair. param: string $ownerId Owner of security group to revoke access to when operating on a user/group pair. return: boolean |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |