You can call this operation to modify the SSL configuration of a MongoDB instance.
Ensure that the instance meets the following conditions when you call this operation:
- The instance is in the running state.
- The instance type is replica set.
- The database version of the instance is 3.4 or 4.0.
Debugging
OpenAPI Explorer simplifies API usage. You can use OpenAPI Explorer to perform debugging operations, such as retrieve APIs, call APIs, and dynamically generate SDK example code.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBInstanceSSL |
The operation that you want to perform. Set the value to DescribeDBInstanceSSL. |
DBInstanceId | String | Yes | dds-bpxxxxxxxx |
The ID of the instance. |
SSLAction | String | Yes | Open |
The operation that you perform to execute SSL features. Valid values:
|
AccessKeyId | String | No | LTAIgbTGpxxxxxx |
The AccessKey ID provided to you by Alibaba Cloud. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6D806B11-078F-4154-BF9F-844F56D08964 |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=ModifyDBInstanceSSL
&DBInstanceId=dds-bpxxxxxxxx
&SSLAction=Open
&<Common request parameters>
Successful response examples
XML
format
<ModifyDBInstanceSSLResponse>
<RequestId>6D806B11-078F-4154-BF9F-844F56D08964</RequestId>
</ModifyDBInstanceSSLResponse>
JSON
format
{
"RequestId":"6D806B11-078F-4154-BF9F-844F56D08964"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | The error message returned when the operation is not supported while the instance is in its current state. Check whether the specified parameters are correct. |
403 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | The error message returned when the instance is locked. |