Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for PostgreSQL
  • Getting started
  • Access management
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • List
        • Create
        • Delete
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • gRPC request
  • ListBackupRetentionPoliciesRequest
  • ListBackupRetentionPoliciesResponse
  • BackupRetentionPolicy
  • CronTab
  1. API reference
  2. gRPC
  3. BackupRetentionPolicy
  4. List

Managed Service for PostgreSQL API, gRPC: BackupRetentionPolicyService.List

Written by
Tania Lushnikova
Updated at February 21, 2025
  • gRPC request
  • ListBackupRetentionPoliciesRequest
  • ListBackupRetentionPoliciesResponse
  • BackupRetentionPolicy
  • CronTab

List all retention policies.

gRPC requestgRPC request

rpc List (ListBackupRetentionPoliciesRequest) returns (ListBackupRetentionPoliciesResponse)

ListBackupRetentionPoliciesRequestListBackupRetentionPoliciesRequest

{
  "cluster_id": "string",
  "page_size": "int64",
  "page_token": "string"
}

Field

Description

cluster_id

string

Required field. ID of the PostgreSQL cluster.
To get the PostgreSQL cluster ID use a ClusterService.List request.

page_size

int64

The maximum number of results per page to return. If the number of available
results is larger than page_size, the service returns a ListBackupRetentionPoliciesResponse.next_page_token
that can be used to get the next page of results in subsequent list requests.

page_token

string

Page token. To get the next page of results, set page_token
to the ListBackupRetentionPoliciesResponse.next_page_token returned by the previous list request.

ListBackupRetentionPoliciesResponseListBackupRetentionPoliciesResponse

{
  "policies": [
    {
      "policy_id": "string",
      "cluster_id": "string",
      "policy_name": "string",
      "created_at": "google.protobuf.Timestamp",
      "cron": {
        "day_of_month": "string",
        "month": "string",
        "day_of_week": "string"
      },
      "retain_for_days": "int64",
      "description": "string"
    }
  ],
  "next_page_token": "string"
}

Field

Description

policies[]

BackupRetentionPolicy

List of BackupRetentionPolicy associated with the cluster.

next_page_token

string

This token allows you to get the next page of results for list requests. If the number of results
is larger than ListBackupRetentionPoliciesRequest.page_size, use the next_page_token as the value
for the ListBackupRetentionPoliciesRequest.page_token query parameter in the next list request.
Each subsequent list request will have its own next_page_token to continue paging through the results.

BackupRetentionPolicyBackupRetentionPolicy

Message to describe a retention policy for cluster backups.

Field

Description

policy_id

string

Required field. Required. Policy ID.

cluster_id

string

Required field. PostgreSQL cluster ID.

policy_name

string

Required field. Required. Policy name.

created_at

google.protobuf.Timestamp

Creation timestamp in RFC3339 text format.

cron

CronTab

CronTab schedule.

retain_for_days

int64

Retention duration.

description

string

Human-readable description.

CronTabCronTab

Message to describe a crontab schedule.

Field

Description

day_of_month

string

month

string

day_of_week

string

Was the article helpful?

Previous
Overview
Next
Create
© 2025 Direct Cursus Technology L.L.C.