Creates a production studio.
Operation description
You must enable the production studio feature before you can call this operation to create a production studio. For more information, see Enable the production studio feature.
You can call this operation to create production studios in general mode or playlist mode. Production studios in playlist mode can be used for carousel playback.
QPS limit
You can call this operation up to 10 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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
live:CreateCaster | create | *Caster acs:live:*:{#accountId}:caster/{#CasterId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
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. You can specify a custom value for this parameter, but you must make sure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 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 the pay-as-you-go billing method is supported.**** Valid values:
| PostPaid |
PurchaseTime | string | No | The time when the production studio was purchased. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
This parameter is valid only if you set the ChargeType parameter to PrePaid.
| 2017-08-20T12:10:10Z |
ExpireTime | string | No | The expiration time of the production studio. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
This parameter is valid only if you set the ChargeType parameter to PrePaid.
| 2017-08-22T12:10:10Z |
CasterTemplate | string | No | The preset resolution of the production studio. If the subscription billing method is used, this parameter supports the following valid values:
Note
If the pay-as-you-go billing method is used, you must call the SetCasterConfig operation to specify the resolution.
| lp_sd |
ResourceGroupId | string | No | The ID of the resource group. For more information about resource groups, see Resource groups. | rg-aekzw****** |
Tag | array<object> | No | The tags. | |
object | No | The tag. | ||
Key | string | No | The key of the tag. | TestKey |
Value | string | No | The value of the tag. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"CasterId": "a2b8e671-2fe5-4642-a2ec-bf93880e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
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 |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-27 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-08-21 | The Error code has changed. The request parameters of the API has changed | View Change Details |