ListDeliveryTasks
Retrieves a list of data delivery tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListDeliveryTasks |
list |
*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:
|
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:
|
Prometheus |
| status |
string |
The current status of the task. Valid values:
|
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.