All Products
Search
Document Center

API Gateway:DescribeHistoryApis

Last Updated:Jul 31, 2025

Queries the historical versions of an API.

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
apigateway:DescribeHistoryApisget
*ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
GroupIdstringYes

The ID of the API group.

0ccb66aadb5345b78a40f57d192d8aa4
StageNamestringNo

The name of the runtime environment. Valid values:

  • RELEASE
  • TEST
RELEASE
ApiIdstringNo

The ID of the API.

a12068f555964ca8a0c9c33288f1e5a7
ApiNamestringNo

The name of the API. The name is used for fuzzy match.

getPersonInfo
PageSizestringNo

The number of entries to return on each page.

10
PageNumberstringNo

The page number of the current page.

2

Response parameters

ParameterTypeDescriptionExample
object
PageNumberinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

6C87A26A-6A18-4B8E-8099-705278381A2C
PageSizeinteger

The number of entries to return on each page. Maximum value: 50. Default value: 10.

10
TotalCountinteger

The total number of returned entries.

20
ApiHisItemsarray<object>

The returned API information. It is an array consisting of ApiHisItems.

ApiHisItemobject
Statusstring

Indicates whether an API version is effective. Valid values: ONLINE and OFFLINE.

ONLINE
ApiIdstring

The API ID.

5af418828f0344a3b588c0cc1331a3bc
Descriptionstring

The API description.

Creates an object
GroupNamestring

The name of the API group to which the API belongs.

myGroup2
GroupIdstring

The API group ID.

1084f9034c744137901057206b39d2b6
DeployedTimestring

The time when the API was published. The time is displayed in UTC.

2016-07-20T08:28:48Z
StageNamestring

The environment name. Valid values:

  • RELEASE
  • TEST
RELEASE
StageAliasstring

The environment alias.

Online
HistoryVersionstring

The historical version of the API definition.

20210915101416294
ApiNamestring

The API name.

v2_role_assign
RegionIdstring

The region ID.

cn-qingdao

Examples

Sample success responses

JSONformat

{
  "PageNumber": 1,
  "RequestId": "6C87A26A-6A18-4B8E-8099-705278381A2C",
  "PageSize": 10,
  "TotalCount": 20,
  "ApiHisItems": {
    "ApiHisItem": [
      {
        "Status": "ONLINE",
        "ApiId": "5af418828f0344a3b588c0cc1331a3bc",
        "Description": "Creates an object\n",
        "GroupName": "myGroup2",
        "GroupId": "1084f9034c744137901057206b39d2b6",
        "DeployedTime": "2016-07-20T08:28:48Z",
        "StageName": "RELEASE",
        "StageAlias": "Online",
        "HistoryVersion": 20210915101416296,
        "ApiName": "v2_role_assign",
        "RegionId": "cn-qingdao"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-11-14API Description UpdateView Change Details
2024-03-21The response structure of the API has changedView Change Details