Queries ingresses.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /pop/v5/k8s/acs/k8s_ingress
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the cluster resides. | cn-hangzhou |
ClusterId | string | No | The cluster ID. | 5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx |
Namespace | string | No | The namespace of the Kubernetes cluster. | default |
Condition | string | No | The filter conditions. Set the value to a JSON string in the format of {"field":"Name", "pattern":"my-"}, where:
For example, a value of {"field":"Name", "pattern":"my-"} indicates that the specified filter conditions match the routing rules whose names start with my-. | {"field":"Name", "pattern":"my-"} |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "5C1C9DE7-88FF-4B56-A47B-3DBBCEB******",
"Data": [
{
"ClusterName": "my-dev-cluster",
"ClusterId": "5b2b4ab4-efbc-4a81-9c45-a5942881****",
"RegionId": "cn-hangzhou",
"IngressConfs": [
{
"CreationTime": "2021-04-27 20:16:52",
"SslRedirect": true,
"Endpoint": "47.11x.xx.xx",
"Namespace": "default",
"Name": "my-ingress",
"DashboardUrl": "http://grafana.console.aliyun.com/d/10xxxx/ingress",
"Rules": [
{
"SecretName": "my-secret",
"Host": "example.com",
"Paths": [
{
"Status": "Normal",
"Path": "/foo/bar",
"AppName": "my-app",
"AppId": "43d30ba5-c568-460c-8080-d447ed1a****",
"Backend": {
"ServiceName": "http-service",
"ServicePort": "8080"
},
"CollectRate": 100,
"PathType": "ImplementationSpecific"
}
],
"EnableTls": false
}
],
"AlbId": "alb-5sde0tq62r********",
"IngressType": "NginxIngress",
"OfficalBasicUrl": "https://g.console.aliyun.com/d/xxxxxx/nginx-ingress-dashboard-official",
"OfficalRequestUrl": "https://g.console.aliyun.com/d/xxxxxx/request-handling-performance-official",
"MseGatewayId": "gw-xxxxxxxx",
"MseGatewayName": "gw-test-name",
"Annotations": "{\"test-annotation\":\"test-annotation-value\"}",
"Labels": "{\"test-label\": \"test-labels\"}"
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | Edas.errorcode.PermissionDenied.message | You are not authorized to perform the operation. | No permissions |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-05-17 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|