DescribeInstanceConfig

Updated at:

Queries some default configuration parameters of an ApsaraDB Tair (Redis® OSS-Compatible) instance.

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:DescribeInstanceConfig

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Instance ID of the instance. You can call the DescribeInstances operation to query instance ID.

r-bp1zxszhcgatnx****

Response elements

Element

Type

Description

Example

object

Config

string

The default configuration parameters of the instance. For more comprehensive parameter configurations, call the Describeparamters operation.

{\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"zset-max-ziplist-entries\":128,\"list-max-ziplist-entries\":512,\"list-max-ziplist-value\":64,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64}

RequestId

string

The ID of the request.

4E2C08F6-2D11-4ECD-9A4C-27EF2D3D****

ParamReplMode

string

The synchronization mode. Valid values:

  • async: asynchronous mode. This is the default value.

  • semisync: semi-synchronous mode.

async

ParamReplTimeout

string

The degradation threshold for the semi-synchronous mode. This parameter can be configured only when the semi-synchronous mode is used. Unit: milliseconds. Valid values: 10 to 60000. Default value: 500.

Note

When the synchronization latency exceeds this threshold, the synchronization mode automatically degrades to the asynchronous mode. After the synchronization latency is eliminated, the synchronization mode automatically switches back to the semi-synchronous mode.

500

ParamNoLooseSentinelEnabled

string

The Sentinel compatibility mode, which applies to non-cluster instances. Valid values:

  • no: disabled. This is the default value.

  • yes: enabled.

Note

For more information, see Sentinel compatibility mode.

no

ParamSentinelCompatEnable

string

The Sentinel compatibility mode, which applies to instances in the cluster architecture proxy mode or read/write splitting architecture. Valid values:

  • 0: disabled. This is the default value.

  • 1: enabled.

Note

For more information, see Sentinel compatibility mode.

0

ParamNoLooseSentinelPasswordFreeAccess

string

Specifies whether to allow password-free execution of Sentinel-related commands when the Sentinel mode is enabled. Valid values:

  • no: disabled. This is the default value.

  • yes: enabled. After this feature is enabled, you can execute Sentinel commands without a password on any connection and use the SENTINEL command to monitor the +switch-master channel.

no

ParamNoLooseSentinelPasswordFreeCommands

string

The list of additional password-free commands. After the Sentinel mode and the ParamNoLooseSentinelPasswordFreeAccess parameter are enabled, you can use this parameter to add extra password-free commands. Default value: empty.

****

Examples

Success response

JSON format

{
  "Config": "{\\\"EvictionPolicy\\\":\\\"volatile-lru\\\",\\\"hash-max-ziplist-entries\\\":512,\\\"zset-max-ziplist-entries\\\":128,\\\"list-max-ziplist-entries\\\":512,\\\"list-max-ziplist-value\\\":64,\\\"zset-max-ziplist-value\\\":64,\\\"set-max-intset-entries\\\":512,\\\"hash-max-ziplist-value\\\":64}",
  "RequestId": "4E2C08F6-2D11-4ECD-9A4C-27EF2D3D****",
  "ParamReplMode": "async",
  "ParamReplTimeout": "500",
  "ParamNoLooseSentinelEnabled": "no",
  "ParamSentinelCompatEnable": "0",
  "ParamNoLooseSentinelPasswordFreeAccess": "no",
  "ParamNoLooseSentinelPasswordFreeCommands": "****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.