DescribeAppRecordTemplates

Updated at:

Queries the list of application recording templates.

Operation description

QPS limit

The QPS limit for a single user calling this API operation is 10 queries per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable frequency.

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

rtc:DescribeAppRecordTemplates

none

*App

acs:rtc:*:{#accountId}:app/{#AppId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The idempotency parameter.

123e4567-e89b-12d3-a456-42665544****

AppId

string

Yes

The application ID. You can create and query the ID in the console. Only a single ID is supported.

ac7N****

PageNum

integer

No

The page number. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10.

10

Condition

object

No

The query conditions.

TemplateId

string

No

The template ID.

ac7N****

Name

string

No

The template name.

Test

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

2A7497D0-BEAE-58E7-B13A-751BD8EAE4C6

TotalNum

integer

The total number of records.

10

TotalPage

integer

The total number of pages.

1

Templates

array<object>

The list of templates.

object

TemplateId

string

The template ID.

wv7N****

Name

string

The template name.

Test

FilePrefix

string

The naming rule for recording files.

Note

To ensure the uniqueness of recording file names, the current naming rule is record/{AppId}/{ChannelId}{TaskId}/{EscapedStartTime}{EscapedEndTime}.

record/{AppId}/{ChannelId_TaskId}/{EscapedStartTime}_{EscapedEndTime}

FileSplitInterval

integer

The splitting duration of the recording file. The value must be greater than or equal to 1800. Unit: seconds.

1800

DelayStopTime

integer

The delay time before stopping the recording. Unit: seconds.

180

CreateTime

string

The creation time. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2020-09-04T06:22:15Z

MediaEncode

integer

The encoding options.

1

LayoutIds

array

The list of layout IDs.

string

A layout ID.

22

Formats

array

The formats of the recording file. Valid values: .m3u8, .mp4, and .flv.

Note

Only lowercase letters are supported for file formats.

string

A file format.

mp4

Examples

Success response

JSON format

{
  "RequestId": "2A7497D0-BEAE-58E7-B13A-751BD8EAE4C6",
  "TotalNum": 10,
  "TotalPage": 1,
  "Templates": [
    {
      "TemplateId": "wv7N****",
      "Name": "测试",
      "FilePrefix": "record/{AppId}/{ChannelId_TaskId}/{EscapedStartTime}_{EscapedEndTime}",
      "FileSplitInterval": 1800,
      "DelayStopTime": 180,
      "CreateTime": "2020-09-04T06:22:15Z",
      "MediaEncode": 1,
      "LayoutIds": [
        "22"
      ],
      "Formats": [
        "mp4"
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ParameterError %s.
404 NotFound %s. The requested resource does not exist

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.