Updates the publishing status of a media file.
Operation description
The published state indicates that the access control list (ACL) of media playback resources and snapshot files is set to inherit the ACL of the bucket to which they belong. The unpublished state indicates that the ACL of media playback resources and snapshot files is set to private.
QPS limit
You can call this operation up to 100 times per second per account. If the number of 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
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MediaId | string | Yes | The ID of the request. | 3e6149d5a8c944c09b1a8d2dc3e4**** |
Publish | boolean | No | The operation that you want to perform. Set the value to UpdateMediaPublishState. | true |
The ID of the media file whose publishing status you want update. To obtain the ID of a media file, you can call the AddMedia operation. Alternatively, perform the following operations in the ApsaraVideo Media Processing (MPS) console: In the left-side navigation pane, choose Media Management > Media List. Find the required video and click Manage. The ID of the video is displayed on the Basics tab.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "91B6CAB9-034C-4E4E-A40B-E7F5C81E688C"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|