Resource Mappings
A resource mapping defines how a native vRealize Automation resource is converted to a
vRealize Orchestrator type.
In vRealize Automation 8.x, there are more resource types being supported than in comparison
to vRealize Automation 7.x. Each of these resources has a schema defining the resource
properties. You can define a vRealize Orchestrator action that binds its inputs to these properties
and return the equivalent vRealize Orchestrator object. For example, the vSphere components
have a vCenterUuid and uuid property that can be used to return a vRealize Orchestrator
type, such as VC:VirtualMachine. Another good example of this functionality is the built-in
findVcVMByVcAndVMUuid action introduced in vRealize Automation 8.x.
When the resource mapping is created, it is possible to add new day 2 operations on these
resources that are workflows that use the matching vRealize Orchestrator type as inputs.
The main difference in comparison to vRealize Automation 7.x, is that it uses a workflow for
resource mapping. It might be necessary to migrate the workflows to actions to reuse their
functionality in vRealize Automation 8.x.
Another difference is that vRealize Automation 8.x is that the resource mapping can be defined
on a resource action basis. For each input of the resource action, it is possible to either expose
the input at request time, map it to one of the schema resource properties, or associate a
mapping action that uses one or more schema resource properties and returns the same type
as the workflow input it binds to. This is useful to pass information from the schema directly
without having to change the workflow or create a wrapper workflow that must be used to add
the scripting logic to these required to query the vRealize Automation resource from vRealize
Orchestrator.
Custom Cloud Template Component
The application of custom components is a key element of cloud template development.
An important limitation of the XaaS components used in the cloud template designer is that,
being custom resources-based, it must provision a custom component. This is different from
vRealize Automation 7.x where the service can start any workflow, even if it was not outputting a
custom resource.
If your environment includes vRealize Automation 7.x blueprints components that are, for
example, implementing some configuration changes, it will be necessary to use other means
to trigger this workflow. The alternative is to use Event Broker to do so.
Another area that is very different in vRealize Automation 8.x is the way that these components
inputs and outputs can be bound to other components on the schema. In vRealize Automation
7.x, these bindings only supported simple types and were controlled through the user interface
without any program based approach. In vRealize Automation 8.x, the Create workflow inputs
define the properties in the YAML schema and these can be scripted. These inputs can be
mapped to the cloud template input properties even if these are of complex types. With this you
can, for example, use an input of a given resource type that can be searched.
vRealize Automation 8.x Extensibility Migration Guide
VMware, Inc. 66