This patch adds a new microversion to
``GET /servers/{server_id}/os-instance-actions/{req_id}`` API to
include the ``host`` field for admin and an ``hostId`` for all users
by default. And the display of newly added ``host`` field will be
controlled by the same policy as the ``traceback`` field.
The newly added fields can be used to determine on which host a
given action event occurred.
Part of blueprint: add-host-to-instance-action-events
Change-Id: I2f8b4a12a088b9ed96b428eafde2e0c478fb1db5
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			755 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			755 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "instanceAction": {
 | 
						|
        "action": "stop",
 | 
						|
        "events": [
 | 
						|
            {
 | 
						|
                "event": "compute_stop_instance",
 | 
						|
                "finish_time": "2018-04-25T01:26:34.784165",
 | 
						|
                "hostId": "2091634baaccdc4c5a1d57069c833e402921df696b7f970791b12ec6",
 | 
						|
                "result": "Success",
 | 
						|
                "start_time": "2018-04-25T01:26:34.612020"
 | 
						|
            }
 | 
						|
        ],
 | 
						|
        "instance_uuid": "79edaa44-ad4f-4af7-b994-154518c2b927",
 | 
						|
        "message": null,
 | 
						|
        "project_id": "6f70656e737461636b20342065766572",
 | 
						|
        "request_id": "req-8eb28d4a-db6c-4337-bab8-ce154e9c620e",
 | 
						|
        "start_time": "2018-04-25T01:26:34.388280",
 | 
						|
        "updated_at": "2018-04-25T01:26:34.784165",
 | 
						|
        "user_id": "fake"
 | 
						|
    }
 | 
						|
} |