HP OneView 1.05 User Guide

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
ExampleSubscription
scmb.server-hardware.#
NOTE: To match everything after a specific point in the routing key,
use the # character. 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)
28.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.
DescriptionData typeAttribute
The URI for the resource.StringresourceUri
The state-change type: Created, Updated, or Deleted. For details, see
“ChangeType values” (page 206).
StringchangeType
The new state of the resource.StringnewState
The ETag for the resource when the state change occurred.StringeTag
The time the message was sent.Stringtimestamp
If substate messages are required (for substate machines associated with a
primary state), this is the resource-specific substate.
StringnewSubState
The resource model.Objectresource
If a task is not associated with this message, the value is null.StringassociatedTask
The value of the userInitiated attribute included in the associatedTask
attribute.
StringuserInitiatedTask
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.
ArraychangedAttributes
Additional information about the resource state change.Objectdata
28.3 JSON structure of message received from the SCMB 205