設(shè)置Redis實(shí)例白名單中的安全組。
接口說明
說明
調(diào)用本接口會(huì)清空 Redis 實(shí)例白名單中原有的安全組,并將 SecurityGroupId 參數(shù)中指定的安全組加入至白名單。該 API 對(duì)應(yīng)的控制臺(tái)操作請(qǐng)參見添加安全組。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說明如下:
- 操作:是指具體的權(quán)限點(diǎn)。
- 訪問級(jí)別:是指每個(gè)操作的訪問級(jí)別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權(quán)的資源類型。具體說明如下:
- 對(duì)于必選的資源類型,用背景高亮的方式表示。
- 對(duì)于不支持資源級(jí)授權(quán)的操作,用
全部資源
表示。
- 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
- 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作 | 訪問級(jí)別 | 資源類型 | 條件關(guān)鍵字 | 關(guān)聯(lián)操作 |
---|---|---|---|---|
kvstore:ModifySecurityGroupConfiguration | update |
|
| 無 |
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DBInstanceId | string | 是 | 實(shí)例 ID。 | r-bp1zxszhcgatnx**** |
SecurityGroupId | string | 是 | 待設(shè)置的安全組 ID。最多可傳入 10 個(gè),安全組 ID 之間用英文逗號(hào)(,)分隔。 說明
將覆蓋原設(shè)置,取值參考查詢您創(chuàng)建的安全組的基本信息 DescribeSecurityGroups 。
| sg-bpcfmyiu4ekp**** |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6****"
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 |
---|---|---|
400 | EngineNotSupported | Engine specified cannot be supported the operation. |
400 | AssociatedEcsSecurityGroupIdQuotaExceed | SecurityGroupId參數(shù)超過能使用的最大數(shù)量. |
400 | MissingInstanceId | InstanceId is mandatory for this action. |
400 | InvalidParam | Specified ecs security group id is not valid. |
400 | InvalidIzNo.NotSupported | the Specified Zone not supported. |
403 | AssociatedEcsSecurityGroupId.QuotaExceed | SecurityGroupIdQuotaExceeded exceeding the allowed amount of SecurityGroupId. |
404 | MissingParameter | The input parameter “DBInstanceId” that is mandatory for processing this request is not supplied. |
404 | MissingParameter | The input parameter “SecurityGroupId” that is mandatory for processing this request is not supplied. |
404 | InvalidInstanceId.NotFound | Specified instance does not exist. |
404 | InvalidRegionZoneNotFound | Specified Region does not exist in RDS. |
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。