Domain name for API request: teo.intl.tencentcloudapi.com.
Create an origin server group to manage origin servers by group. The origin server group configured here can be referenced in features such as adding an acceleration domain name and Layer 4 proxy.
A maximum of 20 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: CreateOriginGroup. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Zone ID. |
| Records.N | Yes | Array of OriginRecord | Origin server record information. This parameter is required. |
| Name | No | String | Origin group name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-). |
| Type | No | String | Origin server group type. This parameter is required. Valid values: |
| HostHeader | No | String | Origin-pull Host Header. It takes effect only when it is input and Type is HTTP. The rule engine modification of the Host Header configuration has a higher priority than the Host Header of the origin server group. |
| Parameter Name | Type | Description |
|---|---|---|
| OriginGroupId | String | Origin server group ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Create a dedicated HTTP origin group
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateOriginGroup
<Common request parameters>
{
"ZoneId": "zone-2kblak89bkx1",
"Name": "edgeone-origin",
"Type": "HTTP",
"Records": [
{
"Record": "1.1.1.1",
"Type": "IP_DOMAIN",
"Weight": 20
},
{
"Record": "s3.test.tencent.com",
"Type": "AWS_S3",
"Weight": 30
}
]
}
{
"Response": {
"OriginGroupId": "origin-df19b73e-3a4c-11ee-a68f-5254000a367f",
"RequestId": "8240f255-241c-4bae-979f-4738d7ea3f84"
}
}
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 | Operation failed. |
| InternalError.ConfigLocked | The configuration has been locked. Unlock it and retry. |
| InvalidParameter.HostHeaderInvalid | Origin-pull Host error. |
| InvalidParameter.InvalidAwsRegion | Fill in the region correctly as a private network access parameter for third-party object storage. |
| InvalidParameter.InvalidOriginGroupType | Origin server group type error. |
| InvalidParameter.InvalidOriginIp | Private IP addresses or loopback addresses are not supported as the origin server address. |
| InvalidParameter.OriginNameExists | Origin server group name already exists. |
| InvalidParameter.OriginRecordFormatError | Origin server format error. |
| InvalidParameter.OriginRecordWeightValue | Weight value range: 0-100. |
| InvalidParameter.OriginThirdPartyParamFormatError | Invalid key format. |
| LimitExceeded | The quota limit is exceeded. |
| OperationDenied | Operation denied. |
| OperationDenied.ConfigLocked | The configuration has been locked. Unlock it and retry. |
| OperationDenied.LoadBalancingZoneIsNotActive | Operation not supported for load balancing in this site status. |
| UnauthorizedOperation.CamUnauthorized | Unauthorized Cam operation. |
| UnauthorizedOperation.NoPermission | The sub-account does not have operation permissions. Add the required permissions and try again. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários