All Products
Search
Document Center

Security Center:CreateCheckPolicy

Last Updated:Aug 28, 2026

Creates a CSPM custom check policy category: standard, requirement, or section.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:CreateCheckPolicy

create

*CustomCheckStandardPolicy

acs:yundun-sas:{#regionId}:{#accountId}:customcheckstandardpolicy/*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

PolicyType

string

Yes

Policy category type:

  • STANDARD: Standard.

  • REQUIREMENT: Requirement.

  • SECTION: Section.

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: AI Configuration Management (AISPM).

  • IDENTITY_PERMISSION: Identity and Permission Management (CIEM).

  • RISK: Security Risk.

  • COMPLIANCE: Compliance Risk.

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: Standard.

  • REQUIREMENT: Requirement.

  • SECTION: Section.

STANDARD

PolicyShowName

string

The name of the custom policy.

TestPolicyName

CheckType

string

Policy origin (system or user-defined):

  • CUSTOM: User-defined.

  • SYSTEM: System-predefined.

CUSTOM

Type

string

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

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.