Enables or disables password-free access for a Tair (Redis OSS-compatible) instance.
Operation description
With password-free access enabled, Elastic Compute Service (ECS) instances in the same virtual private cloud (VPC) can connect to the Tair instance without a password. Username-and-password connections are still supported.
The Tair instance is deployed in a VPC. For more information, see Enable password-free access.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyInstanceVpcAuthMode |
update |
*DBInstance
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| VpcAuthMode |
string |
Yes |
Whether to disable password-free access. Valid values:
Note
Default value: Open. |
Close |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
ABAF95F6-35C1-4177-AF3A-70969EBD**** |
Examples
Success response
JSON format
{
"RequestId": "ABAF95F6-35C1-4177-AF3A-70969EBD****"
}
Error response
JSON format
{
"RequestId":"29896E96-E8C4-4F24-868A-6xxxxxxxx3"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ParamNotSupportedForCurrentVersion | Parameter is not supported for current version. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.