Scalr\Service\Aws\Ec2\V20140615\Ec2Api::describeVpcs PHP Метод

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

Describes one or more of your VPCs.
public describeVpcs ( ListDataType $vpcIdList = null, Scalr\Service\Aws\Ec2\DataType\VpcFilterList $filter = null ) : Scalr\Service\Aws\Ec2\DataType\VpcList
$vpcIdList Scalr\Service\Aws\DataType\ListDataType optional The list of the VpcID
$filter Scalr\Service\Aws\Ec2\DataType\VpcFilterList optional The filter list
Результат Scalr\Service\Aws\Ec2\DataType\VpcList Returns the list of the Vpcs
    public function describeVpcs(ListDataType $vpcIdList = null, VpcFilterList $filter = null)
    {
        $result = null;
        $options = array();
        $action = ucfirst(__FUNCTION__);
        if ($vpcIdList !== null) {
            $options = array_merge($options, $vpcIdList->getQueryArrayBare('VpcId'));
        }
        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('Vpc', $sxml->vpcSet);
            $result->setRequestId((string) $sxml->requestId);
        }
        return $result;
    }
Ec2Api