UpdateIngress
Updates the configuration of an Ingress instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:UpdateIngress |
update |
*All Resource
|
None | None |
Request syntax
PUT /pop/v1/sam/ingress/Ingress HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IngressId |
integer |
Yes |
The ID of the routing rule. |
87 |
| CertId |
string |
No |
The ID of the Classic Load Balancer (CLB) certificate. Valid values:
For more information about using SSL certificate IDs in CLB, see Manage certificates (CLB). |
188077086902****_176993d****_181437****_108724**** |
| CertIds |
string |
No |
The IDs of multiple Application Load Balancer (ALB) certificates. Valid values:
|
87***35-cn-hangzhou,812***3-cn-hangzhou |
| Description |
string |
No |
The name of the routing rule. |
ingress-sae-test |
| ListenerPort |
string |
No |
The listening port of the Server Load Balancer (SLB) instance. The port must not be occupied. |
443 |
| DefaultRule |
string |
No |
The default forwarding rule. Traffic is forwarded to a specified application through a specified port based on the IP address. The parameters are described as follows:
Note
All requests that do not match or meet the forwarding rules in Rules are forwarded to the specified application. |
{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080} |
| Rules |
string |
No |
The forwarding rules. Traffic is forwarded to a specified application through a specified port based on the domain name and request path. The parameters are described as follows:
|
[{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080,"domain":"www.sae.site","path":"/path1"},{"appId":"666403ce-d25b-47cf-87fe-497565d2****","containerPort":8080,"domain":"sae.site","path":"/path2"}] |
| LoadBalanceType |
string |
No |
[Deprecated] This parameter is deprecated and updates are no longer supported. |
clb |
| ListenerProtocol |
string |
No |
The request forwarding protocol. Valid values:
|
HTTP |
| RequestTimeout |
integer |
No |
The request timeout period, in seconds. |
60 |
| SecurityPolicyId |
string |
No |
The ID of the security policy instance. |
tls_cipher_policy_1_2_strict_with_1_3 |
| IdleTimeout |
integer |
No |
The idle connection timeout period, in seconds. Note
A value of 0 indicates that the default idle timeout value is used. |
15 |
| EnableXForwardedFor |
boolean |
No |
Specifies whether to enable the retrieval of the client IP address through the X-Forwarded-For header field. |
true |
| EnableXForwardedForClientSrcPort |
boolean |
No |
Specifies whether to retrieve the listening port of the load balancing instance through the X-Forwarded-Port header field. |
true |
| EnableXForwardedForProto |
boolean |
No |
Specifies whether to retrieve the listening protocol of the load balancing instance through the X-Forwarded-Proto header field. |
true |
| EnableXForwardedForSlbId |
boolean |
No |
Specifies whether to retrieve the instance ID of the load balancing instance through the SLB-ID header field. |
true |
| EnableXForwardedForSlbPort |
boolean |
No |
Specifies whether to retrieve the listening port of the load balancing instance through the X-Forwarded-Port header field. |
true |
| CorsConfig |
string |
No |
The cross-origin resource sharing (CORS) configuration. |
{\"Enable\":\"true\"} |
| EnableGzip |
boolean |
No |
Specifies whether to enable data compression. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information. Valid values:
|
success |
| TraceId |
string |
The trace ID. |
0a98a02315955564772843261e**** |
| Data |
object |
The returned result. |
|
| IngressId |
integer |
The ID of the routing rule. |
87 |
| ErrorCode |
string |
The error code. Valid values:
|
InvalidParameter.NotEmpty |
| Code |
string |
The API status code or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the Ingress instance configuration was updated successfully. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"IngressId": 87
},
"ErrorCode": "InvalidParameter.NotEmpty",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | Invalid parameter: %s cannot be empty. |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | Invalid parameter {%s}. |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | Invalid parameter {%s}: %s. |
| 400 | Exceed.IngressRule | The number of Ingress related rules must be less than or equal to 40. | The number of rules for the Ingress configuration cannot exceed 40. |
| 400 | SlbListenerPort.NotAvailable | The SLB listening port is unavailable: slbId [%s], port [%s] | The SLB listener port is occupied: slbId[%s], port[%s]. |
| 400 | SSLCert.NotFound | The specified SSL certificate cannot be found. | The corresponding SSL certificate cannot be found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.