You can call this operation to query the execution history of the nodetool command by page.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeNodeToolExecutionHistories |
The operation that you want to perform. Set the value to DescribeNodeToolExecutionHistories. |
ClusterId | String | Yes | cds-3872l6py****n9ul |
The ID of the ApsaraDB for Cassandra cluster. |
PageNumber | Integer | No | 1 |
The number of the page to return. Valid values: any positive integer. Default value: 1. |
PageSize | Integer | No | 10 |
The number of the entries to return on each page. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Histories | Array |
The execution history of the nodetool command. |
|
History | |||
Arguments | String | 10093 |
The parameters that follow the nodetool command. |
Command | String | settimeout misc |
The command that follows nodetool. |
CreateTime | Long | 1576725956000 |
The time when the cluster was created. |
DataCenterId | String | cn-shanghai-f |
The ID of the data center in the cluster. |
ErrorMessage | String | See \"nodetool help\" or \"nodetool help |
The detailed error message that appears if an error occurs. |
IsEnded | Boolean | true |
Indicates whether the nodetool execution is complete. Valid values: true and false. |
JobId | String | job-C3zcrKtZ****qapO |
The ID of the job that was executed. job-xxxx |
ModifyTime | Long | 1576725689000 |
The modification time. |
Nodes | String | core-1,core-2 |
The nodes where jobs are executed. |
RegionId | String | cn-shanghai |
The ID of the region. |
PageNumber | Integer | 1 |
The page number of the returned page. Valid values: any positive integer. Default value: 1. |
PageSize | Integer | 10 |
The number of entries returned per page. |
RequestId | String | FDC6EF03-8B7D-470D-AB81-BD9C9713A9E3 |
The ID of the request. |
TotalCount | Long | 2 |
The total number of entries returned. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeNodeToolExecutionHistories
&ClusterId=cds-3872l6py****n9ul
&<Common request parameters>
Sample success responses
XML
format
<DescribeNodeToolExecutionHistoriesResponse>
<TotalCount>2</TotalCount>
<PageSize>10</PageSize>
<RequestId>FDC6EF03-8B7D-470D-AB81-BD9C9713A9E3</RequestId>
<PageNumber>1</PageNumber>
<Histories>
<History>
<ModifyTime>1576725953000</ModifyTime>
<DataCenterId>cn-shanghai-f</DataCenterId>
<Command>settimeout misc</Command>
<CreateTime>1576725956000</CreateTime>
<Arguments>10093</Arguments>
<RegionId>cn-shanghai</RegionId>
<JobId>job-0XDBTwhOxelqFikQ</JobId>
<Nodes>core-1,core-2</Nodes>
</History>
<History>
<ModifyTime>1576725689000</ModifyTime>
<DataCenterId>cn-shanghai-f</DataCenterId>
<Command>settimeout misc</Command>
<CreateTime>1576725692000</CreateTime>
<Arguments>10039</Arguments>
<RegionId>cn-shanghai</RegionId>
<JobId>job-C3zcrKtZijSyqapO</JobId>
<Nodes>core-1,core-2</Nodes>
</History>
</Histories>
</DescribeNodeToolExecutionHistoriesResponse>
JSON
format
{
"TotalCount": 2,
"PageSize": 10,
"RequestId": "FDC6EF03-8B7D-470D-AB81-BD9C9713A9E3",
"PageNumber": 1,
"Histories": {
"History": [
{
"ModifyTime": "1576725953000",
"DataCenterId": "cn-shanghai-f",
"Command": "settimeout misc",
"CreateTime": "1576725956000",
"Arguments": "10093",
"RegionId": "cn-shanghai",
"JobId": "job-0XDBTwhO****FikQ",
"IsEnded": true,
"Nodes": "core-1,core-2"
},
{
"ModifyTime": "1576725689000",
"DataCenterId": "cn-shanghai-f",
"Command": "settimeout misc",
"CreateTime": "1576725692000",
"Arguments": "10039",
"RegionId": "cn-shanghai",
"JobId": "job-C3zcrKtZijSyqapO",
"IsEnded": true,
"Nodes": "core-1,core-2"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.