tencent cloud

Tencent Cloud EdgeOne

CreateOriginGroup

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-25 16:58:53

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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:
  • GENERAL: general origin group, only supports adding IP/domain origin servers, and can be referenced by DNS, rule engine, Layer 4 proxy, general load balancer, and HTTP-specific load balancer;
  • HTTP: HTTP-specific origin server group. It supports adding IP/domain name and COS origin server as the origin server. It cannot be referenced by Layer-4 proxy. It can only be referenced by add acceleration domain name, rule engine - modify origin, and HTTP-specific load balancer.
  • 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.

    3. Output Parameters

    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.

    4. Example

    Example1 Create an origin group

    Create a dedicated HTTP origin group

    Input Example

    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
            }
        ]
    }

    Output Example

    {
        "Response": {
            "OriginGroupId": "origin-df19b73e-3a4c-11ee-a68f-5254000a367f",
            "RequestId": "8240f255-241c-4bae-979f-4738d7ea3f84"
        }
    }

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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.

    ヘルプとサポート

    この記事はお役に立ちましたか?

    フィードバック