Call the CreateCaster operation to create a production studio.
Operation description
You must activate ApsaraVideo Live before you call this operation. For more information, see Activate ApsaraVideo Live. This operation supports the following types of production studios: Standard and New Playlist (Carousel).
QPS limit
The queries per second (QPS) limit for this operation is 10 calls per second for each user. If you exceed this limit, API calls are throttled, which may affect your business. We recommend that you call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:CreateCaster |
create |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| CasterName |
string |
No |
The name of the production studio. |
liveCaster**** |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the request. Generate a token on your client and ensure that the token is unique among different requests. The token can be up to 64 ASCII characters in length. |
53200b81-b761-4c10-842a-a0726d97**** |
| NormType |
integer |
Yes |
The type of the production studio. Valid values:
|
1 |
| ChargeType |
string |
Yes |
The billing method. Only PostPaid is supported. Valid values:
|
PostPaid |
| PurchaseTime |
string |
No |
The purchase time of the production studio. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format and is displayed in UTC. Note
This parameter is available only if you set ChargeType to PrePaid. |
2017-08-20T12:10:10Z |
| ExpireTime |
string |
No |
The expiration time of the production studio. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format and is displayed in UTC. Note
This parameter is available only if you set ChargeType to PrePaid. |
2017-08-22T12:10:10Z |
| CasterTemplate |
string |
No |
The preset resolution of the production studio. This parameter is available only for the subscription billing method. Valid values:
Note
If you use the pay-as-you-go billing method, call the SetCasterConfig operation to set the resolution. |
lp_sd |
| ResourceGroupId |
string |
No |
The ID of the resource group. For more information, see What is a resource group?. |
rg-aekzw****** |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key. |
TestKey |
| Value |
string |
No |
The tag value. |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CasterId |
string |
The ID of the production studio. You can use this ID as a request parameter to query stream URLs, start the production studio, add video resources, add layouts, query the layout list, add components, and add playlists. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
Examples
Success response
JSON format
{
"CasterId": "a2b8e671-2fe5-4642-a2ec-bf93880e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.PurchaseTime | %s | |
| 400 | InvalidParameter.ExpireTime | %s | |
| 400 | MissingParameter | %s | |
| 400 | InvalidChargeType.Malformed | %s | |
| 400 | InvalidChargeType.PostSupport | %s | |
| 400 | InvalidCasterTemplate.Malformed | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | InvalidParameter.ChargeType | %s | |
| 400 | InvalidPeriod.Malformed | %s | |
| 400 | InvalidUserId.Malformed | %s | |
| 400 | InvalidClientToken.Malformed | %s | |
| 400 | IncorrectCasterStatus | %s | |
| 401 | CasterNumberExceed | %s | |
| 403 | PermissionDenied | %s | |
| 404 | InvalidParameter.NormType | %s | |
| 404 | InvalidConfiguration.NotFound | %s | |
| 408 | CreateCaster.Timeout | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.