All Products
Search
Document Center

ApsaraVideo Media Processing:UpdatePipeline

Last Updated:Mar 03, 2024

Updates an ApsaraVideo Media Processing (MPS) queue.

Operation description

  • You can call this operation to modify the name, status, and notification settings of the specified MPS queue.
  • If a paused MPS queue is selected in a workflow or a job, such as a video review or media fingerprint job, the workflow or job fails.

QPS limit

You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limit.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PipelineIdstringYes

The ID of the MPS queue that you want to update. To view the MPS queue ID, log on to the MPS console and choose Global Settings > Pipelines in the left-side navigation pane.

d1ce4d3efcb549419193f50f1fcd****
NamestringYes

The new name of the MPS queue. The value can contain letters, digits, and special characters such as hyphens (-) and can be up to 128 bytes in size. The value cannot start with a special character.

example-pipeline-****
StatestringYes

The new state of the MPS queue.

  • Active: The MPS queue is active. Jobs in the MPS queue can be scheduled and run by MPS.
  • Paused: The MPS queue is paused. Jobs in the MPS queue cannot be scheduled or run by MPS, and all jobs remain in the Submitted state. Jobs that are running will not be affected.
Paused
NotifyConfigstringNo

The Message Service (MNS) configuration, such as the information about the MNS queue or topic. For more information, see the "NotifyConfig" section of the Parameter details topic.

{"Topic":"example-topic-****"}
RolestringNo

The role that is assigned to the current RAM user. To obtain the role, you can log on to the Resource Access Management (RAM) console and choose Identities > Roles in the left-side navigation pane.

AliyunMTSDefaultRole

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

1FE0F96B-544D-4244-9D83-DFCFB0E5A231
Pipelineobject

The details of the MPS queue.

Speedstring

The type of the MPS queue. Default value: Standard. Valid values:

  • Boost: MPS queue with transcoding speed boosted
  • Standard: standard MPS queue
  • NarrowBandHDV2: MPS queue that supports Narrowband HD 2.0
  • AIVideoCover: MPS queue for intelligent snapshot capture
  • AIVideoFPShot: MPS queue for media fingerprinting
  • AIVideoCensor: MPS queue for automated review
  • AIVideoMCU: MPS queue for smart tagging
  • AIVideoSummary: MPS queue for video synopsis
  • AIVideoPorn: MPS queue for pornography detection in videos
  • AIAudioKWS: MPS queue for keyword recognition in audio
  • AIAudioASR: MPS queue for speech-to-text conversion
Standard
Statestring

The state of the MPS queue. Valid values:

  • Active: The MPS queue is active.
  • Paused: The MPS queue is paused.
Paused
NotifyConfigobject

The MNS configuration.

MqTopicstring

The queue of messages that are received.

example1,example2
QueueNamestring

The queue that is created in MNS.

example-queue-****
MqTagstring

The tags of the messages.

mts-test
Topicstring

The topic that is created in MNS.

example-topic-****
Namestring

The new name of the MPS queue.

example-pipeline-****
Rolestring

The role that is assigned to the current RAM user.

AliyunMTSExampleRole
Idstring

The ID of the MPS queue.

d1ce4d3efcb549419193f50f1fcd****
QuotaAllocatelong

The quota that is allocated to the MPS queue.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "1FE0F96B-544D-4244-9D83-DFCFB0E5A231",
  "Pipeline": {
    "Speed": "Standard",
    "State": "Paused",
    "NotifyConfig": {
      "MqTopic": "example1,example2",
      "QueueName": "example-queue-****",
      "MqTag": "mts-test",
      "Topic": "example-topic-****"
    },
    "Name": "example-pipeline-****",
    "Role": "AliyunMTSExampleRole",
    "Id": "d1ce4d3efcb549419193f50f1fcd****",
    "QuotaAllocate": 10,
    "ExtendConfig": {
      "IsBoostNew": true,
      "MaxMultiSpeed": 0,
      "MultiSpeedDowngradePolicy": ""
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-06-13The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.