Scalr\Service\Aws\Rds\V20141031\RdsApi::describeDBClusters PHP Метод

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

Returns information about provisioned RDS clusters. This API supports pagination
public describeDBClusters ( string $dbClusterIdentifier = null, string $marker = null, integer $maxRecords = null ) : Scalr\Service\Aws\Rds\DataType\DBClusterList
$dbClusterIdentifier string optional The user-specified cluster identifier.
$marker string optional The response includes only records beyond the marker.
$maxRecords integer optional The maximum number of records to include in the response.
Результат Scalr\Service\Aws\Rds\DataType\DBClusterList Returns the list of DB Clusters
    public function describeDBClusters($dbClusterIdentifier = null, $marker = null, $maxRecords = null)
    {
        $result = null;
        $options = array();
        if ($dbClusterIdentifier !== null) {
            $options['DBClusterIdentifier'] = (string) $dbClusterIdentifier;
        }
        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 DBClusterList();
            $result->setRds($this->rds);
            $result->marker = $this->exist($sxml->DescribeDBClustersResult->Marker) ? (string) $sxml->DescribeDBClustersResult->Marker : null;
            if (isset($sxml->DescribeDBClustersResult->DBClusters->DBCluster)) {
                foreach ($sxml->DescribeDBClustersResult->DBClusters->DBCluster as $cluster) {
                    $item = $this->_loadDBClusterData($cluster);
                    $result->append($item);
                    unset($item);
                }
            }
        }
        return $result;
    }
RdsApi