Retrieves usage information for an API schema validation plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetApiSchemaUsage |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
No |
The site ID. You can obtain this ID by calling the ListSites operation. |
1159101787**** |
| SiteVersion |
integer |
No |
The site version. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
952ea16b-1f05-4a76-bb32-420282d8**** |
| InstanceId |
string |
The plan's instance ID. |
esa-site-agknce3n**** |
| InstanceUsage |
integer |
The total number of API schema files uploaded to the plan instance. |
10 |
| Usages |
array<object> |
The usage details for each site. |
|
|
object |
The usage details for an individual site. |
||
| Usage |
integer |
The number of API schema files uploaded for this site. |
0 |
| Id |
integer |
The site ID. |
40000449 |
| Name |
string |
The site name. |
test |
Examples
Success response
JSON format
{
"RequestId": "952ea16b-1f05-4a76-bb32-420282d8****",
"InstanceId": "esa-site-agknce3n****",
"InstanceUsage": 10,
"Usages": [
{
"Usage": 0,
"Id": 40000449,
"Name": "test"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.ApiShield.Quota | This website does not have the permission to view API security features. | This website does not have the permission to view API security features. |
| 400 | SiteVersion.NotExist | The specified version is invalid or version management is not enabled for your website.Make sure that you specify a valid version and version management is enabled. Then, try again. | The specified version is invalid or version management is not enabled for your website.Make sure that you specify a valid version and version management is enabled. Then, try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.