All Products
Search
Document Center

Edge Security Acceleration:GetSiteDeliveryTask

Last Updated:Nov 07, 2025

Queries a real-time log delivery task.

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:GetSiteDeliveryTasknone
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TaskNamestringYes

The name of the delivery task.

cdn-test-task
SiteIdlongNo

The website ID, which can be obtained by calling the ListSites operation.

123456***

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

34DCBC8A-****-****-****-6DAA11D7DDBD
TaskNamestring

The name of the delivery task.

cdn-test-task
SiteNamestring

The website name.

test.***.com
SiteIdlong

The website ID.

123456****
DiscardRatefloat

The discard rate.

0.0
DataCenterstring

The data center. Valid values:

  1. cn: the Chinese mainland.
  2. sg: outside the Chinese mainland.
cn
BusinessTypestring

The log category. Valid values:

  • dcdn_log_access_l1 (default): access logs.
  • dcdn_log_er: Edge Routine logs.
  • dcdn_log_waf: firewall logs.
  • dcdn_log_ipa: TCP/UDP proxy logs.
dcdn_log_access_l1
Statusstring

The status of the delivery task.

  • online
  • offline
online
DeliveryTypestring

The destination of the delivery. Valid values:

  1. sls: Alibaba Cloud Simple Log Service (SLS).
  2. http: HTTP server.
  3. aws3: Amazon Simple Storage Service (S3).
  4. oss: Alibaba Cloud Object Storage Service (OSS).
  5. kafka: Kafka.
  6. aws3cmpt: S3-compatible storage service.
sls
FieldListstring

The log fields.

Client,UserAgent
FilterRulesstring

The filtering rules.

[]
SinkConfigany

The delivery configuration.

{'Region': 'cn-hangzhou', 'Endpoint': 'https://***.oss-cn-hangzhou.aliyuncs.com', 'BucketPath': 'hjy-test002/online-logs'}

Examples

Sample success responses

JSONformat

{
  "RequestId": "34DCBC8A-****-****-****-6DAA11D7DDBD",
  "TaskName": "cdn-test-task",
  "SiteName": "test.***.com",
  "SiteId": 0,
  "DiscardRate": 0,
  "DataCenter": "cn",
  "BusinessType": "dcdn_log_access_l1",
  "Status": "online",
  "DeliveryType": "sls",
  "FieldList": "Client,UserAgent",
  "FilterRules": [],
  "SinkConfig": "{'Region': 'cn-hangzhou', 'Endpoint': 'https://***.oss-cn-hangzhou.aliyuncs.com', 'BucketPath': 'hjy-test002/online-logs'}"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.The specified parameter is invalid.
400InternalErrorAn internal exception occurred, please try again later.An inner exception was triggered. Please try again later.

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

Change history

Change timeSummary of changesOperation
2024-09-27The Error code has changedView Change Details