Managed Service for PostgreSQL API, REST: BackupRetentionPolicy.List
List all retention policies.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-postgresql/v1/clusters/{clusterId}/retention_policies
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the PostgreSQL cluster. |
Query parameters
Field |
Description |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
Response
HTTP Code: 200 - OK
{
"policies": [
{
"policyId": "string",
"clusterId": "string",
"policyName": "string",
"createdAt": "string",
"cron": {
"dayOfMonth": "string",
"month": "string",
"dayOfWeek": "string"
},
"retainForDays": "string",
"description": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
policies[] |
List of BackupRetentionPolicy associated with the cluster. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
BackupRetentionPolicy
Message to describe a retention policy for cluster backups.
Field |
Description |
policyId |
string Required field. Required. Policy ID. |
clusterId |
string Required field. PostgreSQL cluster ID. |
policyName |
string Required field. Required. Policy name. |
createdAt |
string (date-time) Creation timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
cron |
CronTab schedule. |
retainForDays |
string (int64) Retention duration. |
description |
string Human-readable description. |
CronTab
Message to describe a crontab schedule.
Field |
Description |
dayOfMonth |
string |
month |
string |
dayOfWeek |
string |