tencent cloud

APIs

ModifyOriginGroup

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

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

Modify origin group configuration. Newly submitted origin records will overwrite the original origin records in the origin group.

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: ModifyOriginGroup.
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.
GroupId Yes String Origin group ID. This parameter is required.
Name No String Origin server group name. The original configuration applies if this field is not specified. It can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-).
Type No String Origin server group type. Valid values:
  • GENERAL: general origin group, only supports adding IP/domain origin servers, and can be referenced by DNS, rule engine, Layer 4 proxy, and general load balancer;
  • HTTP: HTTP-specific origin group. It supports adding IP/domain name and COS origin servers, with the incapability of being referenced by Layer-4 proxy.
  • Leave it blank to retain the original configuration.
    Records.N No Array of OriginRecord Origin server record information. If this field is not specified, the original configuration will be retained.
    HostHeader No String Origin-pull Host Header. This parameter is valid only when Type = HTTP. No configuration or fill in the blank indicates no origin-pull Host is configured. The rule engine modification of Host Header configuration has a higher priority than the Host Header of the origin server group.

    3. Output Parameters

    Parameter Name Type Description
    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 Modify the origin group name

    Modify the origin group named edgeone-new-origin

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyOriginGroup
    <Common request parameters>
    
    {
        "ZoneId": "zone-2kblak89bkx1",
        "GroupId": "origin-df19b73e-3a4c-11ee-a68f-5254000a367f",
        "Name": "edgeone-rename-origin"
    }

    Output Example

    {
        "Response": {
            "RequestId": "c2886bcd-173f-499e-b425-022ceaf636d8"
        }
    }

    Example2 Modifying Origin Group Records

    Modify origin server group records. New origin server records will override the old ones in the origin server group.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyOriginGroup
    <Common request parameters>
    
    {
        "ZoneId": "zone-2nrle17s0v0r",
        "GroupId": "origin-afbce0e9-6e8a-11ee-8944-52540084caf1",
        "Records": [
            {
                "Record": "2.2.2.2",
                "Type": "IP_DOMAIN"
            },
            {
                "Record": "3.3.3.3",
                "Type": "IP_DOMAIN"
            }
        ]
    }

    Output Example

    {
        "Response": {
            "RequestId": "39f96a44-9a52-4a9f-8b76-4ccc9e496f40"
        }
    }

    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.
    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.InvalidOriginIp Private IP addresses or loopback addresses are not supported as the origin server address.
    InvalidParameter.OriginL4RecordIPV4MixDomain Layer-4 proxy prohibits mixing IPs and domain names.
    InvalidParameter.OriginL4RecordMultiDomain Layer 4 proxy prohibits multi-domain name origin server.
    InvalidParameter.OriginNameExists Origin server group name already exists.
    InvalidParameter.OriginRecordFormatError Origin server format error.
    OperationDenied Operation denied.
    OperationDenied.AccelerationDomainStatusNotInOnline The Layer-7 domain name service referencing an origin group is being deployed. Please re-edit later.
    OperationDenied.L4StatusNotInOnline The bound L4 instance is not in the running state. Operation not allowed.
    OperationDenied.LoadBalanceStatusNotInOnline The bound load balancer is not in the running state. Operation not allowed.
    ResourceNotFound The resource does not exist.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnauthorizedOperation.Unknown Unknown error occurs on the real server.

    ヘルプとサポート

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

    フィードバック