Decommission VM operation


The Decommission VM operation enables you to decommission a virtual machine.

The following table describes the elements for the Decommission VM operation.


 Adapter request elements for the Decommission VM operation

The following figure shows the sample adapter request for the Decommission VM operation.

 XML sample of the adapter request for the Decommission VM operation

 <vmware-lifecycle-manager-request>
  <request>
  <operation-name>execute-workflow</operation-name>
  <parameters>
  <workflow-name>Decommission VM</workflow-name>
    <item>
      <name>token</name>
      <type>lcm:ProvisioningToken</type>
      <value>lcm-069</value>
    </item>
    <item>
      <name>comment</name>
      <type>string</type>
      <value>delete a virtual machine</value>
    </item>
  </parameters>
  </request>
</vmware-lifecycle-manager-request

The following figure illustrates the adapter response for the sample Decommission VM operation.

 XML sample of the adapter response for the Decommission VM operation

<vmware-lifecycle-manager-response>
   
<metadata>
     
<status>success</status>
   
</metadata>
     
<executeWorkflowResponse xmlns="http://webservice
.vso.dunes.ch"
>
     
<executeWorkflowReturn>
     
<id>8B808080808080808080808080808080AC808080
012343431042914f33cf44ee2</id>
     
<title>Decommission VM</title>
     
<workflowId>168180808080808080808080808080
8090808080011816637245763d7907a21     88</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='decomissionPrimaryState' t='lcm:PrimaryTokenState'
      
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='decommission'&amp;dunesName='lcm:PrimaryToken
State']]&gt;&lt;/att&gt;
     
&lt;att n='tokenEventType' t='lcm:TokenEventType'
e='n'&gt;&lt;![CDATA[dunes://service.dunes.ch/CustomSDK
Object?id='userDecommission'&amp;dunesName='lcm:
TokenEventType']]&gt;&lt;/att&gt;
     
&lt;att n='token' t='lcm:ProvisioningToken' e='n'&gt;&lt;
![CDATA[dunes://service.dunes.ch/CustomSDKObject?id='50'&amp;
dunesName='lcm:ProvisioningToken']]&gt;&lt;/att&gt;
     
&lt;att n='comment' t='string' e='n'&gt;&lt;
![CDATA[del]]&gt;&lt;/att&gt;
     
&lt;/stack&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.18.01