View a Stack Activity Log
get
/paas/api/v1.1/activitylog/{identityDomainId}/stack/{stackName}
Retrieve the activity log for a specific cloud stack. The activity log is a list of the jobs performed for this cloud stack.
Request
Path Parameters
-
identityDomainId: string
Name of the Oracle Cloud identity domain
-
stackName: string
Name of a cloud stack whose activity log you want to view
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : viewstackactivitylog-response
Type:
object
The response body contains the activity log of a stack. The activity log is a list of the jobs performed for this cloud stack.
Show Source
-
activityLogs(optional):
object viewstackjobactivitylog-response
The response body contains information about a specific job in Cloud Stack. A job includes a list of log messages.
Nested Schema : viewstackjobactivitylog-response
Type:
object
The response body contains information about a specific job in Cloud Stack. A job includes a list of log messages.
Show Source
-
activityLogId(optional):
string
ID of the activity log that this job belongs to
-
authDomain(optional):
string
Name of the Oracle Cloud identity domain
-
authUser(optional):
string
Name of the user who initiated the operation
-
endDate(optional):
string
End date and time of the operation
-
identityDomain(optional):
string
Name of the Oracle Cloud identity domain
-
initiatedBy(optional):
string
Indicates whether this operation was initiated by a user or the system
-
jobId(optional):
string
ID of the job
-
messages(optional):
array messages
-
operationId(optional):
string
ID for the operation (the cloud stack ID)
-
operationType(optional):
string
Type of operation
-
serviceId(optional):
string
ID for the cloud stack
-
serviceName(optional):
string
Name of the cloud stack
-
serviceType(optional):
string
Type of service (cloudstack)
-
startDate(optional):
string
Start date and time of the operation
-
status(optional):
string
Status of the operation
-
summaryMessage(optional):
string
Summary of the operation
Nested Schema : messages
Type:
Show Source
array
-
Array of:
object viewactivitymessage-response
The response body contains information about a message in the activity log.
Nested Schema : viewactivitymessage-response
Type:
object
The response body contains information about a message in the activity log.
Show Source
-
activityDate(optional):
string
Date and time of the message
-
message(optional):
string
Message text
500 Response
Server Error. Returned if a server error has occurred.
Examples
The following example shows how to view the activity log for a cloud stack in Oracle Cloud Stack by submitting a GET request to the activity log endpoint.
cURL Command
curl -i -X GET \ -u yourUsername:yourPassword \ -H "X-ID-TENANT-NAME:MyIdentityDomain" \ https://psm.us.oraclecloud.com/paas/api/v1.1/activitylog/MyIdentityDomain/stack/MyStack
Note: This example uses the URL prefix for the United States. For information about the URL prefixes for other regions of the world, see Send Requests.
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Thu, 25 Aug 2016 18:50:14 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following shows an example of the response body in JSON format. The activity log for this cloud stack consists of a single job. The job includes log messages related to creation of this cloud stack.
{
"activityLogs": [
{
"activityLogId":36004,
"serviceName":"MyStack",
"serviceType":"cloudstack",
"identityDomain":"MyIdentityDomain",
"serviceId":1701,
"jobId":80045,
"startDate":"2016-07-25T22:51:16.143+0000",
"status":"NEW",
"operationId":1701,
"operationType":"CREATE_SERVICE",
"summaryMessage":"CREATE_SERVICE",
"authDomain":"MyIdentityDomain",
"authUser":"yourUsername",
"initiatedBy":"USER",
"messages": [
{
"activityDate":"2016-07-25T22:51:16.143+0000",
"message":"Stack provisioning request accepted"
},
{
"activityDate":"2016-07-25T22:51:16.147+0000",
"message":"Initializing stack MyStack"
},
{
"activityDate":"2016-07-25T22:51:16.175+0000",
"message":"Preparing to create service MyStack"
},
{
"activityDate":"2016-07-25T22:52:51.217+0000",
"message":"Successfully created ACCS Service MyStack-App"
},
{
"activityDate":"2016-07-25T22:52:51.714+0000",
"message":"Completed configuring stack MyStack"
}
]
}
]
}