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.
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: |
| 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. |
| 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. |
Modify the origin group named edgeone-new-origin
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"
}
{
"Response": {
"RequestId": "c2886bcd-173f-499e-b425-022ceaf636d8"
}
}
Modify origin server group records. New origin server records will override the old ones in the origin server group.
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"
}
]
}
{
"Response": {
"RequestId": "39f96a44-9a52-4a9f-8b76-4ccc9e496f40"
}
}
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. |
| 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. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan