Tüm Ürünler
Search
Belge Merkezi

:ModifyAutoRenewAttribute

Son Güncelleme:Sep 29, 2026

Abonelik tabanlı bir PolarDB kümesi için otomatik yenileme durumunu ayarlar.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:ModifyAutoRenewAttribute

update

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterIds

string

Yes

Veritabanı kümesinin kimliği.

pc-***************

RegionId

string

Yes

Bölge kimliği. Kimlik en fazla 50 karakter uzunluğunda olabilir.

Not

Kullanılabilir bölgeleri sorgulamak için DescribeRegions işlemini çağırabilirsiniz.

cn-hangzhou

RenewalStatus

string

No

Otomatik yenileme durumu. Geçerli değerler:

  • AutoRenewal: Otomatik yenilemeyi etkinleştirir.

  • Normal: Manuel yenilemeyi etkinleştirir.

  • NotRenewal: Yenilemeyi devre dışı bırakır.

Varsayılan değer: AutoRenewal.

Not

Bu parametreyi NotRenewal olarak ayarladığınızda, sistem sona erme hatırlatıcılarını göndermeyi durdurur ve sona erme tarihinden yalnızca üç gün önce yenilememe bildirimi gönderir.

AutoRenewal

Duration

string

No

Otomatik yenileme süresi. Geçerli değerler:

  • PeriodUnit değeri Month olduğunda, geçerli değerler [1,2,3,6,12] şeklindedir.

  • PeriodUnit değeri Year olduğunda, geçerli değerler [1-3] şeklindedir.

Varsayılan değer: 1.

1

PeriodUnit

string

No

Otomatik yenileme süresinin birimi. Geçerli değerler:

  • Year

  • Month

Varsayılan değer: Month.

Month

ResourceGroupId

string

No

Kaynak grubu kimliği.

rg-************

CloudProvider

string

No

Kümenin bulut sağlayıcısı.

ENS

Response elements

Element

Type

Description

Example

object

RequestId

string

İstek kimliği.

4CE6DF97-AEA4-484F-906F-C407EE******

Examples

Success response

JSON format

{
  "RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidRenewalStatus.Malformed The specified parameter RenewalStatus is not valid.
400 InvalidPeriodUnit.Malformed The specified parameter PeriodUnit is not valid.
400 InvalidDuration.Malformed The specified parameter Duration is not valid.
403 OperationDenied.DBClusterPayType The operation is not permitted due to the pay type of cluster.
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.