psm caching activities

This command displays the activities of an Oracle Application Container Cloud Service application cache.

Syntax

The syntax of this command appears on multiple lines for clarity. When you use this command, it must be on one line only.

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

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s, ––service-name Name of the cache.
-f, ––from-start-date (Optional) Includes activities after this timestamp. Use with ––to-start-date to specify a range. Supported date formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ, yyyy-MM-dd HH:mm:ss, and yyyy-MM-dd.
-t, ––to-start-date (Optional) Includes activities before this timestamp. Use with ––from-start-date to specify a range. Supported date formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ, yyyy-MM-dd HH:mm:ss, and yyyy-MM-dd.
-a, ––status (Optional) A space-separated list of activity statuses: NEW, RUNNING, SUCCEED, FAILED, or WARN.
-o, ––operation-type (Optional) A space-separated list of operation types.
-l, ––limit-row-count (Optional) Maximum number of activities to display. Default is 10.
-e, ––offset (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 (Optional) Orders activities by the specified field in ascending (asc) or descending (desc) order.

-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 caching activities -s TestCache
{
    "activityLogs":[
        {
            "activityLogId":6005,
            "authDomain":"apaasuser",
            "authUser":"weblogic",
            "endDate":"2017-03-13T19:23:24.619+0000",
            "identityDomain":"apaasuser",
            "initiatedBy":"USER",
            "jobId":16339,
            "messages":[
                {
                    "activityDate":"2017-03-13T18:49:03.855+0000",
                    "message":"Activity Submitted"
                },
                {
                    "activityDate":"2017-03-13T18:49:03.894+0000",
                    "message":"Activity Started"
                },
                {
                    "activityDate":"2017-03-13T18:49:03.916+0000",
                    "message":"Started operation to create service [TestCache] in identity domain [apaasuser]."
                },
                {
                    "activityDate":"2017-03-13T18:49:25.977+0000",
                    "message":"Initialized application creation..."
                },
                {
                    "activityDate":"2017-03-13T19:19:59.184+0000",
                    "message":"Acquired resources for instance(2G) testcache-cach-1..."
                },
                {
                    "activityDate":"2017-03-13T19:22:24.817+0000",
                    "message":"Deployed application(v1) for instance(2G) testcache-cach-1..."
                },
                {
                    "activityDate":"2017-03-13T19:22:56.044+0000",
                    "message":"Successfully created application..."
                },
                {
                    "activityDate":"2017-03-13T19:23:24.607+0000",
                    "message":"Activity Ended"
                },
                {
                    "activityDate":"2017-03-13T19:23:24.619+0000",
                    "message":"Activity Ended"
                }
            ],
            "operationId":3,
            "operationType":"CREATE_SERVICE",
            "serviceId":3,
            "serviceName":"TestCache",
            "serviceType":"caching",
            "startDate":"2017-03-13T18:49:03.855+0000",
            "status":"SUCCEED",
            "summaryMessage":"CREATE_SERVICE"
        },
        {
            "activityLogId":6004,
            "authDomain":"apaasuser",
            "authUser":"weblogic",
            "endDate":"2017-03-13T13:28:29.343+0000",
            "identityDomain":"apaasuser",
            "initiatedBy":"USER",
            "jobId":16261,
            "messages":[
                {
                    "activityDate":"2017-03-13T13:27:02.272+0000",
                    "message":"Activity Submitted"
                },
                {
                    "activityDate":"2017-03-13T13:27:02.327+0000",
                    "message":"Activity Started"
                },
                {
                    "activityDate":"2017-03-13T13:27:02.347+0000",
                    "message":"Started operation to delete service [TestCache] in domain [apaasuser]."
                },
                {
                    "activityDate":"2017-03-13T13:27:02.448+0000",
                    "message":"Successfully remove the service provisioned."
                },
                {
                    "activityDate":"2017-03-13T13:27:57.369+0000",
                    "message":"Initialized application delete..."
                },
                {
                    "activityDate":"2017-03-13T13:28:08.854+0000",
                    "message":"Undeployed application(v1) for instance(2G) testcache-cach-1..."
                },
                {
                    "activityDate":"2017-03-13T13:28:10.971+0000",
                    "message":"Undeployed application instances..."
                },
                {
                    "activityDate":"2017-03-13T13:28:27.402+0000",
                    "message":"Successfully deleted application..."
                },
                {
                    "activityDate":"2017-03-13T13:28:29.318+0000",
                    "message":"Completed deletion of service [TestCache] in domain [apaasuser]."
                },
                {
                    "activityDate":"2017-03-13T13:28:29.327+0000",
                    "message":"Activity Ended"
                },
                {
                    "activityDate":"2017-03-13T13:28:29.343+0000",
                    "message":"Activity Ended"
                }
            ],
            "operationId":2,
            "operationType":"DELETE_SERVICE",
            "serviceId":2,
            "serviceName":"TestCache",
            "serviceType":"caching",
            "startDate":"2017-03-13T13:27:02.272+0000",
            "status":"SUCCEED",
            "summaryMessage":"DELETE_SERVICE"
        },
        {
            "activityLogId":6003,
            "authDomain":"apaasuser",
            "authUser":"weblogic",
            "endDate":"2017-03-10T21:08:56.554+0000",
            "identityDomain":"apaasuser",
            "initiatedBy":"USER",
            "jobId":13338,
            "messages":[
                {
                    "activityDate":"2017-03-10T20:36:18.653+0000",
                    "message":"Activity Submitted"
                },
                {
                    "activityDate":"2017-03-10T20:36:18.832+0000",
                    "message":"Activity Started"
                },
                {
                    "activityDate":"2017-03-10T20:36:18.873+0000",
                    "message":"Started operation to create service [TestCache] in identity domain [apaasuser]."
                },
                {
                    "activityDate":"2017-03-10T20:36:43.623+0000",
                    "message":"Initialized application creation..."
                },
                {
                    "activityDate":"2017-03-10T21:02:08.251+0000",
                    "message":"Acquired resources for instance(2G) testcache-cach-1..."
                },
                {
                    "activityDate":"2017-03-10T21:08:09.405+0000",
                    "message":"Deployed application(v1) for instance(2G) testcache-cach-1..."
                },
                {
                    "activityDate":"2017-03-10T21:08:39.754+0000",
                    "message":"Successfully created application..."
                },
                {
                    "activityDate":"2017-03-10T21:08:56.539+0000",
                    "message":"Activity Ended"
                },
                {
                    "activityDate":"2017-03-10T21:08:56.554+0000",
                    "message":"Activity Ended"
                }
            ],
            "operationId":2,
            "operationType":"CREATE_SERVICE",
            "serviceId":2,
            "serviceName":"TestCache",
            "serviceType":"caching",
            "startDate":"2017-03-10T20:36:18.653+0000",
            "status":"SUCCEED",
            "summaryMessage":"CREATE_SERVICE"
        }
    ],
    "totalCount":3
}

More Information

Exploring the Cache Service Overview Page in Using Caches in Oracle Application Container Cloud Service