You can call this operation to query the configuration change histories of a specified service provided by a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
ClusterId String Yes C-F32FB31D82954C64

The ID of the cluster.

Action String Yes ListClusterServiceConfigHistory

The operation that you want to perform. Set the value to ListClusterServiceConfigHistory.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs.

ServiceName String No TEZ

The name of the service.

ConfigVersion String No 0

The version of the configuration file.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of entries to return on each page.

AccessKeyId String No LTA****u7gTm****

The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user.

Response parameters

Parameter Type Example Description
ConfigHistoryList

The configuration change histories of the specified service.

ConfigHistory

The information of the configuration change history.

Applied Boolean true

Indicates whether the configuration change takes effect.

Author String 1111

The user who modified the configuration data.

Comment String modifyConfig

The comment for the configuration change.

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.

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 per 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-F32FB31D82954C64
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ListClusterServiceConfigHistoryResponse>
	  <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>
</ListClusterServiceConfigHistoryResponse>

JSON format

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

Error codes

HTTP status code Error code Error message Description
403 Params.Illegal The specified parameters are wrongly formed. The error message returned because the format of the specified parameters is invalid.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource. The error message returned because you are not authorized to manage other user's resources.
403 Invalid.Cluster.Status Invalid cluster status %s in status list. The error message returned because the status of the specified cluster is invalid.
403 Invalid.Cluster.Type Invalid cluster type %s in cluster type list. The error message returned because the type of the specified cluster is invalid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request processing has failed due to an internal error. Submit a ticket.

For a list of error codes, visit the API Error Center.