Creates a CSPM custom check policy category: standard, requirement, or section.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateCheckPolicy |
create |
*CustomCheckStandardPolicy
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyType |
string |
Yes |
Policy category type:
|
STANDARD |
| PolicyShowName |
string |
Yes |
The name of the custom policy. |
TestPolicyName |
| DependentPolicyId |
integer |
No |
The parent policy ID. Dependency hierarchy (low to high): Section → Requirement → Standard. |
123 |
| Type |
string |
No |
Major policy category. Required when PolicyType is STANDARD.
|
AISPM |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. Use this ID for troubleshooting. |
CE500770-42D3-442E-9DDD-156E0F9F**** |
| CheckCustomPolicy |
object |
Details of the created policy. |
|
| PolicyId |
integer |
The ID of the custom policy. |
1062** |
| PolicyType |
string |
Policy category type:
|
STANDARD |
| PolicyShowName |
string |
The name of the custom policy. |
TestPolicyName |
| CheckType |
string |
Policy origin (system or user-defined):
|
CUSTOM |
| Type |
string |
Major policy category:
|
AISPM |
Examples
Success response
JSON format
{
"RequestId": "CE500770-42D3-442E-9DDD-156E0F9F****",
"CheckCustomPolicy": {
"PolicyId": 0,
"PolicyType": "STANDARD",
"PolicyShowName": "TestPolicyName",
"CheckType": "CUSTOM",
"Type": "AISPM"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPurchase | The user did not purchase this product. | User has not purchased this product |
| 400 | CspmCreatePolicyExceedLimit | The maximum number of created policies has been reached. | The maximum number of created policies has been reached. |
| 400 | CspmCreatePolicyExists | Related policy %s already exist. | Related policy% s already exists. |
| 400 | CspmPolicyTypeNotExist | The associated check criteria does not exist. | The associated check criteria does not exist. |
| 400 | CspmDependentPolicyError | The associated policy %s is missing. | The associated policy is missing. Reselect the policy configuration to be associated. |
| 400 | CspmCreatePolicyError | Failed to create policy. | Failed to create policy, please try again. |
| 400 | ParamIllegal.%s | The parameter %s is invalid, please fill it in again. | Invalid parameter, please fill in again |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.