All Products
Search
Document Center

ApsaraVideo Live:DeleteLiveStreamRecordIndexFiles

最終更新日:May 20, 2024

Deletes live stream recordings.

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 limits.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes DeleteLiveStreamRecordIndexFiles

The operation that you want to perform. Set the value to DeleteLiveStreamRecordIndexFiles.

RecordId.N String No c4d7f0a4-b506-43f9-8de3-07732c3f****

The ID of the index file. You can specify up to 20 IDs.

DomainName String Yes example.com

The main streaming domain.

AppName String Yes liveApp****

The name of the application to which the live stream belongs.

StreamName String Yes liveStream****

The name of the live stream.

RemoveFile String Yes true

Specifies whether to also delete the corresponding file in Object Storage Service (OSS) at the same time. Valid values:

  • true: deletes the corresponding file in OSS.
  • false: does not delete the corresponding file in OSS.

Response parameters

Parameter

Type

Example

Description

Code String OK

The status code. If a status error occurs, refer to the Error codes section.

Message String OK

The status description. If a status error occurs, refer to the Error codes section.

RecordDeleteInfoList Array of RecordDeleteInfo
RecordDeleteInfo
Message String OK

The processing result of the file indicated by the file ID. Valid values:

  • OK: The file was deleted.
  • AccessDenied: Access to the file was denied.
  • FileNotFound: The file was not found.
RecordId String c4d7f0a4-b506-43f9-8de3-07732c3f**

The ID of the index file for which the deletion request was initiated.

RequestId String 939D19EE-59A0-18E9-B458-*****

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=DeleteLiveStreamRecordIndexFiles
&AppName=liveApp****
&DomainName=example.com
&RecordId.1=c4d7f0a4-b506-43f9-8de3-07732c3f****
&RemoveFile=true
&StreamName=liveStream****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteLiveStreamRecordIndexFilesResponse>
    <Code>OK</Code>
    <Message>OK</Message>
    <RecordDeleteInfoList>
        <Message>OK</Message>
        <RecordId>c4d7f0a4-b506-43f9-8de3-07732c3f**</RecordId>
    </RecordDeleteInfoList>
    <RequestId>939D19EE-59A0-18E9-B458-*****</RequestId>
</DeleteLiveStreamRecordIndexFilesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Code" : "OK",
  "Message" : "OK",
  "RecordDeleteInfoList" : [ {
    "Message" : "OK",
    "RecordId" : "c4d7f0a4-b506-43f9-8de3-07732c3f**"
  } ],
  "RequestId" : "939D19EE-59A0-18E9-B458-*****"
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError The request processing has failed due to some unknown error. An internal error occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, see Service error codes.