View the Status of an SSH Add Key Job

get

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

Returns information about the job to add an SSH Key.

Request

Path Parameters
  • The value depends on the type of Exadata Cloud Service 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 has the format idcs-letters-and-numbers.

  • Job ID of the operation.
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 : Response Body
Type: object
Title: Response Body
Show Source
Nested Schema : messages Array
Type: array
Title: messages Array
Array of JSON objects, with one element for each message reported during the job.
Show Source
Nested Schema : messages Array Item
Type: object
Title: messages Array Item
Show Source
Back to Top

Examples

The following example shows how to view the status of a job to add an SSH key to an Exadata Cloud Service 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"
		}
	]
}
Back to Top