beautypg.com

3 json structure of message received from the scmb, Sample queues – HP OneView User Manual

Page 187

background image

NOTE:

The task resources routing key syntax is scmb.resource-category and does not use

change-type

and resource-uri. To receive messages about all task resources:

scmb.#

scmb.tasks

Sample queues

Example

Subscription

scmb.server-hardware.#

NOTE:

To match everything after a specific point in the routing key,

use the pound sign (#). This example uses # in place of resource-uri.
The message queue receives all server-hardware resource URIs.

Receive all SCMB messages for physical
servers

scmb.connections.Created.#

Receive all messages for created connections

scmb.enclosures.*./rest/enclosures/Enc1234

NOTE:

To match everything for an individual field in the routing key,

use the asterisk (*). This example uses * in place of change-type. The
message queue receives all change types: Created, Updated, and
Deleted

.

Receive all messages for the enclosure with
the URI /rest/enclosures/Enc1234

scmb.*.Created.#

Receive all created messages (for all
resource categories and types)

26.3 JSON structure of message received from the SCMB

The following table lists the attributes included in the JSON payload of each message from the
SCMB. The resource model for the HP OneView resource is included in the resource attribute.
To view all resource models, see the HP OneView REST API Reference chapter in the online help.

Description

Data type

Attribute

The URI for the resource

String

resourceUri

The state-change type: Created, Updated, or Deleted. For details, see

“ChangeType values” (page 188)

.

String

changeType

The new state of the resource.

String

newState

The ETag for the resource when the state change occurred.

String

eTag

The time the message was sent.

String

timestamp

If substate messages are required (for substate machines associated with a
primary state), this is the resource-specific substate.

String

newSubState

The resource model.

Object

resource

If a task is not associated with this message, the value is null.

String

associatedTask

The value of the userInitiated attribute included in the associatedTask
attribute.

String

userInitiatedTask

A list of top-level attributes that have changed based on the POST or PUT call
that caused the state-change message to be sent.

Array

changedAttributes

Additional information about the resource state change.

Object

data

26.3 JSON structure of message received from the SCMB

187