View the Status of an Operation by Job Id

get

/paas/api/v1.1/activitylog/{identityDomainId}/job/{jobId}

Returns information about an operation, including activity messages, by a job identifier.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : jobid-response
Type: object
Show Source
Nested Schema : messages
Type: array
Groups activity messages.
Show Source
Nested Schema : job-messages
Type: object
Show Source

Examples

The following example shows how to view job status information for a MySQL Cloud Service instance using cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.

cURL Command

This example checks the status of job id 5150771. Most POST/PUT actions return unique job id's in the response body as either job_id or jobId.

curl -i -X GET \
 -u "username:password" \
 -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
 -H "Accept: application/json" \
 https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/5150771

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Server: Oracle-Application-Server-11g
X-ORACLE-DMS-ECID: 00ni2Rpm304ql0bmk0yg0Fvd00B13Whn55
X-ORACLE-DMS-ECID: 00ni2Rpm304ql0bmk0yg0Fvd00B13Whn55
X-Frame-Options: DENY
Content-Language: en
Content-Type: application/json
Vary: user-agent
Date: Tue, 25 Oct 2016 23:44:29 GMT
Content-Length: 2340
Connection: keep-alive

Example of Response Body

This example response body is for job id 5150771, a job that successfully created a MySQLCS instance named MyTestInstance in about 7 minutes.

{
    "activityLogId": 4021124,
    "serviceName": "MyTestInstance",
    "serviceType": "mysqlcs",
    "identityDomain": "ExampleIdentityDomain",
    "serviceId": 192737,
    "jobId": 5150771,
    "startDate": "2016-10-25T19:44:13.321+0000",
    "endDate": "2016-10-25T19:51:29.812+0000",
    "status": "SUCCEED",
    "operationId": 192737,
    "operationType": "CREATE_SERVICE",
    "summaryMessage": "CREATE_SERVICE",
    "authDomain": "ExampleIdentityDomain",
    "authUser": "username",
    "initiatedBy": "USER",
    "messages": [
        {
            "activityDate": "2016-10-25T19:44:13.321+0000",
            "message": "Activity Submitted"
        },
        {
            "activityDate": "2016-10-25T19:44:13.346+0000",
            "message": "Activity Started"
        },
        {
            "activityDate": "2016-10-25T19:44:13.360+0000",
            "message": "Started operation to create service [MyTestInstance] in identity domain [ExampleIdentityDomain]."
        },
        {
            "activityDate": "2016-10-25T19:44:13.443+0000",
            "message": "Creating service [MyTestInstance] resources [mytestinstance-mysql-1]."
        },
        {
            "activityDate": "2016-10-25T19:49:42.427+0000",
            "message": "Completed creating service [MyTestInstance] in domain [ExampleIdentityDomain]."
        },
        {
            "activityDate": "2016-10-25T19:49:43.658+0000",
            "message": "Started operation to establish security on VMs for component [mysql]."
        },
        {
            "activityDate": "2016-10-25T19:49:43.658+0000",
            "message": "Completed operation to establish security on VMs for component [mysql]"
        },
        {
            "activityDate": "2016-10-25T19:49:43.923+0000",
            "message": "Started operation to check provisioning status on the VMs for [mysql]"
        },
        {
            "activityDate": "2016-10-25T19:50:46.901+0000",
            "message": "Provisioning Succeeded on hosts: mytestinstance-mysql-1"
        },
        {
            "activityDate": "2016-10-25T19:50:47.939+0000",
            "message": "Provisioning of [mysql] succeeded."
        },
        {
            "activityDate": "2016-10-25T19:50:47.939+0000",
            "message": "Provisioning of all components completed."
        },
        {
            "activityDate": "2016-10-25T19:50:48.036+0000",
            "message": "Started service reachability check operation for [mysql]."
        },
        {
            "activityDate": "2016-10-25T19:51:09.308+0000",
            "message": "Successfully validated that mytestinstance-mysql-1 returned a status of 200 ;  "
        },
        {
            "activityDate": "2016-10-25T19:51:09.308+0000",
            "message": "Successfully completed service reachability check for [mysql]"
        },
        {
            "activityDate": "2016-10-25T19:51:09.434+0000",
            "message": "Service reachability check of all components completed."
        },
        {
            "activityDate": "2016-10-25T19:51:09.434+0000",
            "message": "Service reachability check of [mysql] succeeded."
        },
        {
            "activityDate": "2016-10-25T19:51:29.812+0000",
            "message": "Activity Ended"
        }
    ]
}