Пример #1
0
 /**
  * Describe Security Groups 
  * The DescribeSecurityGroups operation 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.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DescribeSecurityGroups.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSecurityGroupsRequest request
  * or Amazon_EC2_Model_DescribeSecurityGroupsRequest object itself
  * @see Amazon_EC2_Model_DescribeSecurityGroups
  * @return Amazon_EC2_Model_DescribeSecurityGroupsResponse Amazon_EC2_Model_DescribeSecurityGroupsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeSecurityGroups($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DescribeSecurityGroupsRequest) {
         require_once 'Amazon/EC2/Model/DescribeSecurityGroupsRequest.php';
         $request = new Amazon_EC2_Model_DescribeSecurityGroupsRequest($request);
     }
     require_once 'Amazon/EC2/Model/DescribeSecurityGroupsResponse.php';
     return Amazon_EC2_Model_DescribeSecurityGroupsResponse::fromXML($this->_invoke($this->_convertDescribeSecurityGroups($request)));
 }
Пример #2
0
 /**
  * Describe Security Groups 
  * The DescribeSecurityGroups operation 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.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-DescribeSecurityGroups.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSecurityGroups request or Amazon_EC2_Model_DescribeSecurityGroups object itself
  * @see Amazon_EC2_Model_DescribeSecurityGroups
  * @return Amazon_EC2_Model_DescribeSecurityGroupsResponse Amazon_EC2_Model_DescribeSecurityGroupsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeSecurityGroups($request)
 {
     require_once 'Amazon/EC2/Model/DescribeSecurityGroupsResponse.php';
     return Amazon_EC2_Model_DescribeSecurityGroupsResponse::fromXML($this->_invoke('DescribeSecurityGroups'));
 }