GetCustomTemplate
Retrieves a custom co-streaming template.
Operation description
Obtain the name of the custom template that you want to query, and then call this operation to retrieve the custom co-streaming template.
QPS limit
The queries per second (QPS) limit for a single user on this operation is 10. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:GetCustomTemplate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Template |
string |
Yes |
The name of the custom template to query. |
TestTemplate |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BC1E78D3-FA8B-4457-DEE2-6093E1232254 |
| CustomTemplate |
string |
The template configuration. |
{height:1080,scale:[16:9],gop:60,bframes:30,cdesc:h264} |
| Template |
string |
The template name. |
TestTemplate |
Examples
Success response
JSON format
{
"RequestId": "BC1E78D3-FA8B-4457-DEE2-6093E1232254",
"CustomTemplate": "{height:1080,scale:[16:9],gop:60,bframes:30,cdesc:h264}",
"Template": "TestTemplate"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | The userId passed in is invalid, please check. |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | There are invalid parameters: %s. |
| 400 | MissingParameter | %s. | Missing parameter |
| 400 | CustomTemplateInvalid | %s, please check and try again later. | The custom template is invalid, please check and try again. |
| 500 | InternalError | %s, please try again later. | Internal error, please try again later. |
| 404 | InvalidDomainName.NotFound | %s, please check and try again later. | Domain name does not exist, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.