DescribeLiveAIStudio

Updated at:

Queries the virtual studio templates under the user account.

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

live:DescribeLiveAIStudio

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-shanghai

StudioId

string

No

The ID of the template used for filtering. This parameter is optional.

dbe61b87-db9a-448f-8757-a875edb3f944

StudioName

string

No

The name of the virtual background template.

sub02

PageNumber

integer

No

The page number. Default value: 1.

1

PageSize

integer

No

The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

Total

integer

The total number of templates.

100

PageNumber

integer

The current page number.

1

PageSize

integer

The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.

10

StudioConfigs

object

SubtitleConfig

array<object>

The virtual studio template information.

array<object>

The virtual studio template information.

MediaType

string

The type of the multimedia asset. Valid values:

  • VOD: video-on-demand file.

  • PIC: image.

  • LIVE: live stream.

VOD

MediaLayout

string

The multimedia layout information.

"{\"positionY\":\"0.0\",\"positionX\":\"0.0\",\"heightNormalized\":\"0.5\"}"

MediaResourceUrl

string

The URL of the multimedia asset.

https://testbucket.xx.com/2.jpg

MediaResourceId

string

The ID of the video-on-demand resource for the multimedia asset.

d0eb493192c771efba644531858c0102

BackgroundType

string

The type of the background asset. Valid values:

  • VOD: video-on-demand file.

  • PIC: image.

  • LIVE: live stream.

VOD

BackgroundResourceUrl

string

The external access URL of the background asset. The URL must be accessible over the Internet. Either this field or BackgroundResourceId is returned.

https://testbucket.xx.com/2.jpg

BackgroundResourceId

string

The ID of the background asset resource.

d0eb493192c771efba644531858c0102

Description

string

The description of the custom rule.

user defined description

TemplateId

string

The ID of the virtual studio template.

24654384-f5ac-40ea-823b-74e85a61dd9f

TemplateName

string

The name of the virtual studio template. This field is the same as the StudioName parameter in AddLiveAiStudio.

studio1

MattingLayout

string

The position and layout information of the multimedia asset.

"{\"positionY\":\"0.0\",\"positionX\":\"0.0\",\"heightNormalized\":\"0.5\"}"

MattingType

string

The matting type applied to the source stream to process user ingest. Valid values:

  • green: green screen portrait matting.

  • blue: blue screen portrait matting.

  • complex: real-scene portrait matting.

complex

Height

string

The height of the preview screen. Unit: px.

The width × height of the preview screen supports only the following specifications:

  • Landscape low definition 360p: 640 × 360

  • Portrait low definition 360p: 360 × 640

  • Landscape standard definition 480p: 854 × 480

  • Portrait standard definition 480p: 480 × 854

  • Landscape high definition 720p: 1280 × 720

  • Portrait high definition 720p: 720 × 1280

  • Landscape ultra-high definition 1080p: 1920 × 1080

  • Portrait ultra-high definition 1080p: 1080 × 1920

1080

Width

string

The width of the preview screen.

1920

RuleIds

object

ruleId

array

The IDs of the bound policies.

string

The ID of the rule.

2414378f-541a-48d3-be0c-535212f9a6b4

Examples

Success response

JSON format

{
  "RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
  "Total": 100,
  "PageNumber": 1,
  "PageSize": 10,
  "StudioConfigs": {
    "SubtitleConfig": [
      {
        "MediaType": "VOD",
        "MediaLayout": "\"{\\\"positionY\\\":\\\"0.0\\\",\\\"positionX\\\":\\\"0.0\\\",\\\"heightNormalized\\\":\\\"0.5\\\"}\"",
        "MediaResourceUrl": "https://testbucket.xx.com/2.jpg",
        "MediaResourceId": "\t\nd0eb493192c771efba644531858c0102\n",
        "BackgroundType": "VOD",
        "BackgroundResourceUrl": "https://testbucket.xx.com/2.jpg",
        "BackgroundResourceId": "d0eb493192c771efba644531858c0102",
        "Description": "user defined description",
        "TemplateId": "24654384-f5ac-40ea-823b-74e85a61dd9f",
        "TemplateName": "studio1",
        "MattingLayout": "\"{\\\"positionY\\\":\\\"0.0\\\",\\\"positionX\\\":\\\"0.0\\\",\\\"heightNormalized\\\":\\\"0.5\\\"}\"",
        "MattingType": "complex",
        "Height": "1080",
        "Width": "1920",
        "RuleIds": {
          "ruleId": [
            "2414378f-541a-48d3-be0c-535212f9a6b4"
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 LiveServiceNotFound %s, please check and try again later. The live service is not enabled. Please check and try again.
400 InvalidParameter.PurchaseTime %s, please check and try again later. The parameter PurchaseTime is invalid, please check and try again.
400 InvalidParameter.ExpireTime %s, please check and try again later. The parameter ExpireTime is invalid, please check and try again.
400 MissingParameter %s. Missing parameter
400 InvalidChargeType.Malformed %s, please check and try again later. The parameter ChargeType is invalid, please check and try again.
400 InvalidChargeType.PostSupport %s, please check and try again later. ChargeType only supports post-paid, please check and try again.
400 InvalidCasterTemplate.Malformed %s, please check and try again later. The parameter CasterTemplate is invalid, please check and try again.
400 InvalidParameter.Malformed There are invalid parameters: %s. There are invalid parameters: %s.
400 InvalidParameter.ChargeType %s, please check and try again later. The parameter ChargeType is invalid, please check and try again.
400 InvalidPeriod.Malformed %s, please check and try again later. Invalid time interval, please check and try again.
400 InvalidUserId.Malformed %s, please check userId. The userId passed in is invalid, please check.
400 InvalidClientToken.Malformed %s, please check and try again later. The parameter ClientToken is invalid, please check and try again.
400 IncorrectCasterStatus %s, please check and try again later. Guide station status error, please check and try again.
401 CasterNumberExceed %s, please check and try again later. The number of casters exceeds the limit. Please check and try again.
403 PermissionDenied %s, please check and try again later. Access denied, please check and try again.
404 InvalidParameter.NormType %s, please check and try again later. The parameter NormType is invalid, please check and try again.
404 InvalidConfiguration.NotFound %s, please check and try again later. Configuration does not exist, please check and try again.
408 DescribeLiveAIStudio.Timeout %s, please try again later. Call DescribeLiveAIStudio timed out, please try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.