Queries a list of APIs that are being defined.
Operation description
-
This operation is intended for API callers.
-
This operation returns a list of all APIs that are being defined. The basic information about these APIs is also returned in the list.
-
This operation returns all APIs that are being edited, regardless of their environments. The returned definitions may be different from the definitions in the environments.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:DescribeApis |
get |
*ApiGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
No |
The API group ID. |
c4a4d2de657548a2bd485d5d4df42b4a |
| ApiId |
string |
No |
The API ID. |
f68c19ee3bd1478fb58aa05ce8ae9b5a |
| ApiName |
string |
No |
The API name. The name is used for fuzzy match. |
weather |
| CatalogId |
string |
No |
The category ID. |
1553414085247362 |
| Visibility |
string |
No |
Specifies whether the API is public. Valid values:
|
PUBLIC |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The number of the page to return. Pages start from page 1. Default value: 1. |
1 |
| EnableTagAuth |
boolean |
No |
Specifies whether to enable tag verification. |
true |
| Tag |
array<object> |
No |
The tags of objects that match the rule. |
Key, Value |
|
object |
No |
|||
| Key |
string |
No |
The tag key. |
key |
| Value |
string |
No |
The tag value. |
value |
| ApiPath |
string |
No |
The request path of the API. |
/illegal/query |
| ApiMethod |
string |
No |
The HTTP method of the API request. |
GET |
| UnDeployed |
boolean |
No |
Specifies whether to filter unpublished APIs. |
true |
| StageName |
string |
No |
The environment in which you want to perform this operation. Valid values:
|
RELEASE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The page number of the returned page. |
3 |
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BZ002 |
| PageSize |
integer |
The number of entries returned per page. |
15 |
| TotalCount |
integer |
The total number of returned entries. |
32 |
| ApiSummarys |
object |
||
| ApiSummary |
array<object> |
The queried API definitions. |
|
|
array<object> |
|||
| Visibility |
string |
Indicates whether the API is public. Valid values:
|
PUBLIC |
| ApiId |
string |
The API ID. |
5af418828f0344a3b588c0cc1331a3bc |
| ModifiedTime |
string |
The time when the API was modified. The time is displayed in UTC. |
2016-07-23T08:28:48Z |
| Description |
string |
The API description. |
Create object API |
| GroupName |
string |
The name of the API group to which the API belongs. |
myGroup2 |
| GroupId |
string |
The API group ID. |
1084f9034c744137901057206b39d2b6 |
| CreatedTime |
string |
The time when the API was created. The time is displayed in UTC. |
2016-05-20T18:18:25Z |
| ApiName |
string |
The API name. |
Create object |
| RegionId |
string |
The ID of the region to which the API belongs. |
cn-qingdao |
| ApiPath |
string |
The request path of the API. |
/sqb/ |
| ApiMethod |
string |
The HTTP method of the API request. |
GET |
| DeployedInfos |
object |
||
| DeployedInfo |
array<object> |
The API publishing statuses. |
|
|
object |
The API publishing status. |
||
| StageName |
string |
Stage Name:
|
RELEASE |
| EffectiveVersion |
string |
The deployed version. |
20220103170737313 |
| DeployedStatus |
string |
The deployment status. Valid values: DEPLOYED and NONDEPLOYED. |
DEPLOYED |
| TagList |
object |
||
| Tag |
array<object> |
The tags that are added to the APIs. |
|
|
object |
The information about the array object. |
||
| TagKey |
string |
The tag key. |
tagKey |
| TagValue |
string |
The tag value. |
tagValue |
Examples
Success response
JSON format
{
"PageNumber": 3,
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ002",
"PageSize": 15,
"TotalCount": 32,
"ApiSummarys": {
"ApiSummary": [
{
"Visibility": "PUBLIC",
"ApiId": "5af418828f0344a3b588c0cc1331a3bc",
"ModifiedTime": "2016-07-23T08:28:48Z",
"Description": "Create object API",
"GroupName": "myGroup2",
"GroupId": "1084f9034c744137901057206b39d2b6",
"CreatedTime": "2016-05-20T18:18:25Z",
"ApiName": "Create object",
"RegionId": "cn-qingdao",
"ApiPath": "/sqb/",
"ApiMethod": "GET",
"DeployedInfos": {
"DeployedInfo": [
{
"StageName": "RELEASE",
"EffectiveVersion": "20220103170737313",
"DeployedStatus": "DEPLOYED"
}
]
},
"TagList": {
"Tag": [
{
"TagKey": "tagKey",
"TagValue": "tagValue"
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.