All Products
Search
Document Center

Microservices Engine:ListGateway

Last Updated:Nov 13, 2024

Queries a list of gateways.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
mse:ListGatewayget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

10
OrderItemstringNo

The order information.

{}
DescSortbooleanNo

Specifies whether to enable the sorting feature. This feature is not available.

false
FilterParamsobjectNo

The details of parameters.

GatewayTypestringNo

The type of the gateway.

Ingress
NamestringNo

The name of the gateway.

rutain-test
VpcstringNo

The ID of the virtual private cloud (VPC).

vpc-bp13hhyjntbab7w****
GatewayUniqueIdstringNo

The unique ID of the gateway.

gw-5017305290e14centbrveca****
InstanceIdstringNo

The ID of the instance.

mse_ingresspre-cn-****
MseTagstringNo

The tag of the instance.

[{"key":"tagkey","value":"tagvalue"}]
ResourceGroupIdstringNo

The ID of the resource group.

rg-7y2uye*****
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

34300B3-52EC-5049-8C96-914098CF****
HttpStatusCodeinteger

The HTTP status code returned.

200
Messagestring

The message returned.

You are not authorized to perform this operation. Action: mse:ListGateway, Resource: acs:mse:cn-hangzhou:102123:*
Codeinteger

The return value.

200
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Dataobject

The data returned.

TotalSizelong

The total number of entries returned.

9
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

10
Resultarray<object>

The data returned.

Gatewaysobject

The returned information.

Idlong

The gateway ID.

153
Namestring

The gateway name.

tesa-test
GatewayUniqueIdstring

The unique ID of the gateway.

gw-5017305290e14cebb8ce5cb6a4****
GatewayTypestring

The gateway type.

Ingress
Regionstring

The region ID.

cn-hangzhou
PrimaryUserstring

The user information.

18278117654342
Statusinteger

The gateway state. Valid values:

  • 0: The gateway is being created.
  • 1: The gateway failed to be created.
  • 2: The gateway is running.
  • 3: The gateway is being changed.
  • 4: The gateway is scaling in.
  • 6: The gateway is scaling out.
  • 8: The gateway is being deleted.
  • 9: The gateway is suspended and is to be released.
  • 10: The gateway is restarting.
  • 11: The gateway is being rebuilt.
  • 12: The gateway is being upgraded.
  • 13: The gateway failed to be upgraded.
2
AhasOnboolean

Indicates whether Application High Availability Service (AHAS) is activated.

false
ArmsOnboolean

Indicates whether Application Real-Time Monitoring Service (ARMS) is activated.

false
Specstring

The specifications of the gateway.

MSE_GTW_1_2_200_c
Replicainteger

The number of replicas.

2
GmtCreatestring

The time when the gateway was created.

2021-09-13 19:24:23
GmtModifiedstring

The time when the gateway was modified.

2021-09-13 19:24:23
StatusDescstring

The description of the gateway state.

Restarting
Slbarray<object>

The details of Server Load Balancer (SLB) instances.

slbobject

The information about the SLB instances.

SlbIpstring

The IP address of the SLB instance.

153.12.XX.XX
SlbPortstring

The port number of the SLB instance.

80
SlbSpecstring

The specifications of the SLB instance.

slb.s2.small
Typestring

The network type. Valid values:

  • PUB_NET
  • PRIVATE_NET
PUB_NET
GatewaySlbStatusstring

The state of the SLB instance.

Ready
StatusDescstring

The description of the state.

Creating
GatewaySlbModestring

The mode of the SLB instance.

UserHost
SlbIdstring

The ID of the SLB instance.

lb-bp1ut8asdfgucjk****
InternetSlbarray<object>

The details of the Internet-facing SLB instances.

internetSlbobject

The data structure.

SlbIpstring

The IP address of the SLB instance.

153.12.XX.XX
SlbPortstring

The port number of the SLB instance.

slb.s2.small
SlbSpecstring

The specifications of the SLB instance.

slb.s2.small
Typestring

The type of the SLB instance.

PUB_NET
InternetNetworkFlowstring

The traffic of the gateway.

20
GatewaySlbStatusstring

The state of the SLB instance.

Ready
StatusDescstring

The description of the state.

Creating
GatewaySlbModestring

The mode of the SLB instance.

UserHost
SlbIdstring

The ID of the SLB instance.

lb-bp1ut8asdfgucjk****
Upgradeboolean

Indicates whether the instance was upgraded.

false
MustUpgradeboolean

Indicates whether the instance was forcefully upgraded.

false
SupportWasmboolean

Indicates whether WebAssembly (Wasm) is supported.

true
CurrentVersionstring

The current version of the gateway.

0.1.0-mse-gw
AppVersionstring

The version of the application.

1.0.1.0
LatestVersionstring

The latest version of the gateway.

0.1.0-mse-gw
Vswitch2string

The ID of the secondary vSwitch.

vsw-bpbrveck45nf****
InstanceIdstring

The instance ID.

mse_ingresspost-cn-0jbvrcex****
ChargeTypestring

The billing method.

POSTPAY
EndDatestring

The time when the instance expires.

4792060800000
Tagstring

The tag.

test
InitConfigobject

The configurations.

EnableWafboolean

Indicates whether Web Application Firewall (WAF) is enabled.

true
SupportWafboolean

Indicates whether WAF is supported.

true
GatewayVersionstring

The version of the gateway.

1.2.9
RollBackboolean

Indicates whether rollbacks are allowed.

false
MseTagstring

The resource tag.

{"tagKey":"tagValue"}
ResourceGroupIdstring

The resource group ID.

rg-97hg87vi****
TotalReplicainteger

The total number of replicas, including the number of replicas that are automatically scaled out.

4
Elasticboolean

Indicates whether auto scale-out is enabled.

true
ElasticReplicainteger

The number of replicas that are automatically scaled out.

2
ElasticTypestring

The type of auto scale-out. Valid value:

  • CronHPA: scale-out by time
CronHPA
ElasticPolicyobject

The auto scale-out policy.

Elasticboolean

Indicates whether auto scale-out is enabled.

true
MaxReplicainteger

The maximum number of instances that are automatically scaled out. This parameter is used for horizontal scale-out.

10
ElasticTypestring

The type of auto scale-out. Valid value:

  • CronHPA: scale-out by time
CronHPA
TimePolicyListarray<object>

The time policy list for auto scale-out.

timePolicyListobject
DesiredReplicainteger

The expected number of replicas for auto scale-out.

4
StartTimestring

The start time of auto scale-out.

07:00
EndTimestring

The end time of auto scale-out.

09:00
ElasticInstanceIdstring

The ID of the elastic gateway. This parameter is returned if auto scale-out is used.

mse_ingresselastic_public_cn-uqm3d0*****
VpcIdstring

The ID of the virtual private cloud (VPC) to which the gateway belongs.

vpc-uf6heojei217tv14*****

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400IllegalRequestInvalid request:%sInvalid request: %s
400InvalidParameterParameter error:%sRequest parameter error: %s
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-09The response structure of the API has changedView Change Details
2023-10-11The response structure of the API has changedView Change Details
2023-08-09The response structure of the API has changedView Change Details
2023-05-09The response structure of the API has changedView Change Details
2022-02-18The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-02-18The response structure of the API has changedView Change Details