Queries the distribution of HTTP status codes of requests to a dedicated instance within a period of time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:DescribeInstanceHttpCode |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
The start time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ |
2022-04-14T02:12:10Z |
| EndTime |
string |
Yes |
The end time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ |
2022-07-21T06:05:52Z |
| StageName |
string |
Yes |
The environment in which the API is requested. Valid values:
|
RELEASE |
| InstanceId |
string |
Yes |
The ID of the instance. |
apigateway-cn-m7r227yy2004 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
AD00F8C0-311B-54A9-ADE2-2436771012DA |
| InstanceHttpCode |
object |
||
| MonitorItem |
array<object> |
The HTTP status codes. |
|
|
object |
|||
| ItemValue |
string |
The corresponding value. |
1 |
| ItemTime |
string |
The HTTP status code returned. |
404 |
Examples
Success response
JSON format
{
"RequestId": "AD00F8C0-311B-54A9-ADE2-2436771012DA",
"InstanceHttpCode": {
"MonitorItem": [
{
"ItemValue": "1",
"ItemTime": "404"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.