Mengambil daftar Ingress.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListIngresses |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/ingress/IngressList HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
Yes |
ID namespace. |
cn-beijing |
| AppId |
string |
No |
ID aplikasi. |
bbf3a590-6d13-46fe-8ca9-c947a20b**** |
| CurrentPage |
integer |
No |
Nomor halaman saat ini. |
|
| PageSize |
integer |
No |
Ukuran halaman. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data that is returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The response message.
|
success |
| TraceId |
string |
The trace ID. You can use it to query the details of a call. |
0a98a02315955564772843261e**** |
| Data |
object |
The result. |
|
| CurrentPage |
integer |
The current page. |
|
| TotalSize |
integer |
The total number of entries found. |
|
| PageSize |
integer |
The number of entries per page. |
|
| IngressList |
array<object> |
The list of routing rules. |
|
|
array<object> |
The information about the routing rule. |
||
| SlbId |
string |
The Server Load Balancer (SLB) ID. |
lb-uf62****6d13tq2u5 |
| NamespaceId |
string |
The namespace ID. |
cn-shanghai |
| Description |
string |
The name of the routing rule. |
test |
| ListenerPort |
string |
The listening port of the SLB. |
80 |
| SlbType |
string |
The type of SLB. Valid values:
|
internet |
| CertId |
string |
The certificate ID for Classic Load Balancer (CLB). |
13624*****73809_16f8e549a20_1175189789_12****3210 |
| CertIds |
string |
The multi-certificate IDs for Application Load Balancer (ALB). |
87***35-cn-hangzhou,812***3-cn-hangzhou |
| Name |
string |
The name of the routing rule. |
lb-uf6jt0nu4z6ior943****-80-f5**** |
| Id |
integer |
The ID of the routing rule. |
18 |
| LoadBalanceType |
string |
The type of Server Load Balancer (SLB). Valid values:
|
clb |
| ListenerProtocol |
string |
The forwarding protocol supported by the SLB. Valid values:
This parameter is optional in CreateIngress and UpdateIngress. If you omit it when creating or updating a gateway routing rule, the API does not return this field. |
HTTP |
| MseGatewayId |
string |
The instance ID of the MSE cloud-native gateway. |
gw-d5df01a1bae748f1a7c4e325d2fd**** |
| MseGatewayPort |
string |
The port of the service. |
80 |
| MseGatewayProtocol |
string |
The forwarding protocol supported by the MSE cloud-native gateway. Valid values:
|
HTTP |
| RequestTimeout |
integer |
||
| IdleTimeout |
integer |
||
| CreateTime |
integer |
||
| DefaultRule |
object |
||
| ContainerPort |
integer |
||
| AppName |
string |
||
| AppId |
string |
||
| BackendProtocol |
string |
||
| Rules |
array<object> |
||
|
array<object> |
|||
| AppName |
string |
||
| ContainerPort |
integer |
||
| Domain |
string |
||
| AppId |
string |
||
| Path |
string |
||
| BackendProtocol |
string |
||
| RewritePath |
string |
||
| RuleActions |
array<object> |
||
|
object |
|||
| ActionType |
string |
||
| ActionConfig |
string |
||
| CorsConfig |
object |
||
| Enable |
string |
||
| ExposeHeaders |
string |
||
| AllowHeaders |
string |
||
| AllowMethods |
string |
||
| AllowOrigin |
string |
||
| AllowCredentials |
string |
||
| MaxAge |
string |
||
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The status of the API call or a POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"CurrentPage": 0,
"TotalSize": 0,
"PageSize": 0,
"IngressList": [
{
"SlbId": "lb-uf62****6d13tq2u5",
"NamespaceId": "cn-shanghai",
"Description": "test",
"ListenerPort": "80",
"SlbType": "internet",
"CertId": "13624*****73809_16f8e549a20_1175189789_12****3210",
"CertIds": "87***35-cn-hangzhou,812***3-cn-hangzhou",
"Name": "lb-uf6jt0nu4z6ior943****-80-f5****",
"Id": 18,
"LoadBalanceType": "clb",
"ListenerProtocol": "HTTP",
"MseGatewayId": "gw-d5df01a1bae748f1a7c4e325d2fd****",
"MseGatewayPort": "80",
"MseGatewayProtocol": "HTTP",
"RequestTimeout": 0,
"IdleTimeout": 0,
"CreateTime": 0,
"DefaultRule": {
"ContainerPort": 0,
"AppName": "",
"AppId": "",
"BackendProtocol": ""
},
"Rules": [
{
"AppName": "",
"ContainerPort": 0,
"Domain": "",
"AppId": "",
"Path": "",
"BackendProtocol": "",
"RewritePath": "",
"RuleActions": [
{
"ActionType": "",
"ActionConfig": ""
}
]
}
],
"CorsConfig": {
"Enable": "",
"ExposeHeaders": "",
"AllowHeaders": "",
"AllowMethods": "",
"AllowOrigin": "",
"AllowCredentials": "",
"MaxAge": ""
}
}
]
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.