Creates an asset inventory task to perform a knowledge inventory on specified instances, databases, or tables.
Operation description
Creates an asset inventory task that allows you to perform a knowledge inventory at the instance, database, or table level, and returns the task ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateInventoryJob |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
||||||||||||||||
| Param |
string |
No |
The JSON string of the inventory parameters.
|
{ "instanceIds": [1], "dbIds": [2], "tableIds": { "3": [ "table" ] } } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response content. |
||
| Data |
integer |
The ID of the inventory task. |
1001 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| RequestId |
string |
Id of the request |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Data": 1001,
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.