Domain name for API request: live.tencentcloudapi.com.
This API is used to query domain names by domain name status and type.
A maximum of 200 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeLiveDomains. |
Version | Yes | String | Common Params. The value used for this API: 2018-08-01. |
Region | No | String | Common Params. This parameter is not required for this API. |
DomainStatus | No | Integer | Filter by domain name status. 0: disabled, 1: enabled. |
DomainType | No | Integer | Filter by domain name type. 0: push. 1: playback |
PageSize | No | Integer | Number of entries per page. Value range: 10-100. Default value: 10. |
PageNum | No | Integer | Page number to get. Value range: 1-100000. Default value: 1. |
IsDelayLive | No | Integer | 0: LVB, 1: LCB. Default value: 0. |
DomainPrefix | No | String | Domain name prefix. |
PlayType | No | Integer | Playback region. This parameter is valid only when DomainType is set to 1 .1 : Chinese mainland2 : global3 : outside Chinese mainland |
Parameter Name | Type | Description |
---|---|---|
AllCount | Integer | Total number of results. |
DomainList | Array of DomainInfo | List of domain name details. |
CreateLimitCount | Integer | The number of domain names that can be added Note: this field may return null , indicating that no valid values can be obtained. |
PlayTypeCount | Array of Integer | The number of domains accelerated in the Chinese mainland, globally, and outside the Chinese mainland respectively. Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: live.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLiveDomains
<Common request parameters>
{
"IsDelayLive": "0",
"PageSize": "10",
"PageNum": "1",
"DomainStatus": "1",
"DomainType": "1"
}
{
"Response": {
"RequestId": "eac6b301-a322-493a-8e36-83b295459397",
"AllCount": 2,
"CreateLimitCount": 0,
"PlayTypeCount": [
1,
2,
3
],
"DomainList": [
{
"Name": "abc.com",
"IsMiniProgramLive": 0,
"Type": 1,
"Status": 1,
"PlayType": 1,
"IsDelayLive": 0,
"CreateTime": "2018-08-29 10:00:00",
"BCName": 1,
"CurrentCName": "",
"TargetDomain": "abc.com.liveplay.myqcloud.com",
"RentTag": 0,
"RentExpireTime": "0000-00-00 00:00:00"
}
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.CallOtherSvrFailed | Failed to call the internal service. |
InternalError | Internal error. |
InternalError.ConnectDbError | Database connection error. |
InternalError.DBError | DB execution error. |
InternalError.GetBizidError | Error getting user account. |
ResourceNotFound.EmptyData | |
ResourceNotFound.ForbidService | You are blocked. |
ResourceNotFound.FreezeService | Service suspended. |
ResourceNotFound.InvalidUser | This API is not supported for the user. |
ResourceNotFound.StopService | The service has been suspended due to account arrears. Please top up it to a positive balance to activate the service first. |
ResourceNotFound.UserDisableService | You disabled the service. |
この記事はお役に立ちましたか?