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

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

Describes one or more of your network interfaces.
public describeNetworkInterfaces ( ListDataType $networkInterfaceIdList = null, Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceFilterList $filter = null ) : Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceList
$networkInterfaceIdList Scalr\Service\Aws\DataType\ListDataType optional One or more network interface IDs
$filter Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceFilterList optional Filter list
Результат Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceList Returns the list of the Network Interfaces
    public function describeNetworkInterfaces(ListDataType $networkInterfaceIdList = null, NetworkInterfaceFilterList $filter = null)
    {
        $result = null;
        $options = array();
        $action = ucfirst(__FUNCTION__);
        if ($networkInterfaceIdList !== null) {
            $options = array_merge($options, $networkInterfaceIdList->getQueryArrayBare('NetworkInterfaceId'));
        }
        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('NetworkInterface', $sxml->networkInterfaceSet);
            $result->requestId = (string) $sxml->requestId;
        }
        return $result;
    }
Ec2Api