ListDeliveryTasks

Updated at:

Retrieves a list of data delivery tasks.

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

cms:ListDeliveryTasks

list

*DeliveryTask

acs:cms:{#regionId}:{#accountId}:deliverytask/*

None None

Request syntax

GET /delivery-tasks HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

keyWords

string

No

The keywords used to perform a fuzzy search by task name or task ID.

test-task

resourceGroupId

string

No

The ID of the resource group.

rg-aek2bhocin5e2na

nextToken

string

No

The pagination token. Do not specify this parameter for the first request. For subsequent requests, specify the nextToken value returned in the previous response.

sjC5rekx93Ew7K7VcmI3wkBZBYQ-GphB2ilQu3zJCGxoZuicwyJznfo2riTjr-lq

maxResults

integer

No

The maximum number of entries to return per page. Default value: 20. Maximum value: 100.

100

tag

array<object>

No

The list of tags.

object

No

The list of tags.

key

string

No

The tag key.

testKey

value

string

No

The tag value.

value1

Response elements

Element

Type

Description

Example

object

The response structure.

deliveryTasks

array<object>

The list of delivery tasks.

array<object>

The delivery task.

createTime

string

The creation time.

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

2026-01-22T09:02:01Z

dataSourceId

string

The ID of the data source, which is the ID of the Prometheus instance.

rw-5f2b4c7e66342s

externalLabels

object

The additional labels attached to all delivered metrics. The key is the label name and the value is the label value.

{"region":"cn-hangzhou"}

string

The mapping between the external label key and the external label value, such as region → cn-hangzhou.

region: cn-hangzhou

extraInfo

object

The extended information.

taskNameList

array

The list of EventBridge tasks.

string

The EventBridge task.

prometheus-deliver-98e367d8fb8cc83b-0

labelFilters

object

The metric filter conditions, which are used together with labelFiltersType. The key is the metric label name and the value is the match value.

{"__name__":"up"}

string

The mapping between the filter key and the filter value, such as name → up and job → my_job.

__name__: up

labelFiltersType

string

The metric filter mode.

Valid values:

  • Deny :

    Deny

  • Allow :

    Allow

Allow

resourceGroupId

string

The ID of the resource group.

rg-acfm3gn5i6bigbi

sinkList

array<object>

The list of delivery sinks. You can configure multiple sinks.

array<object>

The delivery sink configuration.

sinkConfigs

object

The detailed configuration of the delivery sink. The meanings of the key and value vary based on the sinkType.

{"Url":"https://example.com/api/v1/write","Network":"PublicNetwork","AuthType":"None"}

string

The configuration items supported by each sinkType.

Url: http://xxxx/api/v1/write

sinkType

string

The type of the delivery sink.

Valid values:

  • AcsKafka :

    AcsKafka

  • Prometheus :

    Prometheus

  • AcsMaxcompute :

    AcsMaxcompute

Prometheus

status

string

The current status of the task.

Valid values:

  • Enable :

    Enable

  • Disable :

    Disable

Enable

tags

array<object>

The tags.

object

The tags.

key

string

The tag key.

key

value

string

The tag value.

value

taskDescription

string

The description of the task.

my delivery task

taskId

string

The ID of the task.

db21f8a126d96953

taskName

string

The name of the task.

test-task

updateTime

string

The update time.

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

2026-01-22T09:02:01Z

maxResults

integer

The maximum number of entries to return. Maximum value: 100.

100

nextToken

string

The pagination token for the next page.

2-ba4d-4b9f-aa24-dcb067a30f1c

requestId

string

The ID of the request.

7D7DF334-B2F2-5453-AD51-A27B337E3191

totalCount

integer

The total number of tasks.

100

Examples

Success response

JSON format

{
  "deliveryTasks": [
    {
      "createTime": "2026-01-22T09:02:01Z",
      "dataSourceId": "rw-5f2b4c7e66342s",
      "externalLabels": {
        "key": "region: cn-hangzhou"
      },
      "extraInfo": {
        "taskNameList": [
          "prometheus-deliver-98e367d8fb8cc83b-0"
        ]
      },
      "labelFilters": {
        "key": "__name__: up"
      },
      "labelFiltersType": "Allow",
      "resourceGroupId": "rg-acfm3gn5i6bigbi",
      "sinkList": [
        {
          "sinkConfigs": {
            "key": "Url: http://xxxx/api/v1/write"
          },
          "sinkType": "Prometheus"
        }
      ],
      "status": "Enable",
      "tags": [
        {
          "key": "key",
          "value": "value"
        }
      ],
      "taskDescription": "my delivery task",
      "taskId": "db21f8a126d96953",
      "taskName": "test-task",
      "updateTime": "2026-01-22T09:02:01Z"
    }
  ],
  "maxResults": 100,
  "nextToken": "2-ba4d-4b9f-aa24-dcb067a30f1c",
  "requestId": "7D7DF334-B2F2-5453-AD51-A27B337E3191",
  "totalCount": 100
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.