ListInventorySynchronizationJobs
Queries resource synchronization tasks.
Operation description
You can use one of the following two methods to view the returned data:
-
Method 1: When querying the first page during paging in a paged query, you only need to apply the Settings for MaxResults to limit the number of returned entries. The NextToken value in the response is used as the token to query the next page. When querying subsequent pages, set the NextToken parameter to the NextToken value obtained from the previous response, and apply the Settings for MaxResults to limit the number of returned entries. If there are no more pages, NextToken is not returned. The maximum value of MaxResults is 100.
-
Method 2: Use the PageSize Settings to specify the number of entries returned per page during paging, and use the PageNumber Settings to specify the page number.
You can use only one of the two methods. Method 1 is recommended when a large number of entries are returned. If the Settings for MaxResults or NextToken are applied, the PageSize and PageNumber request parameters become invalid.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:ListInventorySynchronizationJobs |
list |
*InventorySynchronizationJob
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the IDaaS EIAM instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| NextToken |
string |
No |
The query token. Set the value to the NextToken value returned from the previous API call. |
NTxxxxxexample |
| MaxResults |
integer |
No |
The number of entries to return per page during paging in a paged query. Default value: 20. Maximum value: 100. |
20 |
| InventorySourceIds |
array |
No |
The IDs of the synchronization targets. |
|
|
string |
No |
The IDs of the synchronization targets. |
isrc_xxxxxxxxx |
|
| StartTime |
integer |
No |
The start time. The value is a UNIX timestamp in seconds. |
1234567890 |
| EndTime |
integer |
No |
The end time. The value is a UNIX timestamp in seconds. |
1234567890 |
| Status |
string |
No |
The synchronization status. |
success |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| TotalCount |
integer |
The total number of items. |
100 |
| NextToken |
string |
The pagination token returned by the current call for the next query. |
NTxxxexample |
| InventorySynchronizationJobs |
array<object> |
The synchronization jobs. |
|
|
array<object> |
|||
| InventorySynchronizationJobId |
string |
The ID of the synchronization job. |
sync_xxxxxxx |
| InventorySourceId |
string |
The IDs of the synchronization targets. |
src_xxxxx |
| StartTime |
integer |
The start time of the synchronization. The value is a UNIX timestamp in seconds. |
1761531256 |
| EndTime |
integer |
The end time of the synchronization. The value is a UNIX timestamp in seconds. |
1761533214 |
| TriggerType |
string |
The trigger type of the synchronization. Valid values:
|
manual |
| Status |
string |
The status of the synchronization job. Valid values:
|
success |
| Description |
string |
The description of the synchronization job. |
No Description |
| Result |
object |
The task result of the synchronization node. |
|
| AssetStatistics |
object |
The statistics on the asset synchronization results. |
|
| Created |
object |
The statistics on the creation results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Updated |
object |
The statistics on the update results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Deleted |
object |
The statistics on the deletion results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Same |
object |
The statistics on the unchanged results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| AgentStatistics |
object |
The statistics on the agent synchronization results. |
|
| Created |
object |
The statistics on the creation results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Updated |
object |
The statistics on the update results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Deleted |
object |
The statistics on the deletion results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| Same |
object |
The statistics on the unchanged results. |
|
| Total |
integer |
The total number of items. |
5 |
| Success |
integer |
The number of successful items. |
3 |
| Failed |
integer |
The number of failed items. |
1 |
| Skipped |
integer |
The number of skipped items. |
1 |
| ErrorMessage |
string |
The error message of the synchronization result. |
No Error Message |
| ErrorCode |
string |
The error code of the synchronization result. |
No ErrorCode |
| MaxResults |
integer |
The maximum number of returned results. |
20 |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"TotalCount": 100,
"NextToken": "NTxxxexample",
"InventorySynchronizationJobs": [
{
"InventorySynchronizationJobId": "sync_xxxxxxx",
"InventorySourceId": "src_xxxxx",
"StartTime": 1761531256,
"EndTime": 1761533214,
"TriggerType": "manual",
"Status": "success",
"Description": "No Description",
"Result": {
"AssetStatistics": {
"Created": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Updated": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Deleted": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Same": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
}
},
"AgentStatistics": {
"Created": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Updated": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Deleted": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
},
"Same": {
"Total": 5,
"Success": 3,
"Failed": 1,
"Skipped": 1
}
},
"ErrorMessage": "No Error Message",
"ErrorCode": "No ErrorCode"
}
}
],
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.