public describeDBParameterGroups ( string $dBParameterGroupName = null, string $marker = null, integer $maxRecords = null ) : Scalr\Service\Aws\Rds\DataType\DBParameterGroupList | ||
$dBParameterGroupName | string | optional The name of a specific DB Parameter Group to return details for. |
$marker | string | optional An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. |
$maxRecords | integer | optional The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved. |
Résultat | Scalr\Service\Aws\Rds\DataType\DBParameterGroupList | Returns DBParameterGroupList on success or throws an exception. |
public function describeDBParameterGroups($dBParameterGroupName = null, $marker = null, $maxRecords = null)
{
$result = null;
$options = array();
$action = ucfirst(__FUNCTION__);
if ($dBParameterGroupName !== null) {
$options['DBParameterGroupName'] = (string) $dBParameterGroupName;
}
if ($marker !== null) {
$options['Marker'] = (string) $marker;
}
if ($maxRecords !== null) {
$options['MaxRecords'] = (int) $maxRecords;
}
$response = $this->client->call($action, $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
if (!$this->exist($sxml->{$action . 'Result'})) {
throw new RdsException(sprintf(self::UNEXPECTED, $action));
}
$ptr = $sxml->{$action . 'Result'};
$result = new DBParameterGroupList();
$result->setRds($this->rds);
$result->marker = $this->exist($ptr->Marker) ? (string) $ptr->Marker : null;
if (isset($ptr->DBParameterGroups->DBParameterGroup)) {
foreach ($ptr->DBParameterGroups->DBParameterGroup as $v) {
$item = $this->_loadDBParameterGroupData($v);
$result->append($item);
unset($item);
}
}
}
return $result;
}