tencent cloud



Last updated: 2022-10-12 15:59:01

1. API Description

Domain name for API request: apigateway.tencentcloudapi.com.

This API is used to modify an upstream.

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: ModifyUpstream.
Version Yes String Common Params. The value used for this API: 2018-08-08.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
UpstreamId Yes String Unique upstream ID
UpstreamName No String Upstream name
UpstreamDescription No String Upstream description
Scheme No String Backend protocol. Valid values: HTTP, HTTPS
UpstreamType No String Upstream access type. Valid values: IP_PORT, K8S
Algorithm No String Load balancing algorithm. Valid value: ROUND_ROBIN
UniqVpcId No String Unique VPC ID.
Retries No Integer Retry attempts. It defaults to 3.
UpstreamHost No String Gateway forwarding to the upstream Host request header
Nodes.N No Array of UpstreamNode List of backend nodes
HealthChecker No UpstreamHealthChecker Health check configuration
K8sService.N No Array of K8sService Configuration of TKE service

3. Output Parameters

Parameter Name Type Description
Result UpstreamInfo Return modified upstream information
Note: This field may return NULL, indicating that no valid value was found.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Modifying an upstream

Input Example

&<Common request parameters>

Output Example

    "Response": {
        "Result": {
            "Retries": 1,
            "Algorithm": "xx",
            "UniqVpcId": "xx",
            "CreatedTime": "2020-09-22T00:00:00+00:00",
            "UpstreamId": "xx",
            "UpstreamName": "xx",
            "UpstreamDescription": "xx",
            "Nodes": [
                    "VmInstanceId": "xx",
                    "Host": "xx",
                    "Port": 1,
                    "Weight": 1,
                    "Tags": [
            "Scheme": "xx"
        "RequestId": "xx"

5. Developer Resources


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
AuthFailure Error with CAM signature/authentication.
DryRunOperation DryRun Operation. It means that the request would have succeeded, but the DryRun parameter was used.
FailedOperation Operation failed.
FailedOperation.OperateUpstream Backend error
InternalError Internal error.
InvalidParameter Incorrect parameter.
InvalidParameter.FormatError Incorrect parameter format.
InvalidParameterValue.InvalidUpstream The backend channel does not exist or is invalid.
InvalidParameterValue.NotInOptions The parameter value is incorrect, as it is not an available option.
InvalidParameterValue.RangeExceeded The parameter value is incorrect, as it is not within the valid value range.
LimitExceeded The quota limit is exceeded.
MissingParameter Missing parameter.
ResourceNotFound The resource does not exist.
UnauthorizedOperation The operation is unauthorized.
UnsupportedOperation Unsupported operation.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support