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
Back to Top

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
Back to Top

Examples

The following example shows how to use the job ID to view information about the operation being performed on the Oracle Java Cloud Service instance. The example uses cURL to submit a GET request on the REST resource.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.

cURL Command

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

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Tue, 19 Apr 2016 22:01:27 GMT
Transfer-Encoding: chunked
Content-Type: application/json

Example of Response Body

The following example is the response returned in JSON format for an SSH key operation. The response you get depends on the type of operation.

{
    "activityLogId":135,
    "serviceName":"ExampleInstance",
    "serviceType":"jaas",
    "identityDomain":"ExampleIdentityDomain",
    "serviceId":8,
    "jobId":8722,
    "startDate":"2016-04-19T22:00:44.598+0000",
    "endDate":"2016-04-19T22:08:30.655+0000",
    "status":"SUCCEED",
    "operationId":8,
    "operationType":"SSH_PUBLIC_KEY_RESET",
    "summaryMessage":"SSH_PUBLIC_KEY_RESET",
    "authDomain":"ExampleIdentityDomain",
    "authUser":"username",
    "initiatedBy":"USER",
    "messages":[
    {
        "activityDate":"2016-04-19T22:00:44.598+0000",
        "message":"Activity Submitted"
    },
    {
        "activityDate":"2016-04-19T22:00:45.139+0000",
        "message":"Activity Started"
    },
    {
        "activityDate":"2016-04-19T22:00:45.163+0000",
        "message":"Resetting user ssh public key, new ssh public key: ssh-rsa ZYZYBZ3NzaC1yc2EAAAABJQAAAQEAix3Pt+tXlziLKWLyfY2tQUfsuHNvuL9SVeIJSmyqevv4n4AKxZ1wkgXdQmaN7iV2VlTJTf\/rpNAwXGwnSQr7GyGZv4udkyKqyBummnAnVNMPirCBr8scQPCfGB2rjVmfwgNK6TVtAD1t+uDhVIHEf9Jb05v940Abt9\/u5MFkxxoldQy6rRxgky3ZYstU72NOpiwmptYL5CDu3aPljZsx\/raKQACsU0qi3sCzLD76tK4sp+8BTkGBQIIJxa1zqdFHQzQmr2tcf8D6E4sauMqCpXGzLoxgrLMPtHfwkDsAaOc2VPVKafqHgKssbEFRrUclJHy3z9loYV6RzPABQpEEee== rsa-key-20166666"
    },
    {
        "activityDate":"2016-04-19T22:04:05.792+0000",
        "message":"Stopped all Compute resources..."
    },
    {
        "activityDate":"2016-04-19T22:08:29.532+0000",
        "message":"Started all Compute resources..."
    },
    {
        "activityDate":"2016-04-19T22:08:30.633+0000",
        "message":"Successful in resetting the user ssh key as: ssh-rsa ZYZYBZ3NzaC1yc2EAAAABJQAAAQEAix3Pt+tXlziLKWLyfY2tQUfsuHNvuL9SVeIJSmyqevv4n4AKxZ1wkgXdQmaN7iV2VlTJTf\/rpNAwXGwnSQr7GyGZv4udkyKqyBummnAnVNMPirCBr8scQPCfGB2rjVmfwgNK6TVtAD1t+uDhVIHEf9Jb05v940Abt9\/u5MFkxxoldQy6rRxgky3ZYstU72NOpiwmptYL5CDu3aPljZsx\/raKQACsU0qi3sCzLD76tK4sp+8BTkGBQIIJxa1zqdFHQzQmr2tcf8D6E4sauMqCpXGzLoxgrLMPtHfwkDsAaOc2VPVKafqHgKssbEFRrUclJHy3z9loYV6RzPABQpEEee== rsa-key-20166666"
    },
    {
        "activityDate":"2016-04-19T22:08:30.655+0000",
        "message":"Activity Ended"
    }]
}
Back to Top