Queries the execution status of automated maintenance jobs for a specified table, including the latest status of each maintenance type.
Usage notes
-
The
statusfield for each maintenance type in the response can have the following values:-
Disabled: The maintenance job is disabled. -
Not_Yet_Run: The maintenance job is enabled but has not run yet. -
Successful: The most recent maintenance job completed successfully. -
Failed: The most recent maintenance job failed.
-
-
The response also includes the execution time of the most recent job and the failure reason, if applicable.
Command format
ossutil tables-api get-table-maintenance-job-status --table-bucket-arn value --namespace value --name value [flags]
|
Parameter |
Type |
Description |
|
--name |
string |
The name of the table. Required. |
|
--namespace |
string |
The namespace to which the table belongs. Required. |
|
--table-bucket-arn |
string |
The ARN of the table bucket, in the format |
-
The get-table-maintenance-job-status command corresponds to the GetTableMaintenanceJobStatus API operation. For API parameter details, see GetTableMaintenanceJobStatus.
-
For information about supported global options, see ossutil global options.
Usage examples
Queries the maintenance job status for the my_table table in the my_namespace namespace.
ossutil tables-api get-table-maintenance-job-status --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket --namespace my_namespace --name my_table