All Products
Search
Document Center

Security Center:UpdateCheckPolicy

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.

Update Custom 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:UpdateCheckPolicyupdate
*CustomCheckStandardPolicy
acs:yundun-sas:{#regionId}:{#accountId}:customcheckstandardpolicy/{#customcheckstandardpolicyId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyIdlongYes

ID of the custom policy.

Note You can obtain this parameter by calling the ListCheckPolicies API.
1000000000001
PolicyTypestringYes

Classification type of the custom check item rule:

  • STANDARD: Add to standard.
  • REQUIREMENT: Add to requirement.
  • SECTION: Add to section.
STANDARD
PolicyShowNamestringNo

Name of the custom classification.

testPolicyName
DependentPolicyIdlongNo

ID of the associated parent policy.

(The specific dependency hierarchy, from low to high, is Section -> Requirement -> Standard).

1000000000002
TypestringNo

Name of the associated major policy category (required when PolicyType is STANDARD):

  • AISPM: AI Configuration Management (AISPM).
  • RISK: Security Risk.
  • COMPLIANCE: Compliance Risk.
AISPM

Response parameters

ParameterTypeDescriptionExample
object

The message structure returned by the interface.

RequestIdstring

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

7532B7EE-7CE7-5F4D-BF04-B12447DD****
CheckCustomPolicyobject

Details of the custom policy.

PolicyIdlong

ID of the custom policy.

100000000001
PolicyTypestring

Policy type of the custom check item rule:

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

Name of the custom policy.

testPolictName

Examples

Sample success responses

JSONformat

{
  "RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****",
  "CheckCustomPolicy": {
    "PolicyId": 100000000001,
    "PolicyType": "STANDARD",
    "PolicyShowName": "testPolictName"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400ParamIllegal.%sThe parameter %s is invalid, please fill it in again.Invalid parameter, please fill in again
400NoPurchaseThe user did not purchase this product.User has not purchased this product
400CspmUpdatePolicyNotExistUpdate policy does not exist.Update policy does not exist.
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.
400CspmUpdatePolicyErrorFailed to update policy.Failed to update policy, please try again.

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

Change history

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