All Products
Search
Document Center

ApsaraVideo Live:CreateLivePrivateLine

Last Updated:Dec 05, 2024

Creates a Global Accelerator (GA) instance and binds it to an acceleration circuit.

Operation description

  • You can call this operation to create a GA instance and bind it to an acceleration circuit. The granularity is at the stream level. You need to specify the access points where the acceleration circuit starts and ends.
  • The settings take effect only if the value of AppName and the value of StreamName are the same as the application name and stream name that are specified in the streaming URL.

QPS limit

You can call this operation up to 50 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
live:CreateLivePrivateLine
*Domain
acs:cdn:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The main streaming domain.

demo.aliyundoc.com
AppNamestringYes

The name of the application.

live
StreamNamestringYes

The name of the live stream.

testStream
VideoCenterstringYes

The live center. Valid values: cn-beijing, cn-shanghai, cn-shenzhen, cn-qingdao, ap-northeast-1, ap-southeast-5, eu-central-1, and ap-southeast-1, which indicate China (Beijing), China (Shanghai), China (Shenzhen), China (Qingdao), Japan (Tokyo), Indonesia (Jakarta), Germany (Frankfurt), and Singapore, respectively.

cn-shanghai
AccelerationTypestringYes

The acceleration type. Valid values:

  • play: streaming acceleration
  • publish: stream ingest acceleration
play
AccelerationAreastringYes

The acceleration channel.

ap-southeast-1
ReusestringYes

Specifies whether to reuse an existing acceleration channel. Valid values:

  • yes: reuses an existing acceleration channel.
  • no: creates a new acceleration channel.
no
MaxBandwidthstringNo

The accelerated bandwidth. Unit: Mbit/s. This parameter is required if Reuse is set to no.

200
InstanceIdstringNo

The acceleration channel that you want to reuse. This parameter is required if Reuse is set to yes.

ga-bp1iovsdpf01ym9su****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

7908F2FF-44F8-120F-9FD6-85AE4B6C****

Examples

Sample success responses

JSONformat

{
  "RequestId": "7908F2FF-44F8-120F-9FD6-85AE4B6C****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamParameter invalid.Illegal input parameters
400NoSpecialConfigurationno special configuration for acceleration_area.-
400ConfigAlreadyExistsConfig has already exist.-
400HasNoPermissionYou do not have permission to create accelerator.-
400PostPayNotOpenThe Accelerator PostPay service is not open.-
400TryAgainCreate SLR first and please try again.-
400HasNoPermisionToCreateSLRYou do not have ram:CreateServiceLinkedRole to create SLR.-
500InternalErrorThe request processing has failed due to backend service exception.-

For a list of error codes, visit the Service error codes.