All Products
Search
Document Center

Edge Security Acceleration:DescribeCustomScenePolicies

Last Updated:Nov 07, 2025

Queries the configurations of a 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.
OperationAccess levelResource typeCondition keyAssociated operation
esa:DescribeCustomScenePoliciesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

The number of entries per page. Default value: 10. Valid values: 5, 10, or 20.

10
PageNumberintegerYes

The number of the page to return. Valid values: 1 to 100000.

1
PolicyIdlongNo

The rule ID.

1234****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

85H66C7B-671A-4297-9187-2C4477247A74
TotalCountinteger

The total number of entries returned.

1
Quotainteger

The policy quota.

10
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
DataModulearray<object>

The scenario-specific policies.

Itemobject

The information about the scenario-specific policy.

Namestring

The name of the scenario-specific policy.

test
Templatestring

The name of the policy template. Valid value:

  • promotion: major events.
promotion
StartTimestring

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-03-04T16:00:00Z
EndTimestring

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-03-06T16:00:00Z
Statusstring

The status of the policy. Valid values:

  • Disabled
  • Pending
  • Running
  • Expired
Expired
Objectsarray

The IDs of websites that are associated with the policy.

objectstring

The ID of the website that is associated with the policy.

123456****
PolicyIdlong

The policy ID.

1234****

Examples

Sample success responses

JSONformat

{
  "RequestId": "85H66C7B-671A-4297-9187-2C4477247A74",
  "TotalCount": 1,
  "Quota": 10,
  "PageNumber": 1,
  "PageSize": 10,
  "DataModule": [
    {
      "Name": "test",
      "Template": "promotion",
      "StartTime": "2023-03-04T16:00:00Z",
      "EndTime": "2023-03-06T16:00:00Z\n",
      "Status": "Expired",
      "Objects": [
        "123456****"
      ],
      "PolicyId": 0
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.The specified parameter is invalid.
500InternalErrorFailed 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 timeSummary of changesOperation
2025-02-19The Error code has changedView Change Details