Checks the resource Inventory.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/check/inventory HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
Zone. |
cn-hangzhou-h |
| ClusterInfo |
string |
No |
Cluster information. |
{ "clusterType": "sr", "regionId": "cn-hangzhou", "packageType": "official", "runMode": "shared_data", "beResourceSpec": { "cu": 8, "storageSize": 200, "nodeNumber": 3, "diskNumber": 1, "storagePerformanceLevel": "pl1", "diskType": "essd", "specType": "standard" }, "feResourceSpec": { "cu": 8, "storageSize": 100, "nodeNumber": 3, "specType": "standard" } } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
HTTP request status code. |
200 |
| RequestId |
string |
Request ID. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Is the request successful? |
false |
| ErrCode |
string |
Error code. |
InvalidParams |
| ErrMessage |
string |
Error message. |
Invalid params: [instance not exists]. |
| Data |
boolean |
Returned data. |
true |
| AccessDeniedDetail |
string |
AccessDeniedDetail |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].\n",
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.