You can call this operation to query the modification records of MongoDB instance parameters.

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
Action String Yes DescribeParameterModificationHistory

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

StartTime String Yes 2019-01-01T12:10Z

The beginning of the time range to query. The time is in the yyyy-MM-dd T HH:mm Z format.

End time String Yes 2019-01-02T12:10Z

The end of the time range that you want to query. The time is in the yyyy-MM-dd T HH:mm Z format.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

Note If you specify this parameter to the ID of a sharded cluster instance, you must also specify the NodeId parameter.
NodeId String No d-bpxxxxxxxx

The ID of the mongos or shard in the specified sharded cluster instance.

Note This parameter is only valid when you specify theDBInstanceIdparameter to the ID of a sharded cluster instance.
AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance.

Response parameters

Prameter Type Sample response Description
HistoricalParameters Array

A list of parameter modification records.

HistoricalParameter

A list of parameter modification records.

ModifyTime String 2019-03-12T07:58:24Z

The time when the parameter was modified. The time is in the yyyy-MM-dd T HH:mm:ss Z format.

NewParameterValue String 2,000

The parameter value after modification.

OldParameterValue String 1,000

The parameter value before modification.

ParameterName String operationProfiling.slowOpThresholdMs

The name of the modified parameter.

RequestId String B1BB6E0E-B4EF-4145-81FA-A07719860248

The ID of the request.

Examples

Sample requests


http(s)://mongodb.aliyuncs.com/? Action=DescribeParameterModificationHistory
&StartTime=2019-01-01T12:10Z
&EndTime=2019-01-02T12:10Z
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>

Sample success response

XML format

<DescribeParameterModificationHistoryResponse>
	  <HistoricalParameters>
		    <HistoricalParameter>
			      <OldParameterValue>100</OldParameterValue>
			      <ModifyTime>2019-03-12T07:58:24Z</ModifyTime>
			      <NewParameterValue>200</NewParameterValue>
			      <ParameterName>operationProfiling.slowOpThresholdMs</ParameterName>
		    </HistoricalParameter>
	  </HistoricalParameters>
	  <RequestId>B1BB6E0E-B4EF-4145-81FA-A07719860248</RequestId>
</DescribeParameterModificationHistoryResponse>

JSON format

{
	"HistoricalParameters":{
		"HistoricalParameter":[
			{
				"OldParameterValue":"100",
				"ModifyTime":"2019-03-12T07:58:24Z",
				"NewParameterValue":"200",
				"ParameterName":"operationProfiling.slowOpThresholdMs"
			}
		]
	},
	"RequestId":"B1BB6E0E-B4EF-4145-81FA-A07719860248"
}

Error codes.

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