psm jcs activities

Use this command to list the activities (operations) performed on an Oracle Java Cloud Service instance.

Syntax

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

psm jcs 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

All parameters are required unless otherwise specified.

Parameter Description

-s|--service-name instance-name

Specifies the name of the Oracle Java Cloud Service instance.

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

(Optional) Includes activities after this timestamp. Use with ––toStartDate 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 ––fromStartDate 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 ––limitRowCount to get a specific subset of activities. For example, if ––limitRowCount 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.

Example

$ psm jcs activities --serviceName jcs123-eeep