All Products
Search
Document Center

Cloud Config:GetResourceConfigurationTimeline

Last Updated:Oct 10, 2025

Queries the configuration history of a specified resource.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: A resource is created.

  • MODIFY: A resource is modified.

  • REMOVE: A resource is deleted.

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.