/** * Describe Subnets * Gives you information about your subnets. You can filter the results to * return information only about subnets that match criteria you specify. * For example, you could ask to get information about a particular subnet * (or all) only if the subnet's state is available. You can specify multiple * filters (e.g., the subnet is in a particular VPC, and the subnet's state is * available). The result includes information for a particular subnet only * if the subnet matches all your filters. If there's no match, no special * message is returned; the response is simply empty. The following table * shows the available filters. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeSubnets.html * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSubnetsRequest request * or Amazon_EC2_Model_DescribeSubnetsRequest object itself * @see Amazon_EC2_Model_DescribeSubnets * @return Amazon_EC2_Model_DescribeSubnetsResponse Amazon_EC2_Model_DescribeSubnetsResponse * * @throws Amazon_EC2_Exception */ public function describeSubnets($request) { if (!$request instanceof Amazon_EC2_Model_DescribeSubnetsRequest) { require_once 'Amazon/EC2/Model/DescribeSubnetsRequest.php'; $request = new Amazon_EC2_Model_DescribeSubnetsRequest($request); } require_once 'Amazon/EC2/Model/DescribeSubnetsResponse.php'; return Amazon_EC2_Model_DescribeSubnetsResponse::fromXML($this->_invoke($this->_convertDescribeSubnets($request))); }
/** * Describe Subnets * Gives you information about your subnets. You can filter the results to * return information only about subnets that match criteria you specify. * For example, you could ask to get information about a particular subnet * (or all) only if the subnet's state is available. You can specify multiple * filters (e.g., the subnet is in a particular VPC, and the subnet's state is * available). The result includes information for a particular subnet only * if the subnet matches all your filters. If there's no match, no special * message is returned; the response is simply empty. The following table * shows the available filters. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeSubnets.html * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSubnets request or Amazon_EC2_Model_DescribeSubnets object itself * @see Amazon_EC2_Model_DescribeSubnets * @return Amazon_EC2_Model_DescribeSubnetsResponse Amazon_EC2_Model_DescribeSubnetsResponse * * @throws Amazon_EC2_Exception */ public function describeSubnets($request) { require_once 'Amazon/EC2/Model/DescribeSubnetsResponse.php'; return Amazon_EC2_Model_DescribeSubnetsResponse::fromXML($this->_invoke('DescribeSubnets')); }