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.
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 |
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. |
https://apigateway.tencentcloudapi.com/?Action=ModifyUpstream
&UpstreamId=upstream-0c96l2bo
&Retries=4
&UpstreamName=test
&UpstreamHost=www.a.com
&UpstreamDescription=test
&<Common request parameters>
{
"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": [
"xx"
]
}
],
"Scheme": "xx"
},
"RequestId": "xx"
}
}
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 |
---|---|
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. |
Was this page helpful?