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
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:CreateLivePrivateLine | *Domain acs:cdn:*:{#accountId}:domain/{#DomainName} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DomainName | string | Yes | The main streaming domain. | demo.aliyundoc.com |
AppName | string | Yes | The name of the application. | live |
StreamName | string | Yes | The name of the live stream. | testStream |
VideoCenter | string | Yes | 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 |
AccelerationType | string | Yes | The acceleration type. Valid values:
| play |
AccelerationArea | string | Yes | The acceleration channel. | ap-southeast-1 |
Reuse | string | Yes | Specifies whether to reuse an existing acceleration channel. Valid values:
| no |
MaxBandwidth | string | No | The accelerated bandwidth. Unit: Mbit/s. This parameter is required if Reuse is set to no. | 200 |
InstanceId | string | No | The acceleration channel that you want to reuse. This parameter is required if Reuse is set to yes. | ga-bp1iovsdpf01ym9su**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "7908F2FF-44F8-120F-9FD6-85AE4B6C****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParam | Parameter invalid. | Illegal input parameters |
400 | NoSpecialConfiguration | no special configuration for acceleration_area. | - |
400 | ConfigAlreadyExists | Config has already exist. | - |
400 | HasNoPermission | You do not have permission to create accelerator. | - |
400 | PostPayNotOpen | The Accelerator PostPay service is not open. | - |
400 | TryAgain | Create SLR first and please try again. | - |
400 | HasNoPermisionToCreateSLR | You do not have ram:CreateServiceLinkedRole to create SLR. | - |
500 | InternalError | The request processing has failed due to backend service exception. | - |
For a list of error codes, visit the Service error codes.