All Products
Search
Document Center

API Gateway:ListHttpApis

Last Updated:Feb 05, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries a list of HTTP APIs.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
apig:ListHttpApislist
*HttpApi
acs:apig:{#regionId}:{#accountId}:httpapi/*
    none
none

Request syntax

GET /v1/http-apis HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
keywordstringNo

The consumer authentication policy in the specified environment in each returned API.

test-
pageNumberintegerNo

The environment information.

1
pageSizeintegerNo

The resource group ID.

10
namestringNo

Specifies whether authentication is enabled.

login
typesstringNo

The Ingress information.

Http,Rest
gatewayIdstringNo

Specifies whether to include policy configurations.

gw-cq2avtllh****
withAuthPolicyInEnvironmentIdstringNo

The gateway type to filter. Valid values: AI and API.

env-xxx
withConsumerInfoByIdstringNo

The response body.

cs-xxx
withEnvironmentInfobooleanNo

The request ID.

true
withPluginAttachmentByPluginIdstringNo

The status code.

pl-ct9qn3um1hktue8dqol0
resourceGroupIdstringNo

The returned message.

rg-ahr5uil8raz0rq3b
withEnvironmentInfoByIdstringNo

The APIs.

env-ctovu5mm1hksb4q8ln40
withAuthPolicyListbooleanNo

The page number of the returned page.

true
withIngressInfobooleanNo

The number of entries per page.

false
withPolicyConfigsbooleanNo

The total number of entries returned.

false
withAPIsPublishedToEnvironmentbooleanNo

Whether to return all APIs published to a specific environment

true
gatewayTypestringNo

The API information.

Enumeration Value:
  • AI: AI.
  • API: API.
API

Response parameters

ParameterTypeDescriptionExample
object

The API information grouped by API name.

requestIdstring

Get HTTP API List

585657D2-1C20-5B8A-AF17-D727C6490BE4
codestring

The status code.

200
messagestring

Response message.

success
dataobject

Response data.

pageNumberinteger

Page number.

1
pageSizeinteger

Page size.

10
totalSizeinteger

Total number of items.

10
itemsarray

object

apiInfoHttpApiInfoByName

HttpApiInfoByName

Examples

Sample success responses

JSONformat

{
  "requestId": "585657D2-1C20-5B8A-AF17-D727C6490BE4",
  "code": 200,
  "message": "success",
  "data": {
    "pageNumber": 1,
    "pageSize": 10,
    "totalSize": 10,
    "items": [
      {
        "name": "test-api",
        "versionEnabled": true,
        "versionedHttpApis": [
          {
            "httpApiId": "api-xxx",
            "name": "test",
            "basePath": "/v1",
            "description": "",
            "versionInfo": {
              "enable": true,
              "scheme": "Query",
              "headerName": "my-version",
              "queryName": "myVersion",
              "version": "v1"
            },
            "ingressInfo": {
              "sourceId": "",
              "ingressClass": "",
              "watchNamespace": "",
              "environmentInfo": {
                "environmentId": ""
              },
              "k8sClusterInfo": {
                "clusterId": ""
              },
              "overrideIngressIp": true
            },
            "type": "Rest",
            "resourceGroupId": "rg-xxx",
            "enabelAuth": true,
            "authConfig": {
              "authType": "",
              "authMode": ""
            },
            "gatewayId": "",
            "modelCategory": "",
            "protocols": [
              "HTTP"
            ],
            "environments": [
              {
                "environmentId": "env-xxx",
                "backendScene": "SingleService",
                "backendType": "Service",
                "serviceConfigs": [
                  {
                    "gatewayServiceId": "gs-xxx",
                    "name": "demo-service",
                    "protocol": "HTTP",
                    "port": 8080,
                    "weight": 100,
                    "version": "v1",
                    "match": {
                      "default": true,
                      "conditions": [
                        {
                          "type": "Query",
                          "key": "color",
                          "value": "gray",
                          "operator": "equal"
                        }
                      ]
                    },
                    "serviceId": "svc-xxx"
                  }
                ],
                "customDomains": [
                  {
                    "domainId": "d-xxx",
                    "name": "www.example.com",
                    "protocol": "HTTP"
                  }
                ],
                "name": "test",
                "alias": "test",
                "gatewayInfo": {
                  "gatewayId": "gw-xxx",
                  "name": "test"
                },
                "deployStatus": "Deployed",
                "subDomains": [
                  {
                    "domainId": "d-xxx",
                    "name": "www.example.com",
                    "protocol": "HTTP",
                    "networkType": "Internet"
                  }
                ]
              }
            ],
            "aiProtocols": [
              ""
            ],
            "deployConfigs": [
              {
                "environmentId": "env-xxx",
                "backendScene": "SingleService",
                "autoDeploy": true,
                "gatewayId": "gw-xx",
                "routeBackend": {
                  "scene": "Single",
                  "services": [
                    {
                      "serviceId": "service-cq2bmmdlhtgj***",
                      "name": "item-service",
                      "protocol": "HTTP",
                      "port": 0,
                      "weight": 49,
                      "version": "v1"
                    }
                  ]
                },
                "gatewayInfo": {
                  "gatewayId": "",
                  "name": "",
                  "vpcInfo": {
                    "vpcId": "",
                    "name": ""
                  },
                  "engineVersion": ""
                },
                "mock": {
                  "enable": false,
                  "responseCode": 200,
                  "responseContent": ""
                },
                "gatewayType": "API",
                "customDomainIds": [
                  "d-xxx"
                ],
                "serviceConfigs": [
                  {
                    "serviceId": "svc-xxx",
                    "weight": 100,
                    "modelNamePattern": "qwen-*",
                    "modelName": "qwen-max",
                    "intentCode": "",
                    "match": {
                      "default": true,
                      "conditions": [
                        {
                          "type": "Query",
                          "key": "color",
                          "value": "gray",
                          "operator": "equal"
                        }
                      ]
                    }
                  }
                ],
                "policyConfigs": [
                  {
                    "type": "AiFallback",
                    "enable": true,
                    "aiFallbackConfig": {
                      "serviceConfigs": [
                        {
                          "serviceId": "",
                          "targetModelName": ""
                        }
                      ]
                    },
                    "aiSecurityGuardConfig": {
                      "serviceAddress": "",
                      "checkRequest": true,
                      "checkResponse": true,
                      "checkRequestImage": true,
                      "checkResponseImage": true,
                      "requestCheckService": "",
                      "responseCheckService": "",
                      "requestImageCheckService": "",
                      "responseImageCheckService": "",
                      "riskAlertLevel": "",
                      "riskConfig": [
                        {
                          "type": "",
                          "level": "",
                          "consumerRules": {
                            "pattern": "",
                            "matchType": ""
                          }
                        }
                      ],
                      "bufferLimit": 0,
                      "consumerRequestCheckService": [
                        {
                          "name": "",
                          "requestCheckService": "",
                          "requestImageCheckService": "",
                          "matchType": "",
                          "modalityType": ""
                        }
                      ],
                      "consumerResponseCheckService": [
                        {
                          "name": "",
                          "responseCheckService": "",
                          "responseImageCheckService": "",
                          "matchType": "",
                          "modalityType": ""
                        }
                      ],
                      "consumerRiskLevel": [
                        {
                          "name": "",
                          "matchType": "",
                          "type": "",
                          "level": ""
                        }
                      ]
                    },
                    "aiTokenRateLimitConfig": {
                      "rules": [
                        {
                          "limitType": "",
                          "matchKey": "",
                          "matchType": "",
                          "matchValue": "",
                          "limitMode": "",
                          "limitValue": 0
                        }
                      ],
                      "globalRules": [
                        {
                          "limitType": "",
                          "matchKey": "",
                          "matchType": "",
                          "matchValue": "",
                          "limitMode": "",
                          "limitValue": 0
                        }
                      ],
                      "enableGlobalRules": true
                    }
                  }
                ],
                "customDomainInfos": [
                  {
                    "domainId": "",
                    "name": "",
                    "protocol": ""
                  }
                ],
                "subDomains": [
                  {
                    "domainId": "",
                    "name": "",
                    "protocol": "",
                    "networkType": ""
                  }
                ]
              }
            ],
            "deployCntMap": {
              "key": {
                "deployedCnt": 0,
                "Cnt": 0
              }
            },
            "agentProtocols": [
              ""
            ]
          }
        ],
        "type": "Http",
        "GatewayId": "gw-xx"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-04-25The request parameters of the API has changedView Change Details
2025-03-31The request parameters of the API has changedView Change Details
2024-12-26The request parameters of the API has changedView Change Details
2024-11-28The request parameters of the API has changedView Change Details
2024-11-20The request parameters of the API has changedView Change Details
2024-11-18The request parameters of the API has changedView Change Details
2024-10-24The request parameters of the API has changedView Change Details
2024-09-11The request parameters of the API has changedView Change Details
2024-09-06The request parameters of the API has changedView Change Details
2024-08-05The request parameters of the API has changedView Change Details
2024-07-26The request parameters of the API has changedView Change Details