CreateInventoryJob
Creates an asset inventory task to perform knowledge inventory on specified instances, databases, or tables.
Operation description
Creates an asset inventory task. You can select instances, databases, or tables as the inventory dimension. The task ID is returned.
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 inventory parameters.
|
{ "instanceIds": [1], "dbIds": [2], "tableIds": { "3": [ "table" ] } } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
Id of the request |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
integer |
The inventory task ID. |
1001 |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Data": 1001
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.