QueryChangeLogList

Updated at:

Queries the operation logs under your current Alibaba Cloud account by page.

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

domain:QueryChangeLog

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

UserClientIp

string

No

The IP address of the user. You can set this parameter to 127.0.0.1.

127.0.0.1

Lang

string

No

The language of the error message returned by the API operation. Valid values:

  • zh: Chinese.

  • en: English.

Default value: en.

en

DomainName

string

No

The domain name for which you want to query operation logs.

example.com

PageNum

integer

Yes

The page number. Minimum value: 1.

1

PageSize

integer

Yes

The number of entries per page. Minimum value: 1. Maximum value: 100.

1

StartDate

integer

No

The start time of the time range to query. The value is a UNIX timestamp in milliseconds.

1522080000000

EndDate

integer

No

The end time of the time range to query. The value is a UNIX timestamp in milliseconds.

1522080000000

Response elements

Element

Type

Description

Example

object

CurrentPageNum

integer

The current page number.

1

Data

object

ChangeLog

array<object>

The list of operation logs.

object

Details

string

The details.

dns1;dns2 -> dns3;dns4

DomainName

string

The domain name.

example.com

Operation

string

The operation performed.

DNS modification

OperationIPAddress

string

The IP address from which the operation was performed.

127.0.0.1

Remark

string

The remarks of the operation logs.

Result

string

The result of the operation.

Failed

Time

string

The time when the operation was performed. The time is displayed in UTC, such as 2017-12-25 12:00:00. The specific format varies based on the Lang request parameter.

2017-12-26 12:00:00

NextPage

boolean

Indicates whether a next page exists.

true

PageSize

integer

The number of entries per page.

1

PrePage

boolean

Indicates whether a previous page exists.

false

RequestId

string

The request ID.

2DEDFF32-7827-46B1-BE90-3DB8ABD91A58

ResultLimit

boolean

In addition to the pagination limit, the server processes a maximum of the latest 1,000 records for the current query. If the number of results exceeds 1,000, ResultLimit is true. In this case, narrow the time range and search again. Otherwise, ResultLimit is false.

true

TotalItemNum

integer

The total number of records.

1000

TotalPageNum

integer

The total number of pages.

1000

Examples

Success response

JSON format

{
  "CurrentPageNum": 1,
  "Data": {
    "ChangeLog": [
      {
        "Details": "dns1;dns2 -> dns3;dns4",
        "DomainName": "example.com",
        "Operation": "DNS modification",
        "OperationIPAddress": "127.0.0.1",
        "Remark": "",
        "Result": "Failed",
        "Time": "2017-12-26 12:00:00"
      }
    ]
  },
  "NextPage": true,
  "PageSize": 1,
  "PrePage": false,
  "RequestId": "2DEDFF32-7827-46B1-BE90-3DB8ABD91A58",
  "ResultLimit": true,
  "TotalItemNum": 1000,
  "TotalPageNum": 1000
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.