• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Heat
  5. Stack Resources
  6. Show Resource Data

Show Resource Data

Function Description

This interface is used to query resources of a stack.

Interface Format

Method

URI

Description

GET

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

Queries resources of a specified stack.

Request Parameter

N/A

Response Parameter

Parameter

Type

Description

resource_name

String

Specifies the resource name.

links

String

Specifies the resource URI.

logical_resource_id

String

Specifies the logical resource ID.

physical_resource_id

String

Specifies the physical resource ID.

resource_type

String

Specifies the resource type.

resource_status

String

Specifies the resource status.

resource_status_reason

String

Specifies the resource operation reason.

updated_time

String

Specifies the time when the resource was updated.

required_by

List(str)

Specifies the resource dependency.

Request Example

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

Response Example

{"resource": {
   "resource_name": "my_instance",
   "description": "",
   "links":    [
            {
         "href": "http://172.25.150.29:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/my_instance",
         "rel": "self"
      },
            {
         "href": "http://172.25.150.29:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
         "rel": "stack"
      }
   ],
   "logical_resource_id": "my_instance",
   "resource_status": "RESUME_COMPLETE",
   "updated_time": "2014-01-27T16:28:06Z",
   "required_by": [],
   "resource_status_reason": "state changed",
   "physical_resource_id": "e722ad16-ff09-4622-aa5c-0466ae4ef8d8",
   "resource_type": "OS::Nova::Server"
}}

Returned Code

See section Return Code Processing.