NOTE: The task resources routing key syntax is scmb.resource-categoryand does not use change-typeand resource-uri. To receive messages about all task resources:

scmb.#

scmb.tasks

Sample queues

Subscription

Receive all SCMB messages for physical servers

Example

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-hardwareresource URIs.

Receive all messages for created connections scmb.connections.Created.#

Receive all messages for the enclosure with scmb.enclosures.*./rest/enclosures/Enc1234

the URI /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 created messages (for all

scmb.*.Created.#

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.

Attribute

Data type

Description

resourceUri

String

The URI for the resource

changeType

String

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

 

 

“ChangeType values” (page 188).

newState

String

The new state of the resource.

eTag

String

The ETag for the resource when the state change occurred.

timestamp

String

The time the message was sent.

newSubState

String

If substate messages are required (for substate machines associated with a

 

 

primary state), this is the resource-specific substate.

resource

Object

The resource model.

associatedTask

String

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

userInitiatedTask

String

The value of the userInitiated attribute included in the associatedTask

 

 

attribute.

changedAttributes

Array

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.

data

Object

Additional information about the resource state change.

26.3 JSON structure of message received from the SCMB 187

Page 187
Image 187
HP OneView manual Json structure of message received from the Scmb, Sample queues