Retrieve an Activity Stream
get
/api/v2/activity_stream/{id}/
Make GET request to this resource to retrieve a single activity stream record containing the following fields:
id
: Database ID for this activity stream. (integer)type
: Data type for this activity stream. (choice)url
: URL for this activity stream. (string)related
: Data structure with URLs of related resources. (object)summary_fields
: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)timestamp
: (datetime)operation
: The action taken with respect to the given object(s). (choice)create
: Entity Createdupdate
: Entity Updateddelete
: Entity Deletedassociate
: Entity Associated with another Entitydisassociate
: Entity was Disassociated with another Entity
changes
: A summary of the new and changed values when an object is created, updated, or deleted (json)object1
: For create, update, and delete events this is the object type that was affected. For associate and disassociate events this is the object type associated or disassociated with object2. (string)object2
: Unpopulated for create, update, and delete events. For associate and disassociate events this is the object type that object1 is being associated with. (string)object_association
: When present, shows the field name of the role or relationship that changed. (field)action_node
: The cluster node the activity took place on. (string)object_type
: When present, shows the model on which the role or relationship was defined. (field)
Request
Supported Media Types
- application/json
Path Parameters
Query Parameters
-
search: string
A search term.
Response
Supported Media Types
- application/json
200 Response
Example Response (application/json)
{
"action_node":"awx",
"changes":{
"action":"associate",
"object1":"user",
"object1_pk":"2",
"object2":"inventory",
"object2_pk":"20",
"relationship":"awx.main.models.rbac.Role_members"
},
"id":"8",
"object1":"user",
"object2":"inventory",
"object_association":"role",
"object_type":"inventory",
"operation":"associate",
"related":{
"inventory":[
"/api/v2/inventories/1/"
],
"role":[
"/api/v2/roles/20/"
],
"user":[
"/api/v2/users/2/"
]
},
"summary_fields":{
"inventory":[
{
"description":"",
"has_active_failures":false,
"has_inventory_sources":false,
"hosts_with_active_failures":"0",
"id":"1",
"inventory_sources_with_failures":"0",
"kind":"",
"name":"inv1",
"organization_id":"1",
"total_groups":"0",
"total_hosts":"0",
"total_inventory_sources":"0"
}
],
"role":[
{
"id":"20",
"role_field":"read_role"
}
],
"user":[
{
"first_name":"",
"id":"2",
"last_name":"",
"username":"test"
}
]
},
"timestamp":"2018-02-01T08:00:00.000000Z",
"type":"activity_stream",
"url":"/api/v2/activity_stream/8/"
}