修改MongoDB執行個體的SSL配置。
介面說明
調用 ModifyDBInstanceSSL 介面時,執行個體必須滿足以下條件:
執行個體狀態為運行中。
- 執行個體類型為複本集或分區叢集執行個體。
複本集執行個體的版本需為 3.4 及以上版本。
分區叢集執行個體的儲存模式需要為 ESSD 雲端硬碟版。
在開通、更新和關閉 SSL 過程中,執行個體會重啟一次,建議您在業務低峰期操作。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dds:ModifyDBInstanceSSL |
update |
*Instance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBInstanceId |
string |
是 |
執行個體 ID。 |
dds-bp2235**** |
| SSLAction |
string |
是 |
對 SSL 功能執行的操作,取值說明:
|
Open |
| SwitchMode |
string |
否 |
修改 MongoDB 執行個體 SSL 配置的時間點,取值:
|
0 |
| ForceEncryption |
string |
否 |
串連是否強制開啟 SSL 加密,取值說明:
說明
警告 啟用強制 SSL 加密後,將無法使用非 SSL 加密方式串連執行個體。 枚舉值:
|
0 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資料。 |
||
| RequestId |
string |
請求 ID。 |
6D806B11-078F-4154-BF9F-844F56D08964 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6D806B11-078F-4154-BF9F-844F56D08964"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParam | Specified parameters is not valid. | |
| 400 | SSLAlreadyEnabled | SSL have already been enabled. | |
| 400 | SSLAlreadyDisabled | SSL have already been disabled. | |
| 403 | SSLNotEnabled | SSL not enabled. | |
| 403 | IncorrectCharacterType | Current DB instance CharacterType does not support this operation. | |
| 403 | IncorrectEngineVersion | Current engine version does not support operations. | |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 當前資料庫執行個體狀態不支援此操作。 |
| 403 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | 當前的資料庫執行個體鎖定模式不支援此操作。 |
| 404 | EnabledSSLNotSupport | Specified region does not support enable ssl. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。