All Products
Search
Document Center

Edge Security Acceleration:UpdateCustomScenePolicy

Last Updated:Mar 28, 2026

Updates a custom scenario-specific 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.
Operation Access level Resource type Condition key Associated operation
esa:UpdateCustomScenePolicy get
*All Resources
*
    none
none

Request parameters

Parameter Type Required Description Example
Name string Yes

The policy name.

test
Template string Yes

The name of the policy template. Valid value:

  • promotion: major events.
promotion
StartTime string Yes

The time when the policy takes effect.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2023-04-03T16:00:00Z
EndTime string Yes

The time when the policy expires.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2023-04-03T19:00:00Z
Objects string No

The IDs of the websites that you want to associate with the policy. Separate multiple IDs with commas (,).

123456****
PolicyId long Yes

The policy ID, which can be obtained by calling the DescribeCustomScenePolicies operation.

1

Response parameters

Parameter Type Description Example
object

The response parameters.

RequestId string

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
Name string

The policy name.

test
Template string

The name of the policy template. Valid value:

  • promotion: major events.
promotion
StartTime string

The time when the policy takes effect.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2023-04-03T16:00:00Z
EndTime string

The time when the policy expires.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2023-04-03T19:00:00Z
Objects array

The IDs of websites associated.

object string

The website ID.

123456****
PolicyId long

The policy ID.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "Name": "test",
  "Template": "promotion",
  "StartTime": "2023-04-03T16:00:00Z\n",
  "EndTime": "2023-04-03T19:00:00Z\n",
  "Objects": [
    "123456****"
  ],
  "PolicyId": 1
}

Error codes

HTTP status code Error code Error message Description
400 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 PolicyNameExist The policy name already exists. Policy name already exists.
400 CreateTimeError The effective time of the same policy template cannot overlap. The effective time of the same policy template cannot overlap.
400 PolicyNotExist The policy does not exist. The policy does not exist.
500 InternalError Failed to call the service. Try again later or contact technical support. Failed to call the service. Try again later or contact technical support.

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

Change history

Change time Summary of changes Operation
2025-03-12 The Error code has changed View Change Details