6.2
Table Of Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.2
- Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.2
- Introduction to the VMware vCenter Orchestrator Plug-In for vCloud Automation Center
- Configuring the vCloud Automation Center Plug-In
- Using the vCloud Automation Center Plug-In Workflows
- Using the vCloud Automation Center Plug-In Inventory
- Using the vCloud Automation Center Plug-In Administration Workflows
- Using the vCloud Automation Center Plug-In Infrastructure Administration Workflows
- Using the vCloud Automation Center Plug-In Requests Workflows
- Using the vCloud Automation Center Plug-In Sample Workflows
- Access the vCloud Automation Center Plug-In API
- Example vCloud Automation Center Plug-In Scripts
- Index
Example vCloud Automation Center
Plug-In Scripts 4
You can cut, paste, and edit the JavaScript examples provided to develop your own custom scripts for
automating vCloud Automation Center tasks.
This chapter includes the following topics:
n
“CRUD Infrastructure Administration Tasks Example Scripts,” on page 25
n
“Finding vCloud Automation Center Entities Example Scripts,” on page 29
n
“Get a Resource Provisioned by vCloud Automation Center Example Script,” on page 30
n
“Common Tasks Example Scripts,” on page 32
n
“Transfer Content Between vCloud Automation Center Hosts Example Script,” on page 34
CRUD Infrastructure Administration Tasks Example Scripts
You can cut, paste, and edit the JavaScript examples to write scripts for CRUD vCloud Automation Center
tasks.
For more information about scripting in vCenter Orchestrator, see Developing with VMware vCenter
Orchestrator.
Example: Create a vCloud Automation Center Model Entity
This example script performs the following actions:
1 Defines the model name and the entity set name.
2 Defines the properties of the host prefix.
3 Saves the host prefix entity.
4 Defines the properties of the provisioning group.
5 Defines the provisioning group as a link.
6 Saves the provisioning group entity, by linking it with the host name prefix.
VMware, Inc.
25