Tüm Ürünler
Search
Belge Merkezi

:ModifyInstanceConfig

Son Güncelleme:Oct 02, 2026

Bir ApsaraDB for Tair (Redis® OSS-Compatible) veritabanı örneğinin parametre ayarlarını değiştirir.

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

kvstore:ModifyInstanceConfig

update

*DBInstance

acs:kvstore:{#regionId}:{#accountId}:instance/{#instanceId}

  • kvstore:InstanceAofConfig
  • kvstore:TLSVersion
None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Örnek kimliği.

r-bp1zxszhcgatnx****

Config

string

No

JSON formatında, değiştirilecek örnek parametreleri. Yeni değerler mevcut değerlerin üzerine yazılır. Örneğin, yalnızca maxmemory-policy parametresini noeviction olarak ayarlamak istiyorsanız {"maxmemory-policy":"noeviction"} değerini iletin.\n> Her bir parametre hakkında daha fazla bilgi için Metrik açıklaması konusuna bakın.

{"maxmemory-policy":"volatile-lru","zset-max-ziplist-entries":128,"zset-max-ziplist-value":64,"hash-max-ziplist-entries":512,"set-max-intset-entries":512}

ParamReplMode

string

No

Senkronizasyon modeli. Geçerli değerler:\n* async (varsayılan): eşzamansız\n* semisync: yarı eşzamanlı.

async

ParamSemisyncReplTimeout

string

No

Yarı eşzamanlı mod için düşürme eşiği. Bu parametre yalnızca yarı eşzamanlı modda desteklenir. Birim: ms. Geçerli değerler: 10 ile 60000 arası. Varsayılan değer: 500.\n> * Senkronizasyon gecikmesi bu eşiği aştığında, eşzamanlı mod otomatik olarak eşzamansız moda geçer. Gecikme ortadan kalktığında, eşzamanlı mod otomatik olarak yarı eşzamanlı moda geri döner.\n> * Bu parametre yalnızca Tair Enterprise örnekleri tarafından desteklenir. Bu özellik genel önizleme aşamasındadır.

500

ParamNoLooseSentinelEnabled

string

No

Sentinel uyumluluk modu. Bu parametre küme olmayan örnekler için geçerlidir. Geçerli değerler:\n* no (varsayılan): devre dışı.\n* yes: etkin.\n> Daha fazla bilgi için Sentinel uyumluluk modu konusuna bakın.

yes

ParamSentinelCompatEnable

string

No

Sentinel uyumluluk modu. Bu parametre, küme mimarisinde proxy bağlantı modunu kullanan örnekler veya okuma/yazma bölme mimarisini kullanan örnekler için geçerlidir. Geçerli değerler:\n* 0 (varsayılan): devre dışı.\n* 1: etkin.\n> Daha fazla bilgi için Sentinel uyumluluk modu konusuna bakın.

1

ParamNoLooseSentinelPasswordFreeAccess

string

No

Sentinel modu etkinleştirildiğinde Sentinel ile ilgili komutların parolasız olarak çalıştırılmasına izin verilip verilmeyeceğini belirtir. Geçerli değerler:\n* no (varsayılan): devre dışı.\n* yes: etkin. Bu parametre etkinleştirildikten sonra, herhangi bir bağlantıda parola olmadan Sentinel komutlarını çalıştırabilir ve +switch-master kanalını dinlemek için SENTINEL komutunu kullanabilirsiniz.

****

ParamNoLooseSentinelPasswordFreeCommands

string

No

Sentinel modu ve ParamNoLooseSentinelPasswordFreeAccess parametresi etkinleştirildikten sonra, ek parolasız komutlar eklemek için bu parametreyi kullanın (varsayılan olarak boştur).\n> * Bu parametre ayarlandıktan sonra, belirtilen komutlar herhangi bir bağlantıda parolasız olarak çalıştırılabilir. Dikkatli olun.\n> * Komutlar küçük harflerle yazılmalıdır. Birden fazla komutu virgül (,) ile ayırın.

****

Response elements

Element

Type

Description

Example

object

RequestId

string

İstek kimliği.

8D0C0AFC-E9CD-47A4-8395-5C31BF9B****

Examples

Success response

JSON format

{
  "RequestId": "8D0C0AFC-E9CD-47A4-8395-5C31BF9B****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameters.Format Specified parameters is not valid. The parameter is invalid.
400 ParamNotSupportedForCurrentVersion Parameter is not supported for current version.
403 InstanceType.NotSupport Current instance type does not support this operation.
403 NetworkType.NotSupport Current network type does not support this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.