GetDeliveryTask

Updated at:

Retrieves the details of a data delivery task.

Operation description

Deletes a specified site monitoring task.

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:GetDeliveryTask

get

*DeliveryTask

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

None None

Request syntax

GET /delivery-task/{taskId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

taskId

string

Yes

The ID of the delivery task.

98e367d8fb8cc83b

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The response struct.

deliveryTask

object

The details of the delivery task.

createTime

string

The creation time. The time follows the ISO 8601 standard format (YYYY-MM-DDThh:mm:ssZ) and is in UTC.

2025-07-24T02:08:27Z

dataSourceId

string

The data source ID (Prometheus instance ID).

rw-xxxxxx

externalLabels

object

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

{"region":"cn-hangzhou"}

string

The mapping of externalLabelsKey to externalLabelsValue, such as region → cn-hangzhou.

region: cn-hangzhou

extraInfo

object

The extended information.

taskNameList

array

The list of EventBridge tasks.

string

The name of the EventBridge task.

prometheus-deliver-98e367d8fb8cc83b-0

labelFilters

object

The metric filtering conditions used with labelFiltersType, where the key is the metric label name and the value is the matched value.

{"__name__":"up"}

string

The mapping of filterKey to filterValue, such as name → up and job → my_job.

__name__: up

labelFiltersType

string

The metric filtering mode.

Valid values:

  • Deny :

    Deny

  • Allow :

    Allow

Allow

regionId

string

The region ID.

cn-chengdu

sinkList

array<object>

The list of delivery destinations.

array<object>

The configuration of the delivery destination.

sinkConfigs

object

The detailed configuration of the delivery destination. The meanings of the key and value vary based on the sinkType. For more information, see the CreateDeliveryTask description.

{"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 destination.

Valid values:

  • AcsKafka :

    AcsKafka

  • AcsMaxcompute :

    AcsMaxcompute

  • Prometheus :

    Prometheus

Prometheus

status

string

The current status of the task.

Enable

tags

array<object>

The keys of the resource group tags.

object

The tag value.

key

string

The key of the resource group tag.

sourcetype

value

string

The value of the resource group tag.

production

taskDescription

string

The description of the task.

my delivery task

taskId

string

The ID of the delivery task.

8b07eeac8249866d

taskName

string

The name of the task.

test-task

updateTime

string

The update time. The time follows the ISO 8601 standard format (YYYY-MM-DDThh:mm:ssZ) and is in UTC.

2026-01-22T11:50:48Z

requestId

string

The request ID.

0CEC5375-C554-562B-A65F-9A629907C1F0

Examples

Success response

JSON format

{
  "deliveryTask": {
    "createTime": "2025-07-24T02:08:27Z",
    "dataSourceId": "rw-xxxxxx",
    "externalLabels": {
      "key": "region: cn-hangzhou"
    },
    "extraInfo": {
      "taskNameList": [
        "prometheus-deliver-98e367d8fb8cc83b-0"
      ]
    },
    "labelFilters": {
      "key": "__name__: up"
    },
    "labelFiltersType": "Allow",
    "regionId": "cn-chengdu",
    "sinkList": [
      {
        "sinkConfigs": {
          "key": "Url: http://xxxx/api/v1/write"
        },
        "sinkType": "Prometheus"
      }
    ],
    "status": "Enable",
    "tags": [
      {
        "key": "sourcetype",
        "value": "production"
      }
    ],
    "taskDescription": "my delivery task",
    "taskId": "8b07eeac8249866d",
    "taskName": "test-task",
    "updateTime": "2026-01-22T11:50:48Z"
  },
  "requestId": "0CEC5375-C554-562B-A65F-9A629907C1F0"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.