Enables or initiates a shutdown of password-free access over a VPC. After this feature is enabled, cloud servers in the same VPC can connect to the ApsaraDB for Tair (Redis® OSS-Compatible) database instance without a password. Connections using a username and password are still supported.
Operation description
For information about how to perform this operation in the console, 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 instance ID. |
r-bp1zxszhcgatnx**** |
| VpcAuthMode |
string |
Yes |
The authentication mode in a VPC. Valid values:
Note
Default value: Open. Valid values:
|
Close |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ABAF95F6-35C1-4177-AF3A-70969EBD**** |
Examples
Success response
JSON format
{
"RequestId": "ABAF95F6-35C1-4177-AF3A-70969EBD****"
}
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.