更新检查范围配置
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ConfigId |
string |
否 |
配置对应的 ID。 说明
调用 GetCheckScopeConfig 接口可以获取该参数。 |
00cfa8161da093089e6804ba6a33**** |
| Type |
integer |
否 |
扫描范围配置类型。取值:
|
1 |
| AutoType |
integer |
否 |
自动扫描配置类型。取值:
|
1 |
| AutoConfig |
string |
否 |
自动扫描配置 JSON 字符串。字段说明如下:
说明
具体含义参考接口 GetCloudAssetCriteria |
"{\"autoInclude\":true,\"autoRule\":{\"ruleOperator\":\"include\",\"operator\":\"or\",\"rule\":[{\"condition\":\"assetSubType\",\"ruleOperator\":\"include\",\"value\":[{\"vendor\":\"0\",\"assetType\":\"0\",\"assetSubType\":\"100\"}]}]}}" |
| ResourceDirectoryAccountId |
integer |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
UpdateCheckScopeConfigResponse |
||
| RequestId |
string |
唯一请求 ID。 |
676F80E3-4B3F-43DA-9CBB-5FF79F202AA2 |
| Success |
boolean |
本地调用请求是否成功。取值:
|
true |
| Code |
string |
结果代码,200 表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。 |
200 |
| Message |
string |
请求结果返回信息。 |
successful |
| Data |
object |
返回数据。 |
|
| GmtCreate |
string |
创建时间。 |
2022-10-16 18:17:16 |
| GmtModified |
string |
修改时间。 |
2026-04-09 18:56:15 |
| ConfigId |
string |
配置对应的 ID。 |
97a1fed216908e417407344e1505xxxx |
| Type |
integer |
扫描范围配置类型。取值:
|
1 |
| AutoType |
integer |
自动扫描配置类型。取值:
|
1 |
| AutoConfig |
string |
自动扫描配置 JSON 字符串。字段说明如下:
说明
具体含义参考接口 GetCloudAssetCriteria |
"{\"autoInclude\":true,\"autoRule\":{\"ruleOperator\":\"include\",\"operator\":\"or\",\"rule\":[{\"condition\":\"assetSubType\",\"ruleOperator\":\"include\",\"value\":[{\"vendor\":\"0\",\"assetType\":\"0\",\"assetSubType\":\"100\"}]}]}}" |
示例
正常返回示例
JSON格式
{
"RequestId": "676F80E3-4B3F-43DA-9CBB-5FF79F202AA2",
"Success": true,
"Code": "200",
"Message": "successful",
"Data": {
"GmtCreate": "2022-10-16 18:17:16",
"GmtModified": "2026-04-09 18:56:15",
"ConfigId": "97a1fed216908e417407344e1505xxxx",
"Type": 1,
"AutoType": 1,
"AutoConfig": "\"{\\\"autoInclude\\\":true,\\\"autoRule\\\":{\\\"ruleOperator\\\":\\\"include\\\",\\\"operator\\\":\\\"or\\\",\\\"rule\\\":[{\\\"condition\\\":\\\"assetSubType\\\",\\\"ruleOperator\\\":\\\"include\\\",\\\"value\\\":[{\\\"vendor\\\":\\\"0\\\",\\\"assetType\\\":\\\"0\\\",\\\"assetSubType\\\":\\\"100\\\"}]}]}}\""
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | ServerError | ServerError | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。