Scalr\Service\Aws\Ec2\V20140615\Ec2Api::describeRouteTables PHP Method

describeRouteTables() public method

Describes one or more of your route tables.
public describeRouteTables ( ListDataType $routeTableIdList = null, Scalr\Service\Aws\Ec2\DataType\RouteTableFilterList $filter = null ) : Scalr\Service\Aws\Ec2\DataType\RouteTableList
$routeTableIdList Scalr\Service\Aws\DataType\ListDataType optional The list of Route Table IDs
$filter Scalr\Service\Aws\Ec2\DataType\RouteTableFilterList optional The filter list
return Scalr\Service\Aws\Ec2\DataType\RouteTableList Returns the list of the RouteTableData objects on success
    public function describeRouteTables(ListDataType $routeTableIdList = null, RouteTableFilterList $filter = null)
    {
        $result = null;
        $options = array();
        $action = ucfirst(__FUNCTION__);
        if ($routeTableIdList !== null) {
            $options = array_merge($options, $routeTableIdList->getQueryArrayBare('RouteTableId'));
        }
        if ($filter !== null) {
            $options = array_merge($options, $filter->getQueryArrayBare('Filter'));
        }
        $response = $this->client->call($action, $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $response = null;
            $result = $this->_loadListByName('RouteTable', $sxml->routeTableSet);
            $result->setRequestId((string) $sxml->requestId);
        }
        return $result;
    }
Ec2Api