Update 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 |
Routing rule ID. |
87 |
| CertId |
string |
No |
CLB certificate ID. Details are as follows:
For more information about using SSL certificate IDs with CLB, see Manage Certificates (CLB). |
188077086902****_176993d****_181437****_108724**** |
| CertIds |
string |
No |
ALB multiple certificate IDs. Details are as follows:
|
87***35-cn-hangzhou,812***3-cn-hangzhou |
| Description |
string |
No |
Routing rule name. |
ingress-sae-test |
| ListenerPort |
string |
No |
SLB listening port. This port must not be occupied. |
443 |
| DefaultRule |
string |
No |
Default forwarding rule. Forward traffic to the specified application by IP address through the specified port. Parameter description:
Note
All requests that do not match or satisfy the Rules forwarding rule are forwarded to this specified application. |
{"appId":"395b60e4-0550-458d-9c54-a265d036****","containerPort":8080} |
| Rules |
string |
No |
Forwarding rules. Forward traffic to the specified application by domain name and URI of the request through the specified port. Parameter description:
|
[{"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 parameter. Updates are no longer supported. |
clb |
| ListenerProtocol |
string |
No |
Forwarding Protocol. Details are as follows:
|
HTTP |
| RequestTimeout |
integer |
No |
Request timeout, in seconds (s). |
60 |
| SecurityPolicyId |
string |
No |
Security policy instance ID. |
tls_cipher_policy_1_2_strict_with_1_3 |
| IdleTimeout |
integer |
No |
Idle connection timeout, in seconds (s). Note
A value of 0 indicates that the default idle timeout is used. |
15 |
| EnableXForwardedFor |
boolean |
No |
Enable or disable obtaining the client IP address of the visitor through the X-Forwarded-For header field. |
true |
| EnableXForwardedForClientSrcPort |
boolean |
No |
Obtain the listening port of the SLB instance through the X-Forwarded-Port header field. |
true |
| EnableXForwardedForProto |
boolean |
No |
Specifies whether to determine the listener protocol of the SLB instance from the X-Forwarded-Proto header field. |
true |
| EnableXForwardedForSlbId |
boolean |
No |
Obtain the SLB instance ID through the SLB-ID header field. |
true |
| EnableXForwardedForSlbPort |
boolean |
No |
Whether to obtain the listening port of the Server Load Balancer instance from the X-Forwarded-Port header field. |
true |
| CorsConfig |
string |
No |
Cross-domain configuration. |
{\"Enable\":\"true\"} |
| EnableGzip |
boolean |
No |
Enable or disable data compression. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Returns data. |
||
| RequestId |
string |
Request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
Additional information. Details are as follows:
|
success |
| TraceId |
string |
Call chain ID. |
0a98a02315955564772843261e**** |
| Data |
object |
Returned result. |
|
| IngressId |
integer |
Routing rule ID. |
87 |
| ErrorCode |
string |
Error code. Details are as follows:
|
空 |
| Code |
string |
API status or POP error code. Details are as follows:
|
200 |
| Success |
boolean |
Indicates whether the Ingress instance configuration was successfully updated. Details are as follows:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"IngressId": 87
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | |
| 400 | Exceed.IngressRule | The number of Ingress related rules must be less than or equal to 40. | |
| 400 | SlbListenerPort.NotAvailable | The SLB listening port is unavailable: slbId [%s], port [%s] | |
| 400 | SSLCert.NotFound | The specified SSL certificate cannot be found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.