Scalr\Service\Aws\Ec2\V20150415\Ec2Api::createRouteTable PHP Метод

createRouteTable() публичный Метод

Creates a route table within a VPC. After you create a new route table, you can add routes and associate the table with a subnet
public createRouteTable ( string $vpcId ) : Scalr\Service\Aws\Ec2\DataType\RouteTableData
$vpcId string The ID of the VPC
Результат Scalr\Service\Aws\Ec2\DataType\RouteTableData Returns the RouteTableData object on success
    public function createRouteTable($vpcId)
    {
        $result = null;
        $options = array('VpcId' => (string) $vpcId);
        $action = ucfirst(__FUNCTION__);
        $response = $this->client->call($action, $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $result = $this->_loadRouteTableData($sxml->routeTable);
        }
        return $result;
    }
Ec2Api