3. Triggering Workflows with vCloud Notifications : 3.3 Workflow: Create a vCloud Director notification subscription : 3.3.1 Workflow Inputs
   
3.3.1 Workflow Inputs
The Create a vCloud Director notification subscription workflow has a set of reduced inputs to configure AMQP, and a set of necessary inputs to create all possible combinations of message filtering.
The following table provides information about the inputs used to configure AMQP.
Table 2. AMQP Setup Inputs: Create a vCloud Director notification subscription
Input Name
Detail
Queue and subscription name
The name to be used to name the queue and the subscription, such as vApp Deletion Approval.
vCloud Director Host
The vCloud Director host producing messages to the AMQP server.
AMQP password
The password used for authentication to the AMQP server.
Create broker/Choose broker
Option to add an AMQP broker in the vCenter Orchestrator inventory or to choose an existing broker.
 
The username and other AMQP configuration items are gathered from the AMQP settings on the specified vCloud Director host. To be able read these settings, you must have configured the specified vCloud Director host object with System Administrator level access. For more information on the configuration of AMQP in vCloud Director, see “vCloud Managing and Monitoring Examples” in Implementation Examples.
The filter policy inputs are used to determine which messages published by vCloud Director to include in the subscription and to use to trigger a specified workflow. Each filter type can be enabled or disabled.
*Enabled filter types allow the selection of a specific value. This indicates that only messages that match the value for that type should be included.
*Disabled filter types indicate that all messages matching that type should be included.
The following table describes the inputs used to generate the filter policy.
Table 3. Filter Policy Inputs: Create a vCloud Director notification subscription
Input Name
Detail
Operation success
Filter messages on operation success (true/false).
Organization
Filter messages on the organization. (Select an organization from the inventory.)
User
Filter messages on the user who started the event that generated the message. (Select a user from the inventory.)
Blocking task operation type
Filter messages that apply to a given blocking task operation type. (Select a blocking task type from the ones that have been enabled in the vCloud Director blocking tasks configuration.)
Event type
Filter messages that apply to a given event type.
Select an event type from the list of supported event types, such as com/vmware/vcloud/event/catalog/create.
If a blocking task operation type is selected, the list includes only events related to blocking tasks.
Entity type
Filter messages that apply to a given entity type. The list of supported entity types is provided in
Entity
Filter messages that apply to the selected entity object.
 
Table 4. Filter Policy Input Entity Types
Entity Type
Description
vcloud:blockingTask
A blocking task.
vcloud:catalog
An organization virtual datacenter catalog attached to an organization.
vcloud:catalogitem
A catalog item (linking to a media or a vApp template).
vcloud:datastore
A datastore attached to a vSphere host (Admin extension object).
vcloud:disk
A disk attached to a vApp virtual machine.
vcloud:gateway
A gateway attached to an admin virtual datacenter (Admin object).
vcloud:group
A group attached to an admin organization (Admin object).
vcloud:host
A vSphere host (Admin extension object).
vcloud:licenseReport
A licensing report (Admin Extension object).
vcloud:media
An ISO or floppy image attached to a virtual datacenter.
vcloud:network
A vApp network or an organization virtual datacenter network or an external network (Admin object).
vcloud:networkpool
A network pool attached to a provider virtual datacenter (Admin object).
vcloud:organization
An organization.
vcloud:providervdc
A provider virtual datacenter (Admin object).
vcloud:lr.providervdcstorageclass
A storage profile attached to a provider virtual datacenter (Admin object).
vcloud:right
A user right (Admin object).
vcloud:role
A user role (Admin object).
vcloud:strandedItem
A stranded item (Admin Extension object).
vcloud:task
A task attached to its parent object.
vcloud:user
An user attached to an organization (Admin object).
vcloud:vapp
A vApp attached to a virtual datacenter.
vcloud:vapptemplate
A vApp template attached to a virtual datacenter.
vcloud:vdc
A virtual datacenter attached to an organization.
vcloud:lr.vdcstorageClass
A storage profile attached to a virtual datacenter.
vcloud:vimserver
A vSphere server (Admin extension object).
vcloud:vm
A virtual machine attached to a vApp.
 
Table 5. Workflow Input: Create a vCloud Director notification subscription
Input Name
Detail
Workflow
The workflow to start when getting a message that matches all of the previous filters.
 
If the workflow has input parameters that match the name or type of the objects referenced in the message, then the input parameter is assigned when the workflow is started. This functionality is provided by the Workflow runner workflow described in section 3.5, Process Notifications and Trigger Workflows.