Adds a new API extension for accessing the recorded actions and events on an instance. Usage is documented with api samples. Additionally it modified the db api to retrieve actions by request_id since the api does not return the db id. This extension is the first consumer of that method so there's no issue of changing behaviour elsewhere. Blueprint instance-actions DocImpact Change-Id: I74109586cc762a7f51d2b114896cf071ee0671cb
		
			
				
	
	
		
			22 lines
		
	
	
		
			707 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			707 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "instanceActions": [
 | 
						|
        {
 | 
						|
            "action": "resize",
 | 
						|
            "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
 | 
						|
            "message": "",
 | 
						|
            "project_id": "842",
 | 
						|
            "request_id": "req-25517360-b757-47d3-be45-0e8d2a01b36a",
 | 
						|
            "start_time": "2012-12-05 01:00:00.000000",
 | 
						|
            "user_id": "789"
 | 
						|
        },
 | 
						|
        {
 | 
						|
            "action": "reboot",
 | 
						|
            "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
 | 
						|
            "message": "",
 | 
						|
            "project_id": "147",
 | 
						|
            "request_id": "req-3293a3f1-b44c-4609-b8d2-d81b105636b8",
 | 
						|
            "start_time": "2012-12-05 00:00:00.000000",
 | 
						|
            "user_id": "789"
 | 
						|
        }
 | 
						|
    ]
 | 
						|
} |