Get table maintenance job status

更新时间:
复制 MD 格式

Queries the execution status of automated maintenance jobs for a specified table, including the latest status of each maintenance type.

Usage notes

  • The status field 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 acs:osstables:{region}:{uid}:bucket/{bucket-name}. Required.

Note

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