You can call this operation to view the configuration history of the specified service on a cluster.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-F32FB31D82954C64 The ID of the cluster.
ServiceName String No Tez. The name of the service.
RegionId String Yes cn-hangzhou The region location ID.
ConfigVersion String No 0 The version of the configuration.
PageNumber Integer No 1 The page number to query.
PageSize Integer No 100 The number of records to show on each page.
AccessKeyId String No xxx The AccessKey ID.

Response parameters

Name Type Example Description
RequestId String DF202AC2-5D5D-4288-B608-B7B1595B5C7C The ID of the request.
TotalCount Integer 30 The total number of records.
PageNumber Integer 1 The current page number.
PageSize Integer 100 The number of records shown on each page.
ConfigHistoryList The list of configuration history.
ServiceName String TEZ The name of the service.
ConfigVersion String 15433205029440 The configuration version represented as the timestamp of the modification time.
ConfigFileName String tez-site The name of the configuration file.
ConfigItemName String tez.am.resource.memory.mb The name of the configuration item.
NewValue String 1280 The modified value.
OldValue String 640 The origin value.
Applied Boolean true Indicates whether the configuration takes effect.
CreateTime Long 1543320503000 The modification time.
Author String 1111 The name of the modifier.
Comment String modifyConfig The comment for the modification.

Examples

  • Sample requests
    /? ClusterId=C-F32FB31D82954C64
    &RegionId=cn-hangzhou
    &AccessKeyId=111
    &ConfigVersion=0
    &PageNumber=1
    &PageSize=100 
    &ServiceName=TEZ
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"ConfigHistoryList":{
    		"ConfigHistory":[{
    			"Applied":true,
    			"Author":"1250460021754461",
    			"Comment":"xxx",
    			"ConfigFileName":"tez-site",
    			"ConfigItemName":"tez.am.resource.memory.mb",
    			"ConfigVersion":"1543320502944",
    			"CreateTime":1543320503000,
    			"NewValue":"1280",
    			"OldValue":"640",
    			"ServiceName":"TEZ"
    		}]
    	},
    	"PageNumber":1,
    	"PageSize":500,
    	"RequestId":"8CC97161-4A0C-4EDB-9799-F0A51C40B070",
    	"TotalCount":1,
    }
  • Error response examples
    JSON format
    {
    	"code":"RAM.Permission.NotAllow",
    	"message":"It is not allow to execute this operation,please use RAM to authorize!",
    	"requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
    	"successResponse":false
    }

Error codes

View error codes.