EnableRotation
更新时间:2023-03-07
##EnableRotation
- 接口描述
 
对密钥进行轮转设置
- 请求URI
 
                Plain Text
                
            
            1POST /?action=EnableRotation
            请求体参数
- 请求体字段数据结构说明
 
| 参数 | 类型 | 是否必需 | 描述 | 示例值 | 
|---|---|---|---|---|
| keyId | String | 是 | CMK的密钥Id | 5be45b47-38ba-f055-e892-25ff66c91adc | 
| rotateCycle | String | 是 | 轮转周期, 0是关闭,7-365是轮转周期 | 365 | 
响应体参数
- 响应体字段数据结构说明
 
| 参数 | 类型 | 描述 | 示例值 | 
|---|---|---|---|
| success | Integer | 1成功,0失败 | 1 | 
请求示例
                Plain Text
                
            
            1POST /?action=EnableRotation
2<公共请求头>
3
4
5{
6  "rotateCycle" : "365",
7  "keyId" : "cf8a75a9-625d-0dfa-8a87-233f7c64c1cf"
8}
            响应示例
                Plain Text
                
            
            1HTTP/1.1 200 OK
2<公共响应头>
3
4{
5  "success" : 1
6}
            