psm dbcs activities

List the activities (operations) performed on an Oracle Database Classic Cloud Service instance.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm dbcs activities 
    -s|--service-name instance-name 
    [-f|--from-start-date from-timestamp] 
    [-t|--to-start-date to-timestamp ]
    [-a|--status status-list ]
    [-o|--operation-type operation-list ]
    [-l|--limit-row-count row-count ]
    [-e|--offset row-number ]
    [-d|--order-by order-list ]
    [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Classic Cloud Service instance.

-f|--from-start-date from-timestamp

(Optional) Includes activities after this timestamp. Use with ––to-start-date to specify a range. Supported timestamp formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ, yyyy-MM-dd HH:mm:ss, and yyyy-MM-dd.

-t|--to-start-date to-timestamp

(Optional) Includes activities before this timestamp. Use with ––from-start-date to specify a range. Supported timestamp formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ, yyyy-MM-dd HH:mm:ss, and yyyy-MM-dd.

-a|--status status-list

(Optional) A space-separated list of activity statuses: NEW, RUNNING, SUCCEED, FAILED, or WARN.

-o|--operation-type operation-list

(Optional) A space-separated list of operation types.

-l|--limit-row-count row-count

(Optional) Maximum number of activities to display. Default is 10.

-e|--offset row-number

(Optional) Starts the list of activities at this row. Use with ––limit-row-count to get a specific subset of activities. For example, if ––limit-row-count is 10, use an ––offset of 11 to get the second set of 10 activities.

-d|--order-by order-list

(Optional) A space-separated list of ordering (sorting) specifications, each having the format field-name:asc|desc.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Examples

The following example lists the activities performed on the db12c-eeep Database Classic Cloud Service instance.

$ psm dbcs activities --service-name db12c-eeep