Apply Placement operation


The Apply Placement operation allows you to place a virtual machine that is waiting for placement.

The following table describes the elements for the Apply Placement operation.

 Adapter request elements for the Apply Placement operation

The following figure shows the sample adapter request for the Apply Placement operation.

 XML sample for the adapter request for the Apply Placement operation

 <vmware-lifecycle-manager-request>
  <request>
  <operation-name>execute-workflow</operation-name>
  <parameters>
  <workflow-name>Apply Placement</workflow-name>
    <item>
      <name>token</name>
      <type>lcm:ProvisioningToken</type>
      <value>lcm-084</value>
    </item>
    <item>
      <name>templateProfile</name>
      <type>lcm:TemplateProfile</type>
      <value>lcm-temp-01</value>
    </item>
    <item>
      <name>vmFolder</name>
      <type>VMware3:VmFolder</type>
      <value>group-v61</value>
    </item>
    <item>
      <name>resourcePool</name>
      <type>VMware3:ResourcePool</type>
      <value>resgroup-1554</value>
    </item>
    <item>
      <name>datastore</name>
      <type>VMware3:Datastore</type>
      <value>datastore-120</value>
    </item>
    <item>
      <name>joinDomainInfo</name>
      <type>lcm:JoinDomainInfo</type>
      <value>Default</value>
    </item>
    <item>
      <name>networkDomain</name>
      <type>Networking:NetworkDomain</type>
      <value>VM Network</value>
    </item>
    <item>
      <name>shapingTemplate</name>
      <type>lcm:ShapingTemplate</type>
      <value>1</value>
    </item>
    <item>
      <name>comment</name>
      <type>string</type>
      <value>placement done by admin</value>
    </item>
  </parameters>
  </request>
</vmware-lifecycle-manager-request>

The following figure illustrates the adapter response for the sample Apply Placement operation.

 XML sample of the adapter response for the Apply Placement operation

<vmware-lifecycle-manager-response>
   
<metadata>
   
<status>success</status>
   
</metadata>
     
<executeWorkflowResponse xmlns="http://webservice.
vso.dunes.ch"
>
     
<executeWorkflowReturn> <id>8B80808080808080808080
8080808080A5808080012343431042914f33cf44ee2</id>
     
<title>Apply Placement</title>
     
<workflowId>868080808080808080808080808080800A8080
80012021195418308e54a5a3c a6</workflowId>
     
<currentItemName>__item-undefined__</currentItemName>
     
<currentItemState>running</currentItemState>
     
<globalState>running</globalState>
     
<startDate xmlns:xsi="http://www.w3.org/2001/XMLSchema
-instance"
 xsi:nil="true"/>
     
<endDate xmlns:xsi="http://www.w3.org/2001/XMLSchema
-instance"
 xsi:nil="true" />
     
<xmlContent>&lt;token&gt;
     
&lt;atts&gt;
     
&lt;stack&gt;
     
&lt;att n='eventType' t='lcm:TokenEventType'
     
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='placement '&amp;dunesName='lcm:TokenEventType']]
&gt;&lt;/att&gt;
     
&lt;att n='provisionPrimaryState' t='lcm:PrimaryTokenState'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDKObject?
id='provision '&amp;dunesName='lcm:PrimaryTokenState']]&gt;&lt;
/att&gt;
     
&lt;att n='provisionITMappingSecondaryState' t='lcm:Secondary
TokenState'
 e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='provisionItMapping'&amp;dunesName='lcm:SecondaryToken
State']]&gt;&lt;/att&gt;
     
&lt;att n='waitingForITMappingTertiaryState' t='lcm:TertiaryToken
State'
 e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDKObject
?id='waitingForItMapping'&amp;dunesName='lcm:TertiaryTokenState']]
&gt;&lt;/att&gt;
     
&lt;att n='manualMappingTertiaryState' t='lcm:TertiaryTokenState'
      
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDKObject?
id='manualMapping'&amp;dunesName='lcm:TertiaryTokenState']]
&gt;&lt;/att&gt;
     
&lt;att n='waitingForCreationSecondaryState' t='lcm:Secondary
TokenState'
 e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='waitingCreation'&amp;dunesName='lcm:SecondaryToken
State']]&gt;&lt;/att&gt;
     
&lt;att n='errorCode' t='string' e='n'&gt;&lt;/att&gt;
     
&lt;att n='guestName' t='string' e='n'&gt;&lt;/att&gt;
     
&lt;att n='newJoinDomainInfo' t='lcm:JoinDomainInfo'
e='n'&gt;&lt;![CDATA[__NULL__]]&gt;&lt;/att&gt;
     
&lt;att n='waitingCreationNotif' t='lcm:NotificationType'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDKObject?
id='waitingForCreationNotif'&amp;dunesName='lcm:NotificationType']]
&gt;&lt;/att&gt;
     
&lt;att n='token' t='lcm:ProvisioningToken'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='84'&amp;dunesName='lcm:ProvisioningToken']]
&gt;&lt;/att&gt;
     
&lt;att n='templateProfile' t='lcm:TemplateProfile'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='6'&amp;dunesName='lcm:TemplateProfile']]
&gt;&lt;/att&gt;
     
&lt;att n='vmFolder' t='VMware3:VmFolder' e='n'&gt;&lt;
![CDATA[dunes://service.dunes.ch/CustomSDKObject?id='rba-dev9
.abc.com/group-v61'&amp;dunesName='VMware3:VmFolder']]
&gt;&lt;/att&gt;
     
&lt;att n='resourcePool' t='VMware3:ResourcePool'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='rba-dev9.bmc.com/resgroup-1554'&amp;dunesName
='VMware3:ResourcePool']]&gt;&lt;/att&gt;
     
&lt;att n='datastore' t='VMware3:Datastore' e='n'
&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDKObject?
id='rba-dev9.abc.com/datastore-120'&amp;dunesName='VMware3
:Datastore']]&gt;&lt;/att&gt;
     
&lt;att n='joinDomainInfo' t='lcm:JoinDomainInfo'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='1'&amp;dunesName='lcm:JoinDomainInfo']]&gt;
&lt;/att&gt;
     
&lt;att n='networkDomain' t='Networking:NetworkDomain'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='2'&amp;dunesName='Networking:NetworkDomain']]&gt;
&lt;/att&gt;
     
&lt;att n='shapingTemplate' t='lcm:ShapingTemplate'
 
e='n'&gt;&lt;/att&gt;
     
&lt;att n='comment' t='string' e='n'&gt;&lt;
![CDATA[placement done by admin]]&gt;&lt;/att&gt;
     
&lt;/atts&gt;
     
&lt;exception&gt;&lt;/exception&gt;
     
&lt;/token&gt;</xmlContent>
     
</executeWorkflowReturn>
     
</executeWorkflowResponse>
</vmware-lifecycle-manager-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 20.19.02