用来验证用户输入的配置信息是否符合对应参数配置的要求。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:VerityCheckCustomConfig |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| CheckId |
integer |
否 |
检查项 ID。 |
76 |
| CustomConfigs |
array<object> |
否 |
检查项自定义参数配置项列表。 |
|
|
object |
否 |
检查项自定义配置项列表。 |
||
| Name |
string |
否 |
检查项自定义配置项名称,同检查项唯一。 |
IPList |
| Value |
string |
否 |
检查项自定义配置项用户配置值字符串。 |
10.12.4.XX |
| Operation |
string |
否 |
检查项自定义配置项操作类型,只有删除时传 DELETE,创建和更新不用传。 |
DELETE |
| RepairConfigs |
array<object> |
否 |
检查项修复功能支持的修复参数。 |
|
|
object |
否 |
检查项修复功能支持的修复参数。 |
||
| Name |
string |
否 |
检查项修复参数名称,同检查项唯一。 |
IPLists |
| Value |
string |
否 |
检查项修复配置项用户配置值字符串。 |
172.26.49.XX |
| FlowId |
string |
否 |
修复时对应修复流程的 ID。 |
7fec0a3395b345c18f108ffc9fc0**** |
| Operation |
string |
否 |
检查项自定义配置项操作类型,只有删除时传 DELETE,创建和更新不用传。 |
DELETE |
| Type |
string |
否 |
态势感知参数验证类型:
|
REPAIR_CONFIG |
| CustomCheckConfig |
object |
否 |
自定义检查项验证输入参数。 |
|
| Vendor |
string |
否 |
云资产厂商。取值:
|
ALIYUN |
| InstanceType |
string |
否 |
云产品的资产类型。取值:
|
ECS |
| InstanceSubType |
string |
否 |
云产品的资产子类型。 |
DISK |
| CheckRule |
string |
否 |
自定义检查项定义规则。 |
{"AssociatedData":{"ToDataList":[{"DataName":"ACS_ECS_Instance","PropertyPath":"InstanceId","FromPropertyPath":"InstanceId"}]},"MatchProperty":{"Operator":"AND","MatchProperties":[{"DataName":"ACS_ECS_Disk","PropertyPath":"DiskId","MatchOperator":"EQ","MatchPropertyValue":"testId"}]}} |
| CloudAssetInstance |
object |
否 |
需要测试规则的资产实例。 |
|
| InstanceId |
string |
否 |
资产的实例 ID。 |
i-0jl4mjgl261cfrz5**** |
| RegionId |
string |
否 |
实例的地域 ID。 |
ap-southeast-1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回消息的结构体。 |
||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
7532B7EE-7CE7-5F4D-BF04-B12447DD**** |
| ErrorCheckConfigs |
array<object> |
配置检查错误的检查参数列表。 |
|
|
array<object> |
|||
| Name |
string |
检查项自定义配置项名称,同检查项唯一。 |
IpList |
| Value |
string |
检查项自定义配置项用户配置值字符串。 |
10.12.4.XX |
| Type |
string |
出错的参数类型:
|
custom |
| ErrorCode |
string |
错误码。 |
ConfigEqualIllegal |
| ErrorMsg |
string |
错误消息。 |
Custom parameter is not equal to corresponding check parameter |
| LinkErrorConfigs |
array<object> |
导致此错误的相关配置。 |
|
|
object |
|||
| Name |
string |
检查项配置项名称,同检查项唯一。 |
IpLists |
| ShowName |
string |
用户检查配置展示名称。 |
IP Lists |
| Type |
string |
出错的参数类型:
|
repair |
| ErrorRepairConfigs |
array<object> |
配置检查错误的修复参数列表。 |
|
|
array<object> |
|||
| Name |
string |
检查项修复配置项名称,同检查项唯一。 |
IpLists |
| Value |
string |
检查项修复参数名称,同检查项唯一。 |
172.26.49.XX |
| Type |
string |
出错的参数类型:
|
repair |
| ErrorCode |
string |
错误码。 |
ConfigEqualIllegal |
| ErrorMsg |
string |
错误消息。 |
Repair parameter is not equal to corresponding check parameter |
| LinkErrorConfigs |
array<object> |
导致此错误的相关配置。 |
|
|
object |
|||
| Name |
string |
检查项配置项名称,同检查项唯一。 |
IpList |
| ShowName |
string |
用户检查配置展示名称。 |
Ip List |
| Type |
string |
出错的参数类型:
|
custom |
| ErrorCheckCustomConfig |
object |
检查自定义检查项返回的错误码。 |
|
| ErrorCode |
string |
失败时错误码。成功时此参数不返回。
|
CspmVerifyCheckCustomItemNoPass |
| ErrorMsg |
string |
异常信息 |
Creation verification failed. |
示例
正常返回示例
JSON格式
{
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****",
"ErrorCheckConfigs": [
{
"Name": "IpList",
"Value": "10.12.4.XX",
"Type": "custom",
"ErrorCode": "ConfigEqualIllegal",
"ErrorMsg": "Custom parameter is not equal to corresponding check parameter",
"LinkErrorConfigs": [
{
"Name": "IpLists",
"ShowName": "IP Lists",
"Type": "repair"
}
]
}
],
"ErrorRepairConfigs": [
{
"Name": "IpLists",
"Value": "172.26.49.XX\n",
"Type": "repair",
"ErrorCode": "ConfigEqualIllegal",
"ErrorMsg": "Repair parameter is not equal to corresponding check parameter",
"LinkErrorConfigs": [
{
"Name": "IpList",
"ShowName": "Ip List",
"Type": "custom"
}
]
}
],
"ErrorCheckCustomConfig": {
"ErrorCode": "CspmVerifyCheckCustomItemNoPass",
"ErrorMsg": "Creation verification failed."
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ParamIllegal.%s | The parameter %s is invalid, please fill it in again. | |
| 400 | NoPurchase | The user did not purchase this product. | |
| 400 | CspmVerifyItemRuleError.%s | Audit check item check rule error: %s. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。