View the Status of an SSH Add Key Job
/paas/api/v1.1/activitylog/{identityDomainId}/job/{jobId}
Request
-
identityDomainId: string
The value depends on the type of Exadata Cloud at Customer account that is used to make the request:
For a Traditional Cloud Account, specify the
Identity Domain Name
that is associated with the service.For a Cloud Account with Identity Cloud Service, specify the
Identity Service Id
that is associated with the service, which is a character string beginning withidcs-
.
-
jobId: string
Job ID of the operation.
-
Authorization: string
Base64 encoding of the user name and password of the user making the request. For more information, see Security, Authentication and Authorization.
-
X-ID-TENANT-NAME: string
The value depends on the type of Exadata Cloud at Customer account that is used to make the request:
For a Traditional Cloud Account, specify the
Identity Domain Name
that is associated with the service.For a Cloud Account with Identity Cloud Service, specify the
Identity Service Id
that is associated with the service, which is a character string beginning withidcs-
.
For more information, see Security, Authentication and Authorization.
Response
- application/json
200 Response
object
Response Body
-
activityLogId(optional):
integer
ID of the activity log.
-
authDomain(optional):
string
Name of the identity domain associated with the request.
-
authUser(optional):
string
Name of the Oracle Cloud user that initiated the add operation.
-
endDate(optional):
string
Date and time the job ended.
-
identityDomain(optional):
string
Name of the identity domain associated with the request.
-
initiatedBy(optional):
string
The value
USER
. -
jobId(optional):
integer
Job ID returned in the
Location
header when the Add SSH Key request was made. -
messages(optional):
array messages Array
Title:
messages Array
Array of JSON objects, with one element for each message reported during the job. -
operationId(optional):
integer
ID of the operation.
-
operationType(optional):
string
The value
SSH_PUBLIC_KEY_RESET
. -
serviceId(optional):
integer
ID of the Exadata Cloud at Customer database deployment.
-
serviceName(optional):
string
Name of the Exadata Cloud at Customer database deployment.
-
serviceType(optional):
string
The value
dbaas
. -
startDate(optional):
string
Date and time the job started.
-
status(optional):
string
Status of the job. Valid statuses include
RUNNING
,SUCCEED
andFAILED
. -
summaryMessage(optional):
string
The value
SSH_PUBLIC_KEY_RESET
.
array
messages Array
-
Array of:
object messages Array Item
Title:
messages Array Item
object
messages Array Item
-
activityDate(optional):
string
Date and time the activity was logged.
-
message(optional):
string
Details of the activity.
Examples
The following example shows how to view the status of a job to add an SSH key to an Exadata Cloud at Customer instance by submitting a GET request on the REST endpoint using cURL.
In this example, the identity domain is usexample
, and the Oracle Cloud user name and password are serviceadmin
and Pa55_word
. The job identification number is 12240309
.
cURL Command
curl -i -X GET --cacert ~/cacert.pem -u serviceadmin:Pa55_word -H "X-ID-TENANT-NAME:usexample" https://dbaas.oraclecloud.com/paas/api/v1.1/activitylog/usexample/job/12240309
HTTP Status Code and Response Headers
HTTP/2.0 200 server: Oracle-Application-Server-11g strict-transport-security: max-age=31536000;includeSubDomains content-language: en access-control-allow-headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME access-control-allow-methods: GET, POST, DELETE, PUT, OPTIONS, HEAD x-oracle-dms-ecid: 005KCXAObxp6uHFpR0H7id00067c0003nq x-oracle-dms-ecid: 005KCXAObxp6uHFpR0H7id00067c0003nq access-control-allow-origin: * x-frame-options: DENY content-type: application/json vary: user-agent date: Wed, 31 May 2017 02:00:58 GMT content-length: 2333
Response Body
{ "activityLogId": 5895965, "serviceName": "db12c", "serviceType": "dbaas", "identityDomain": "usexample", "serviceId": 341496, "jobId": 12240309, "startDate": "2017-05-31T01:58:22.659+0000", "endDate": "2017-05-31T02:00:38.388+0000", "status": "SUCCEED", "operationId": 341496, "operationType": "SSH_PUBLIC_KEY_RESET", "summaryMessage": "SSH_PUBLIC_KEY_RESET", "authDomain": "usexample", "authUser": "serviceadmin", "initiatedBy": "USER", "messages": [{ "activityDate": "2017-05-31T01:58:22.659+0000", "message": "Activity Submitted" }, { "activityDate": "2017-05-31T01:58:22.712+0000", "message": "Activity Started" }, { "activityDate": "2017-05-31T01:58:22.746+0000", "message": "Resetting user ssh public key, new ssh public key: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAg6A0HG6VpE6OZuOoPzOh+vxA9\/rHnQFdSkQoGurVNi2RdgueHpZliVvOA2v6QO0YiomB3qBRUeIllcjFjyGKlVDbVIW3q\/dDl7OIapDSNUE+CM15+XFhh279\/zh7ko2Ze00hZJ3oeTDrZyapqxTmzvlHB8hYWfeq0Hg88dP+b7HDTj2kZ\/lFFyRARr+2Z42IXOW62VPaslo1PpBjkSyByreJuWRtXS6JNXWD1DIwD5Yfv4JMTecZOa9ENeDJ0mmX0qOeCcUqtThnePCBCemUkgOwQAAH3mQB2ZrGtXJqFYGWqck7JH\/WYiQj54+Y\/Mq40ziXZCMLgFMZTUmxjtJeAQ== rsa-key-20170531" }, { "activityDate": "2017-05-31T01:58:22.863+0000", "message": "Resetting SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T01:58:24.501+0000", "message": "Resetting SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T01:59:26.195+0000", "message": "Resetting SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T01:59:26.786+0000", "message": "Resetting SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T02:00:38.141+0000", "message": "Resetting SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T02:00:38.218+0000", "message": "Successfully reset SSH key on the VM(s)..." }, { "activityDate": "2017-05-31T02:00:38.362+0000", "message": "Successful in resetting the user ssh key as: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAg6A0HG6VpE6OZuOoPzOh+vxA9\/rHnQFdSkQoGurVNi2RdgueHpZliVvOA2v6QO0YiomB3qBRUeIllcjFjyGKlVDbVIW3q\/dDl7OIapDSNUE+CM15+XFhh279\/zh7ko2Ze00hZJ3oeTDrZyapqxTmzvlHB8hYWfeq0Hg88dP+b7HDTj2kZ\/lFFyRARr+2Z42IXOW62VPaslo1PpBjkSyByreJuWRtXS6JNXWD1DIwD5Yfv4JMTecZOa9ENeDJ0mmX0qOeCcUqtThnePCBCemUkgOwQAAH3mQB2ZrGtXJqFYGWqck7JH\/WYiQj54+Y\/Mq40ziXZCMLgFMZTUmxjtJeAQ== rsa-key-20170531" }, { "activityDate": "2017-05-31T02:00:38.379+0000", "message": "Activity Ended" }, { "activityDate": "2017-05-31T02:00:38.388+0000", "message": "Activity Ended" } ] }