Updates an ApsaraVideo Media Processing (MPS) queue.
Usage notes
- You can call this operation to modify the name, status, and notification settings of a 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.
Limits on QPS
You can call this operation up to 100 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limits.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdatePipeline |
The operation that you want to perform. Set the value to UpdatePipeline. |
PipelineId | String | Yes | d1ce4d3efcb549419193f50f1fcd**** |
The ID of the MPS queue that you want to update. To obtain the ID of the MPS queue, you can log on to the MPS console and choose Global Settings > Pipelines in the left-side navigation pane. |
Name | String | Yes | example-pipeline-**** |
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. |
State | String | Yes | Paused |
The new state of the MPS queue.
|
NotifyConfig | String | No | null |
The Message Service (MNS) configuration, such as the information about the MNS queue or topic. For more information, see NotifyConfig. |
Role | String | No | AliyunMTSDefaultRole |
The role that is assigned to the current RAM user. To obtain the role, you can log on to the RAM console and choose Identities > Roles in the left-side navigation pane. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1FE0F96B-544D-4244-9D83-DFCFB0E5A231 |
The ID of the request. |
Pipeline | Object |
The details of the MPS queue. |
|
Speed | String | Standard |
The type of the MPS queue. Default value: Standard. Valid values:
|
State | String | Paused |
The status of the pipeline. Valid values:
|
NotifyConfig | Object |
The MNS configuration. |
|
MqTopic | String | example1,example2 |
The queue of messages that are received. |
QueueName | String | example-queue-**** |
The queue that is created in MNS. |
MqTag | String | mts-test |
The tags of the messages. |
Topic | String | example-topic-**** |
The topic that is created in MNS. |
Name | String | example-pipeline-**** |
The new name of the MPS queue. |
Role | String | AliyunMTSExampleRole |
The role that is assigned to the current RAM user. |
Id | String | d1ce4d3efcb549419193f50f1fcd**** |
The ID of the MPS queue. |
QuotaAllocate | Long | 10 |
The quota that is allocated to the MPS queue. |
Examples
Sample requests
http(s)://mts.cn-hangzhou.aliyuncs.com/?Action=UpdatePipeline
&PipelineId=d1ce4d3efcb549419193f50f1fcd****
&Name=example-pipeline-****
&State=Paused
&NotifyConfig={"Topic":"example-topic-****"}
&Role=AliyunMTSDefaultRole
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdatePipelineResponse>
<RequestId>1FE0F96B-544D-4244-9D83-DFCFB0E5A231</RequestId>
<Pipeline>
<Speed>Standard</Speed>
<State>Paused</State>
<NotifyConfig>
<MqTopic>example1,example2</MqTopic>
<QueueName>example-queue-****</QueueName>
<MqTag>mts-test</MqTag>
<Topic>example-topic-****</Topic>
</NotifyConfig>
<Name>example-pipeline-****</Name>
<Role>AliyunMTSExampleRole</Role>
<Id>d1ce4d3efcb549419193f50f1fcd****</Id>
<QuotaAllocate>10</QuotaAllocate>
</Pipeline>
</UpdatePipelineResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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
}
}
Error codes
For a list of error codes, visit the API Error Center.