Queries the list of production studios.
Operation description
You can call the CreateCaster operation to create a production studio and then call this operation to query the production studio list. The status of a production studio can be idle or streaming.
QPS limit
You can call this operation up to 15 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:DescribeCasters | get | *Caster acs:live:*:{#accountId}:caster/{#CasterId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CasterId | string | No | The ID of the production studio.
Note
| LIVEPRODUCER_POST-cn-0pp1czt**** |
CasterName | string | No | The name of the production studio. | liveCaster**** |
StartTime | string | No | The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2016-06-29T09:00:00Z |
EndTime | string | No | The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2016-06-29T11:00:00Z |
PageNum | integer | No | The number of the page to return. | 1 |
PageSize | integer | No | The number of templates to return on each page. If you leave this parameter empty, the default value is used. Default value: 100. | 100 |
Status | integer | No | The status of the production studio. Valid values:
| 0 |
ChargeType | integer | No | The billing method. Valid values:
| 0 |
OrderByModifyAsc | string | No | Specifies whether to sort the production studios in ascending order based on the modification time. Note
If you leave this parameter empty, the default value is used. Default value: false.
| false |
NormType | string | No | The type of the production studio. Valid values:
| 1 |
ResourceGroupId | string | No | The resource group ID. 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
{
"CasterList": {
"Caster": [
{
"CasterId": "LIVEPRODUCER_POST-cn-0pp1czt****",
"CasterName": "liveCaster****",
"CasterTemplate": "lp_ld",
"ChannelEnable": 1,
"ChargeType": "PrePaid",
"CreateTime": "2017-08-30 12:02:57.0",
"Duration": "1:02:33",
"ExpireTime": "2018-08-30 12:02:57.0",
"LastModified": "2021-12-01T05:08:45Z",
"NormType": 1,
"PurchaseTime": "2017-08-30 12:02:57.0",
"StartTime": "2017-08-30 18:02:57.0",
"Status": 1,
"ResourceGroupId": 0,
"ClientTokenId": "53200b81-b761-4c10-842a-a0726d97****\n",
"Tags": {
"tag": [
{
"TagKey": "TestKey",
"TagValue": "TestValue"
}
]
}
}
]
},
"RequestId": "5c6a2a0df228-4a64- af62-20e91b9676b3",
"Total": 1
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidUserId.Malformed | %s |
400 | MissingParameter | %s |
400 | InvalidParameter.Malformed | %s |
400 | InvalidParameter.PageSize | %s |
400 | InvalidParameter.PageNum | %s |
400 | InvalidParameter.Status | %s |
400 | InvalidParameter.StartTime | %s |
400 | InvalidParameter.EndTime | %s |
400 | LiveServiceNotFound | %s |
403 | PermissionDenied | %s |
500 | InternalError | %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. The response structure of the API has changed | View Change Details |
2024-08-21 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |