psm caching operation-status

This command displays the status of an Oracle Application Container Cloud Service cache operation.

When you run a command-line operation, a job ID is included in the response. You can use this job ID to check the status of the operation. For example, you can display the status of a psm caching create-service operation to verify that an application cache has been created successfully.

Syntax

psm caching operation-status 
-j|--job-id ID 
[-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-j, --job-id Job ID of the operation.

-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 operation-status -j 23770
{
    "activityLogId":6023,
    "authDomain":"apaasuser",
    "authUser":"weblogic",
    "endDate":"2017-03-30T21:30:00.512+0000",
    "identityDomain":"apaasuser",
    "initiatedBy":"USER",
    "jobId":23770,
    "messages":[
        {
            "activityDate":"2017-03-30T21:27:34.554+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2017-03-30T21:27:34.599+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2017-03-30T21:27:34.615+0000",
            "message":"Started operation to create service [MyCacheService] in identity domain [apaasuser]."
        },
        {
            "activityDate":"2017-03-30T21:27:57.728+0000",
            "message":"Initialized application creation..."
        },
        {
            "activityDate":"2017-03-30T21:28:00.522+0000",
            "message":"Acquired resources for instance(2G) mycacheservice-cach-1..."
        },
        {
            "activityDate":"2017-03-30T21:29:10.926+0000",
            "message":"Deployed application(v1) for instance(2G) mycacheservice-cach-1..."
        },
        {
            "activityDate":"2017-03-30T21:29:40.000+0000",
            "message":"Successfully created application..."
        },
        {
            "activityDate":"2017-03-30T21:30:00.501+0000",
            "message":"Activity Ended"
        },
        {
            "activityDate":"2017-03-30T21:30:00.512+0000",
            "message":"Activity Ended"
        }
    ],
    "operationId":11,
    "operationType":"CREATE_SERVICE",
    "serviceId":11,
    "serviceName":"MyCacheService",
    "serviceType":"caching",
    "startDate":"2017-03-30T21:27:34.554+0000",
    "status":"SUCCEED",
    "summaryMessage":"CREATE_SERVICE"
}