Queries the configuration history of a specified resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:GetResourceConfigurationTimeline |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
string |
Yes |
The resource ID. |
i-bp19xem7lt97h973**** |
| StartTime |
integer |
No |
The start timestamp. The default value is 30 days before the API call is made. |
1605489195000 |
| EndTime |
integer |
No |
The end timestamp. The default value is the time of the API call. |
1605489235000 |
| Limit |
integer |
No |
The number of entries to return on each page for a paged query. Valid values: 1 to 100. Default value: 10. |
10 |
| ResourceType |
string |
Yes |
The resource type. |
ACS::ECS::Instance |
| Region |
string |
Yes |
The region ID. |
cn-hangzhou |
| MultiAccount |
boolean |
No |
This parameter is scheduled for deprecation and will be removed by 00:00:00 on June 30, 2021. Its replacement, the account group API, will be released by 00:00:00 on May 30, 2021. If you are using this parameter, switch to the account group API after it is released. For more information about account groups, see Account groups. |
true |
| MemberId |
integer |
No |
This parameter is scheduled for deprecation and will be removed by 00:00:00 on June 30, 2021. Its replacement, the account group API, will be released by 00:00:00 on May 30, 2021. If you are using this parameter, switch to the account group API after it is released. For more information about account groups, see Account groups. |
123456789 |
| NextToken |
string |
No |
The token that is used to start the next query. |
caeba0bbb2be03f84eb48b699f0a**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| RequestId |
string |
The request ID. |
ED9CD1B3-286C-4E05-A765-5E1E0B9BC2AB |
| ResourceConfigurationTimeline |
object |
The configuration history of the resource. |
|
| ConfigurationList |
array<object> |
A list of the configuration history. |
|
|
object |
None. |
||
| AccountId |
integer |
The ID of the Alibaba Cloud account. |
987654321 |
| AvailabilityZone |
string |
The zone. |
cn-hangzhou-h |
| CaptureTime |
string |
The timestamp of the configuration change. |
1605316711000 |
| ConfigurationDiff |
string |
The information about the configuration change. |
{\"ExpiredTime\":[\"2020-10-26T16:00Z\",\"2020-11-26T16:00Z\"]} |
| Region |
string |
The region ID. |
cn-hangzhou |
| ResourceCreateTime |
string |
The time when the resource was created. |
1605237751000 |
| ResourceEventType |
string |
The type of the resource change event. Valid values:
|
DISCOVERED |
| ResourceId |
string |
The resource ID. |
i-bp19xem7lt97h973**** |
| ResourceName |
string |
The resource name. |
ECS-test |
| ResourceType |
string |
The resource type. |
ACS::ECS::Instance |
| Tags |
string |
The resource tags. |
"{\"\"hc\"\":[\"\"value2\"\"]}" |
| Limit |
integer |
The number of entries returned on each page. Valid values: 1 to 100. |
10 |
| NextToken |
string |
The token that is used to start the next query. |
caeba0bbb2be03f84eb48b699f0a**** |
| TotalCount |
integer |
The total number of configuration history entries. |
100 |
Examples
Success response
JSON format
{
"RequestId": "ED9CD1B3-286C-4E05-A765-5E1E0B9BC2AB",
"ResourceConfigurationTimeline": {
"ConfigurationList": [
{
"AccountId": 987654321,
"AvailabilityZone": "cn-hangzhou-h",
"CaptureTime": "1605316711000",
"ConfigurationDiff": "{\\\"ExpiredTime\\\":[\\\"2020-10-26T16:00Z\\\",\\\"2020-11-26T16:00Z\\\"]}",
"Region": "cn-hangzhou",
"ResourceCreateTime": "1605237751000",
"ResourceEventType": "DISCOVERED",
"ResourceId": "i-bp19xem7lt97h973****",
"ResourceName": "ECS-test",
"ResourceType": "ACS::ECS::Instance",
"Tags": "\"{\\\"\\\"hc\\\"\\\":[\\\"\\\"value2\\\"\\\"]}\""
}
],
"Limit": 10,
"NextToken": "caeba0bbb2be03f84eb48b699f0a****",
"TotalCount": 100
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | You are not authorized to perform this operation. |
| 400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The request has failed due to a temporary failure of the server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.