All Products
Search
Document Center

Security Center:CreateCheckPolicy

Last Updated:Jan 20, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Create Policy

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:CreateCheckPolicycreate
*CustomCheckStandardPolicy
acs:yundun-sas:{#regionId}:{#accountId}:customcheckstandardpolicy/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyTypestringYes

The policy category type for custom check rules:

  • STANDARD: Add to a standard.
  • REQUIREMENT: Add to a requirement.
  • SECTION: Add to a section.
STANDARD
PolicyShowNamestringYes

The name of the custom policy.

TestPolicyName
DependentPolicyIdlongNo

The ID of the parent policy.

(The specific dependency order from low to high is Section -> Requirement -> Standard)

123
TypestringNo

The name of the major policy category (required when PolicyType is STANDARD):

  • AISPM: AI Configuration Management (AISPM).
  • IDENTITY_PERMISSION: Identity and Permission Management (CIEM).
  • RISK: Security Risk.
  • COMPLIANCE: Compliance Risk.
AISPM

Response parameters

ParameterTypeDescriptionExample
object

Information about the returned request.

RequestIdstring

The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.

CE500770-42D3-442E-9DDD-156E0F9F****
CheckCustomPolicyobject

Specific information about the added policy.

PolicyIdlong

The ID of the custom policy.

1062**
PolicyTypestring

The policy type for custom check rules:

  • STANDARD: Standard policy type.
  • REQUIREMENT: Requirement policy type.
  • SECTION: Section policy type.
STANDARD
PolicyShowNamestring

The name of the custom policy.

TestPolicyName
CheckTypestring

The type of the policy (indicating whether it is a system or user-defined policy):

  • CUSTOM: User-defined.
  • SYSTEM: System-predefined.
CUSTOM
Typestring

The name of the associated major policy category:

  • AISPM: AI Configuration Management (AISPM).
  • KISPM: Kubernetes Configuration Management (KSPM).
  • IDENTITY_PERMISSION: Identity and Permission Management (CIEM).
  • RISK: Security Risk.
  • COMPLIANCE: Compliance Risk.
AISPM

Examples

Sample success responses

JSONformat

{
  "RequestId": "CE500770-42D3-442E-9DDD-156E0F9F****",
  "CheckCustomPolicy": {
    "PolicyId": 0,
    "PolicyType": "STANDARD",
    "PolicyShowName": "TestPolicyName",
    "CheckType": "CUSTOM",
    "Type": "AISPM"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400NoPurchaseThe user did not purchase this product.User has not purchased this product
400CspmCreatePolicyExceedLimitThe maximum number of created policies has been reached.The maximum number of created policies has been reached.
400CspmCreatePolicyExistsRelated policy %s already exist.Related policy% s already exists.
400CspmPolicyTypeNotExistThe associated check criteria does not exist.The associated check criteria does not exist.
400CspmDependentPolicyErrorThe associated policy %s is missing.The associated policy is missing. Reselect the policy configuration to be associated.
400CspmCreatePolicyErrorFailed to create policy.Failed to create policy, please try again.
400ParamIllegal.%sThe parameter %s is invalid, please fill it in again.Invalid parameter, please fill in again

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-11-19Add OperationView Change Details