Queries a list of gateways.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
mse:ListGateway | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | The number of the page to return. | 1 |
PageSize | integer | No | The number of entries to return on each page. | 10 |
OrderItem | string | No | The order information. | {} |
DescSort | boolean | No | Specifies whether to enable the sorting feature. This feature is not available. | false |
FilterParams | object | No | The details of parameters. | |
GatewayType | string | No | The type of the gateway. | Ingress |
Name | string | No | The name of the gateway. | rutain-test |
Vpc | string | No | The ID of the virtual private cloud (VPC). | vpc-bp13hhyjntbab7w**** |
GatewayUniqueId | string | No | The unique ID of the gateway. | gw-5017305290e14centbrveca**** |
InstanceId | string | No | The ID of the instance. | mse_ingresspre-cn-**** |
MseTag | string | No | The tag of the instance. | [{"key":"tagkey","value":"tagvalue"}] |
ResourceGroupId | string | No | The ID of the resource group. | rg-7y2uye***** |
AcceptLanguage | string | No | The language of the response. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "34300B3-52EC-5049-8C96-914098CF****",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation. Action: mse:ListGateway, Resource: acs:mse:cn-hangzhou:102123:*",
"Code": 200,
"Success": true,
"Data": {
"TotalSize": 9,
"PageNumber": 1,
"PageSize": 10,
"Result": [
{
"Id": 153,
"Name": "tesa-test",
"GatewayUniqueId": "gw-5017305290e14cebb8ce5cb6a4****",
"GatewayType": "Ingress",
"Region": "cn-hangzhou",
"PrimaryUser": "18278117654342",
"Status": 2,
"AhasOn": false,
"ArmsOn": false,
"Spec": "MSE_GTW_1_2_200_c",
"Replica": 2,
"GmtCreate": "2021-09-13 19:24:23",
"GmtModified": "2021-09-13 19:24:23",
"StatusDesc": "Restarting\n",
"Slb": [
{
"SlbIp": "153.12.XX.XX",
"SlbPort": "80",
"SlbSpec": "slb.s2.small",
"Type": "PUB_NET",
"GatewaySlbStatus": "Ready",
"StatusDesc": "Creating\n",
"GatewaySlbMode": "UserHost",
"SlbId": "lb-bp1ut8asdfgucjk****"
}
],
"InternetSlb": [
{
"SlbIp": "153.12.XX.XX",
"SlbPort": "slb.s2.small",
"SlbSpec": "slb.s2.small",
"Type": "PUB_NET",
"InternetNetworkFlow": "20",
"GatewaySlbStatus": "Ready",
"StatusDesc": "Creating\n",
"GatewaySlbMode": "UserHost",
"SlbId": "lb-bp1ut8asdfgucjk****"
}
],
"Upgrade": false,
"MustUpgrade": false,
"SupportWasm": true,
"CurrentVersion": "0.1.0-mse-gw",
"AppVersion": "1.0.1.0",
"LatestVersion": "0.1.0-mse-gw",
"Vswitch2": "vsw-bpbrveck45nf****",
"InstanceId": "mse_ingresspost-cn-0jbvrcex****",
"ChargeType": "POSTPAY",
"EndDate": "4792060800000",
"Tag": "test",
"InitConfig": {
"EnableWaf": true,
"SupportWaf": true
},
"GatewayVersion": "1.2.9",
"RollBack": false,
"MseTag": "{\"tagKey\":\"tagValue\"}",
"ResourceGroupId": "rg-97hg87vi****",
"TotalReplica": 4,
"Elastic": true,
"ElasticReplica": 2,
"ElasticType": "CronHPA",
"ElasticPolicy": {
"Elastic": true,
"MaxReplica": 10,
"ElasticType": "CronHPA",
"TimePolicyList": [
{
"DesiredReplica": 4,
"StartTime": "07:00",
"EndTime": "09:00"
}
]
},
"ElasticInstanceId": "mse_ingresselastic_public_cn-uqm3d0*****",
"VpcId": "vpc-uf6heojei217tv14*****",
"MseVersion": "",
"MaintenancePeriod": {
"TimeZone": "",
"StartTime": "",
"EndTime": ""
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
404 | NotFound | Not found:%s | The resource does not exist:%s |
500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-09 | The response structure of the API has changed | View Change Details |
2023-10-11 | The response structure of the API has changed | View Change Details |
2023-08-09 | The response structure of the API has changed | View Change Details |
2023-05-09 | The response structure of the API has changed | View Change Details |
2022-02-18 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-02-18 | The response structure of the API has changed | View Change Details |