Scalr\Service\Aws\Rds\V20130110\RdsApi::describeDBSecurityGroups PHP Метод

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

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DBSecurityGroup.
public describeDBSecurityGroups ( string $dBSecurityGroupName = null, string $marker = null, string $maxRecords = null ) : Scalr\Service\Aws\Rds\DataType\DBSecurityGroupList
$dBSecurityGroupName string optional The name of the DB Security Group to return details for.
$marker string optional Pagination token, provided by a previous request.
$maxRecords string optional The maximum number of records to include in the response.
Результат Scalr\Service\Aws\Rds\DataType\DBSecurityGroupList Returns the list of the DBSecurityGroupData
    public function describeDBSecurityGroups($dBSecurityGroupName = null, $marker = null, $maxRecords = null)
    {
        $result = null;
        $options = array();
        if ($dBSecurityGroupName !== null) {
            $options['DBSecurityGroupName'] = (string) $dBSecurityGroupName;
        }
        if ($marker !== null) {
            $options['Marker'] = (string) $marker;
        }
        if ($maxRecords !== null) {
            $options['MaxRecords'] = (int) $maxRecords;
        }
        $response = $this->client->call(ucfirst(__FUNCTION__), $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $result = new DBSecurityGroupList();
            $result->setRds($this->rds);
            $result->marker = $this->exist($sxml->DescribeDBSecurityGroupsResult->Marker) ? (string) $sxml->DescribeDBSecurityGroupsResult->Marker : null;
            if (isset($sxml->DescribeDBSecurityGroupsResult->DBSecurityGroups->DBSecurityGroup)) {
                foreach ($sxml->DescribeDBSecurityGroupsResult->DBSecurityGroups->DBSecurityGroup as $v) {
                    $item = $this->_loadDBSecurityGroupData($v);
                    $result->append($item);
                    unset($item);
                }
            }
        }
        return $result;
    }