• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Heat
  5. Stack Events
  6. List Stack Events

List Stack Events

Function Description

This interface is used to query the stack even list.

Interface Format

Method

URI

Description

GET

/v1/{tenant_id}/stacks/{stack_name}/{stack_id}/events

Searches for the stack event.

Request Parameter

N/A

Response Parameter

Parameter

Type

Mandatory

Description

events

List(dict)

Yes

Specifies a resource event.

Event structure information

Parameter

Type

Mandatory

Description

resource_name

List(dict)

Yes

Specifies a resource event.

event_time

String

Yes

Specifies the time when an event occurs.

links

List(dict)

Yes

Specifies a list of URLs for the event.

logical_resource_id

String

Yes

Specifies the logical resource ID.

resource_status_reason

String

Yes

Specifies the resource operation reason.

resource_status

String

Yes

Specifies the resource status.

physical_resource_id

String

Yes

Specifies the resource physical ID.

id

Int

Yes

Specifies the even ID.

Request Example

GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/events

Response Example

{
      "resource_name": "instacne_port",
      "event_time": "2014-01-26T17:21:35Z",
      "links":       [
                  {
            "href": "http://172.25.150.29:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/instacne_port/events/1302",
            "rel": "self"
         },
                  {
            "href": "http://172.25.150.29:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/instacne_port",
            "rel": "resource"
         },
                  {
            "href": "http://172.25.150.29:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
            "rel": "stack"
         }
      ],
      "logical_resource_id": "instacne_port",
      "resource_status_reason": "state changed",
      "resource_status": "CREATE_IN_PROGRESS",
      "physical_resource_id": null,
      "id": "1302"
   }
]}

Returned Code

See section Return Code Processing.