GetDeliveryTask
Retrieves the details of a data delivery task.
Operation description
Deletes a specified site monitoring task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetDeliveryTask |
get |
*DeliveryTask
|
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:
|
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:
|
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.