Retrieve Details of an Audit Event
/auditevent/{name}
Required Role: To complete this task, you must have the Compute_Operations
role. If this role isn't assigned to you or you're not sure, then ask your system administrator to ensure that the role is assigned to you in Oracle Cloud My Services. See Modifying User Roles in Managing and Monitoring Oracle Cloud.
Request
- application/oracle-compute-v3+json
-
name: string
The three-part name of the object (
/Compute-identity_domain/user/object
).
-
Cookie: string
The Cookie: header must be included with every request to the service. It must be set to the value of the set-cookie header in the response received to the POST /authenticate/ call.
Response
- application/oracle-compute-v3+json
200 Response
-
set-cookie: string
The cookie value is returned if the session is extended
object
-
actor(optional):
string
Reference to the acting class
-
context_id(optional):
string
Context ID from ND
-
initiator(optional):
string
Agent or user causing the action to take place
-
name(optional):
string
name
-
node_ip(optional):
string
IP of the machine taking the action
-
node_uuid(optional):
string
UUID of the machine taking the action
-
pid(optional):
integer
Process identifier of the service taking the action
-
reason(optional):
string
A short token describing the general reason for the action
-
service(optional):
string
Name of the acting service
-
tags(optional):
array tags
General tags
-
target_name(optional):
string
Unique identifier of the object acted upon
-
target_type(optional):
string
Type of object acted upon
-
timestamp(optional):
string
UTC timestamp
-
uri(optional):
string
-
verb(optional):
string
The general class of action performed
-
version(optional):
string
The version the service was at when performing the action
Examples
cURL Command
The following example shows how to retrieve details of an Audit Event in the /Compute-acme/jack.jones@example.com/{name}
, by submitting a GET
request on the REST resource using cURL, see Use cURL.
Enter the command on a single line. Line breaks are used in this example for readability.
curl -X GET -H "Cookie: $COMPUTE_COOKIE" -H "Accept: application/oracle-compute-v3+json" https://api-z999.compute.us0.oraclecloud.com/auditevent/Compute-acme/jack.jones@example.com/{name}
-
COMPUTE_COOKIE
is the name of the variable in which you stored the authentication cookie earlier. For information about retrieving the authentication cookie and storing it in a variable, see Authentication. -
api-z999.compute.us0.oraclecloud.com
is an example REST endpoint URL. Change this value to the REST endpoint URL of your Compute Classic site. For information about finding out REST endpoint URL for your site, see Send Requests.
Example of Response Body
The following example shows the response body in JSON format.
{ "result": [] }