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

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

Returns information about DB cluster snapshots. This API supports pagination
public describeDBClusterSnapshots ( string $dbClusterIdentifier = null, string $dbClusterSnapshotIdentifier = null, string $snapshotType = null, string $marker = null, integer $maxRecords = null ) : Scalr\Service\Aws\Rds\DataType\DBClusterSnapshotList
$dbClusterIdentifier string optional A DB cluster identifier to retrieve the list of DB cluster snapshots for. This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.
$dbClusterSnapshotIdentifier string optional A specific DB cluster snapshot identifier to describe. This parameter cannot be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.
$snapshotType string optional The type of DB cluster snapshots that will be returned. Values can be automated or manual. If this parameter is not specified, the returned results will include all snapshot types.
$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\DBClusterSnapshotList Returns the list of DB Cluster Snapshots
    public function describeDBClusterSnapshots($dbClusterIdentifier = null, $dbClusterSnapshotIdentifier = null, $snapshotType = null, $marker = null, $maxRecords = null)
    {
        $result = null;
        $options = [];
        if ($dbClusterIdentifier !== null) {
            $options['DBClusterIdentifier'] = (string) $dbClusterIdentifier;
        }
        if ($dbClusterSnapshotIdentifier !== null) {
            $options['DBClusterSnapshotIdentifier'] = (string) $dbClusterSnapshotIdentifier;
        }
        if ($snapshotType !== null) {
            $options['SnapshotType'] = (string) $snapshotType;
        }
        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 DBClusterSnapshotList();
            $result->setRds($this->rds);
            $result->marker = $this->exist($sxml->DescribeDBClusterSnapshotsResult->Marker) ? (string) $sxml->DescribeDBClusterSnapshotsResult->Marker : null;
            if (isset($sxml->DescribeDBClusterSnapshotsResult->DBClusterSnapshots->DBClusterSnapshot)) {
                foreach ($sxml->DescribeDBClusterSnapshotsResult->DBClusterSnapshots->DBClusterSnapshot as $clusterSnapshot) {
                    $item = $this->_loadDBClusterSnapshotData($clusterSnapshot);
                    $result->append($item);
                    unset($item);
                }
            }
        }
        return $result;
    }
RdsApi