打开或关闭指定功能的按量付费。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:ModifyPostPayModuleSwitch |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PostPayInstanceId |
string |
否 |
按量付费实例 ID,必须填写。 说明
调用 DescribeVersionConfig 接口以获取该参数。 |
postpay-sas-** |
| PostPayModuleSwitch |
string |
否 |
按量付费模块开关状态,格式为 JsonString,取值:
说明
未传值的模块值不会变化。 重要 与 PostPayModuleSwitchObj 字段含义相同,当二者同时存在时,以 PostPayModuleSwitch 的值为准。 |
{"VUL":1,"CSPM":0} |
| PostPaidHostAutoBind |
integer |
否 |
主机和容器防护新增资产时自动绑定开关。取值:
|
1 |
| PostPaidHostAutoBindVersion |
integer |
否 |
主机和容器防护新增资产时自动绑定的版本,取值:
|
3 |
| PostPayModuleSwitchObj |
object |
否 |
按量付费模块开关。 重要 与 PostPayModuleSwitch 字段含义相同,当二者同时存在时,以 PostPayModuleSwitch 的值为准。 |
|
| Vul |
integer |
否 |
漏洞修复模块。取值:
|
1 |
| Cspm |
integer |
否 |
云安全配置检查模块。取值:
|
1 |
| Agentless |
integer |
否 |
无代理检测模块。取值:
|
1 |
| Serverless |
integer |
否 |
Serverless 安全模块。取值:
|
1 |
| Ctdr |
integer |
否 |
威胁分析与响应模块。取值:
|
1 |
| CtdrStorage |
integer |
否 |
日志管理模块。取值:
|
1 |
| Sdk |
integer |
否 |
恶意文件检测 SDK 模块。取值:
|
1 |
| Rasp |
integer |
否 |
应用防护模块。取值:
|
1 |
| PostHost |
integer |
否 |
主机及容器安全模块。取值:
|
1 |
| WebLock |
integer |
否 |
文件防篡改模块。取值:
|
1 |
| AntiRansomware |
integer |
否 |
防勒索模块。取值:
|
1 |
| BasicService |
integer |
否 |
基础服务模块。取值:
重要 基础服务模块开关不支持主动修改,存在其他开启的模块时该模块为开启状态,所有其他模块为关闭时该模块未关闭状态。 |
1 |
| AiDigital |
integer |
否 |
AI 数字化 。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
BaseResult |
||
| Success |
boolean |
接口调用的结果状态。取值:
|
true |
| Code |
string |
结果代码,200 表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。 |
200 |
| Message |
string |
请求结果返回信息。 |
successful |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
ACF97412-FD09-4D1F-994F-34DF12BREF20 |
| HttpStatusCode |
integer |
请求数据结果的 HTTP 状态码。 |
200 |
示例
正常返回示例
JSON格式
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BREF20",
"HttpStatusCode": 200
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | PostPayInstanceNotExist | post pay instance not exist. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。