• Native OpenStack API

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

List Resource Events

Function Description

This interface is used to query the stack resource event list.

Interface Format

Method

URI

Description

GET

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

Queries the stack resource 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/resources/my_instance/events

Response Example

{"events": [
      {
      "resource_name": "my_instance",
      "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/my_instance/events/1304",
            "rel": "self"
         }
]}

Error Code

See section Return Code Processing.