Queries the details of an Ingress.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeIngress |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/ingress/Ingress HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IngressId |
integer |
Yes |
The ID of the routing rule to query. Call the ListIngresses operation to obtain the routing rule ID. |
16263 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
An informational message. The following values are returned:
|
success |
| TraceId |
string |
The trace ID that is used to query the details of the call. |
0a981dd515966966104121683d**** |
| Data |
object |
The returned result. |
|
| SlbId |
string |
The ID of the SLB instance. |
lb-uf62****6d13tq2u5 |
| NamespaceId |
string |
The namespace ID. |
cn-beijing:sae-test |
| Description |
string |
The name of the routing rule. |
ingress-sae-test |
| ListenerPort |
integer |
The listening port of the SLB instance. |
443 |
| SlbType |
string |
The type of the SLB instance. Valid values:
|
internet |
| CertId |
string |
The ID of the CLB certificate. |
13623****809_16cad216b32_845_-419427029 |
| Name |
string |
The name of the routing rule. |
lb-uf6jt0nu4z6ior943****-80-f5**** |
| DefaultRule |
object |
The default rule. |
|
| ContainerPort |
integer |
The backend port that is used by the default rule. |
8080 |
| AppName |
string |
The name of the application that is used by the default rule. |
app1 |
| AppId |
string |
The ID of the application that is used by the default rule. |
395b60e4-0550-458d-9c54-a265d036**** |
| BackendProtocol |
string |
The backend protocol. Valid values:
This parameter is returned only when LoadBalanceType is set to ALB and ListenerProtocol is set to HTTPS. |
http |
| Rules |
array<object> |
The forwarding rules. |
|
|
array<object> |
A forwarding rule. |
||
| AppName |
string |
The name of the destination application. |
app1 |
| ContainerPort |
integer |
The backend port of the application. |
8080 |
| Domain |
string |
The domain name of the application. |
edas.site |
| AppId |
string |
The ID of the destination application. |
395b60e4-0550-458d-9c54-a265d036**** |
| Path |
string |
The URL path. |
/path1 |
| BackendProtocol |
string |
The backend protocol. Valid values:
This parameter is returned only when LoadBalanceType is set to ALB and ListenerProtocol is set to HTTPS. |
http |
| RewritePath |
string |
The rewritten path. |
/${1} |
| RuleActions |
array<object> |
The list of forwarding rule actions. |
|
|
object |
The list of rule actions. |
||
| ActionType |
string |
The type of the forwarding action.
|
rewrite |
| ActionConfig |
string |
The specific configuration of the forwarding action. |
{\"host\":\"www.example.com\",\"path\":\"/example/text\",\"query\":\"x=1\"} |
| Id |
integer |
The ID of the routing rule. |
87 |
| LoadBalanceType |
string |
The type of the Server Load Balancer (SLB) instance. Valid values:
|
clb |
| ListenerProtocol |
string |
The protocol used to forward requests. Valid values:
This parameter is optional in the CreateIngress and UpadateIngress operations. If you do not specify this parameter when you create or update a gateway routing rule, this parameter is not returned when you call this operation. |
HTTP |
| CertIds |
string |
The IDs of multiple ALB certificates. |
87***35-cn-hangzhou,812***3-cn-hangzhou |
| SecurityPolicyId |
string |
The ID of the security policy instance. |
sp-n0kn923**** |
| RequestTimeout |
integer |
The request timeout period. Unit: seconds. Valid values: 1 to 180. Default value: 60. If a backend server does not respond within the timeout period, Server Load Balancer stops waiting and returns an HTTP 504 error to the client. |
60 |
| IdleTimeout |
integer |
The idle timeout period of a connection. Unit: seconds. Valid values: 1 to 60. Default value: 15. If no request is received within the timeout period, Server Load Balancer temporarily closes the connection. The connection is re-established when the next request is received. |
3 |
| EnableXForwardedFor |
boolean |
Indicates whether the `X-Forwarded-For` header is used to retrieve the IP address of the client. |
true |
| EnableXForwardedForClientSrcPort |
boolean |
Specifies whether to retrieve the listening port of the SLB instance from the X-Forwarded-Port header field. |
true |
| EnableXForwardedForProto |
boolean |
Indicates whether the `X-Forwarded-Proto` header is used to retrieve the listening protocol of the SLB instance. |
true |
| EnableXForwardedForSlbId |
boolean |
Indicates whether the `SLB-ID` header is used to retrieve the ID of the SLB instance. |
true |
| EnableXForwardedForSlbPort |
boolean |
Indicates whether the `X-Forwarded-Port` header is used to retrieve the listening port of the SLB instance. |
true |
| CreatedBySae |
boolean |
Indicates whether the ALB instance is purchased by SAE. |
true |
| CorsConfig |
object |
The allowed HTTP methods for cross-domain access are:
|
|
| Enable |
string |
Specifies whether cross-domain support is enabled. |
false |
| ExposeHeaders |
string |
The list of headers to expose. |
test_123 |
| AllowHeaders |
string |
The list of headers that are allowed for cross-domain requests. |
test_123 |
| AllowMethods |
string |
The HTTP methods that are allowed for cross-domain access. |
GET |
| AllowOrigin |
string |
The list of allowed origins. You can specify only one element
|
* |
| AllowCredentials |
string |
Indicates whether credentials can be carried. Valid values:
|
on |
| MaxAge |
string |
The maximum cache duration of preflight requests in the browser. Unit: seconds. Valid values: -1 to 172800. |
1000 |
| EnableGzip |
boolean |
||
| ErrorCode |
string |
The error code. The following rules apply:
|
空 |
| Code |
string |
The HTTP status code or the POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the details of the Ingress are queried. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a981dd515966966104121683d****",
"Data": {
"SlbId": "lb-uf62****6d13tq2u5",
"NamespaceId": "cn-beijing:sae-test",
"Description": "ingress-sae-test",
"ListenerPort": 443,
"SlbType": "internet",
"CertId": "13623****809_16cad216b32_845_-419427029",
"Name": "lb-uf6jt0nu4z6ior943****-80-f5****",
"DefaultRule": {
"ContainerPort": 8080,
"AppName": "app1",
"AppId": "395b60e4-0550-458d-9c54-a265d036****",
"BackendProtocol": "http"
},
"Rules": [
{
"AppName": "app1",
"ContainerPort": 8080,
"Domain": "edas.site",
"AppId": "395b60e4-0550-458d-9c54-a265d036****",
"Path": "/path1",
"BackendProtocol": "http",
"RewritePath": "/${1}",
"RuleActions": [
{
"ActionType": "rewrite",
"ActionConfig": "{\\\"host\\\":\\\"www.example.com\\\",\\\"path\\\":\\\"/example/text\\\",\\\"query\\\":\\\"x=1\\\"}"
}
]
}
],
"Id": 87,
"LoadBalanceType": "clb",
"ListenerProtocol": "HTTP",
"CertIds": "87***35-cn-hangzhou,812***3-cn-hangzhou",
"SecurityPolicyId": "sp-n0kn923****",
"RequestTimeout": 60,
"IdleTimeout": 3,
"EnableXForwardedFor": true,
"EnableXForwardedForClientSrcPort": true,
"EnableXForwardedForProto": true,
"EnableXForwardedForSlbId": true,
"EnableXForwardedForSlbPort": true,
"CreatedBySae": true,
"CorsConfig": {
"Enable": "false",
"ExposeHeaders": "test_123",
"AllowHeaders": "test_123",
"AllowMethods": "GET",
"AllowOrigin": "*",
"AllowCredentials": "on",
"MaxAge": "1000"
},
"EnableGzip": false
},
"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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.