UpdateDeliveryTask

Updated at:

Updates a data delivery 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:UpdateDeliveryTask

update

*DeliveryTask

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

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

taskId

string

Yes

The task ID.

6afe16bece7996a3

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body. All fields are optional. Specify only the fields that you want to update.

dataSourceId

string

No

The data source ID (Prometheus instance ID).

rw-5f2b4sc7es4d66

externalLabels

object

No

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

{"region":"cn-hangzhou"}

string

No

externalLabelsKey → externalLabelsValue, such as region → cn-hangzhou.

region: cn-hangzhou

labelFilters

object

No

The metric filtering conditions. The existing conditions are entirely replaced without incremental merging.

{"__name__":"up"}

string

No

filterKey → filterValue, such as job → my_job.

__name__: up

labelFiltersType

string

No

The metric filtering mode.

Valid values:

  • Deny :

    Deny.

  • Allow :

    Allow.

Deny

resourceGroupId

string

No

The resource group ID.

rg-aekzoiafjtr7zyq

sinkList

array<object>

No

The list of delivery destinations.

array<object>

No

The delivery destination.

sinkConfigs

object

No

The detailed configuration of the delivery destination. The meanings of keys and values vary based on the sinkType.

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

string

No

The configuration items supported by each sinkType.

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

sinkType

string

No

The type of the delivery destination.

Valid values:

  • AcsMaxCompute :

    MaxCompute.

  • AcsKafka :

    Message Queue for Apache Kafka.

  • Prometheus :

    Managed Service for Prometheus.

Prometheus

status

string

No

The task status, which is used to start or stop the task. Valid values:

Enable: Starts the task.

Disable: Stops the task.

Running: The task is running.

Valid values:

  • Running :

    The task is running.

  • Enable :

    Starts the task.

  • Disable :

    Stops the task.

Running

taskDescription

string

No

The task description.

updated desc

taskName

string

No

The task name. Chinese characters, English letters, underscores (_), and hyphens (-) are supported.

new-task-name

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

9335D7CB-2725-53DD-A2B3-187821C8F1B8

Examples

Success response

JSON format

{
  "requestId": "9335D7CB-2725-53DD-A2B3-187821C8F1B8"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.