You can call ListClusterServiceConfigHistory operation to query the configuration modification history of a specified service of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ListClusterServiceConfigHistory

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ListClusterServiceConfigHistory.

ClusterId String Yes C-F32FB31D8295****

The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

ServiceName String No TEZ

The name of the service. You can call ListClusterService View data on the Member Management page.

ConfigVersion String No 0

The version of the configuration file.

HostGroupId String No G-A5EA210E15FC****

The ID of the host group. You can call ListClusterHostGroup View the machine group ID.

HostInstanceId String No i-bp146tnrkq4tcso2****

The ID of the host.

ConfigFileName String No N/A

A reserved parameter.

ConfigItemKey String No N/A

A reserved parameter.

Author String No 111

The user who modified the configuration.

Comment String No This is

The description of the cluster.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
ConfigHistoryList Array of ConfigHistory

The configuration change histories of the specified service.

ConfigHistory
Applied Boolean true

Indicates whether the configuration takes effect. Valid values:

  • true: The setting takes effect.
  • false: does not take effect.
Author String 1111

The user who modified the configuration data.

Comment String modifyConfig

The comment about the modifications.

ConfigFileName String tez-site

The name of the configuration file.

ConfigItemName String tez.am.resource.memory.mb

The name of the configuration parameter.

ConfigVersion String 1543320502944

The version of the configuration file. It is represented by the modification timestamp of the configuration file.

CreateTime Long 1543320503000

The time when the user modified the configuration data.

HostGroupId String G-A5EA210E15FC****

The ID of the host group.

HostGroupName String Master instance group

The name of host group N.

HostInstanceId String i-bp146tnrkq4tcso2****

The instance ID of the host. This is typically the ID of an ECS instance.

HostName String emr-header-1

The hostname of the server.

NewValue String 1280

The parameter value after modification.

OldValue String 640

The parameter value before modification.

ServiceName String TEZ

The name of the service.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 100

The number of entries returned on each page.

RequestId String DF202AC2-5D5D-4288-B608-B7B1595B5C7C

The ID of the request.

TotalCount Integer 30

The total number of entries returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListClusterServiceConfigHistory
&ClusterId=C-F32FB31D8295****
&RegionId=cn-hangzhou
&<common request parameters>

Sample responses

XML format

<TotalCount>1</TotalCount>
<ConfigHistoryList>
    <ConfigHistory>
        <ConfigFileName>tez-site</ConfigFileName>
        <Comment>xxx</Comment>
        <ServiceName>TEZ</ServiceName>
        <OldValue>640</OldValue>
        <ConfigVersion>1543320502944</ConfigVersion>
        <CreateTime>1543320503000</CreateTime>
        <Author>1250460021754461</Author>
        <NewValue>1280</NewValue>
        <Applied>true</Applied>
        <ConfigItemName>tez.am.resource.memory.mb</ConfigItemName>
    </ConfigHistory>
</ConfigHistoryList>
<PageSize>500</PageSize>
<RequestId>8CC97161-4A0C-4EDB-9799-F0A51C40B070</RequestId>
<PageNumber>1</PageNumber>

JSON Syntax

{
    "TotalCount":1,
    "ConfigHistoryList":
    {
        "ConfigHistory":
        [
            {
                "ConfigFileName":"tez-site",
                "Comment":"xxx",
                "ServiceName":"TEZ",
                "OldValue":"640",
                "ConfigVersion":"1543320502944",
                "CreateTime":1543320503000,
                "Author":"1250460021754461",
                "NewValue":"1280",
                "Applied":true,
                "ConfigItemName":"tez.am.resource.memory.mb"
                }
                ]
                },
                "PageSize":500,
                "RequestId":"8CC97161-4A0C-4EDB-9799-F0A51C40B070",
                "PageNumber":1
                }