Delete Zone operation
The Delete Zone operation enables you to delete a Zone only if it is in the configured state.
The following figure shows an <items>
XML template for the Delete Zone operation:
<items>
XML template for the Delete Zone operation
<items> <item> <parameters> <zone-path</zone-path> </parameters> </item> </items>
The following table describes the elements for the adapter request:
Adapter request elements for the Delete Zone operation
Element |
Definition |
Required |
---|---|---|
|
Defines the type of operation: |
Yes |
|
Defines the name of operation: |
Yes |
|
Specifies the name of the Zone that you want to delete |
Yes |
|
Specifies the zone path for the Zone that you want to delete |
No |
|
Specifies the host name of the Solaris computer hosting Solaris Zones |
No |
|
Specifies the port on which the SSH service is running on the host computer |
No |
|
Specifies the time, in seconds, to wait for the operation to complete on the target server |
No |
|
Specifies the user name for the Solaris computer |
No |
|
Specifies the password corresponding to the user name |
Conditional |
The following figure shows the sample adapter request for the Delete Zone operation:
Sample adapter request for the Delete Zone operation
<solaris-zones-request> <target> <host>vm-sol-abc<host> <user-name>admin<user-name> <password>adminpass</password> <port>8888</port> </target> <operation-type>Configure_Zone</operation-type> <operation-name>Delete_Zone</operation-name> <operation-timeout-secs>200</operation-timeout-secs> <zone-name>testzone</zone-name> <parameters> <zone-path>/export/zones/testzone</zonepath> <parameters> </solaris-zones-request>
Note
You need to specify the elements in the <target>
block of the adapter request only if you want to override the elements specified in the adapter configuration.
The following figure shows the response for the sample adapter request:
Sample adapter response for the Delete Zone operation
<solaris-zones-response> <metadata> <status>success</status> </metadata> <target-output host="vm-sol-abc"> <metadata> <os-id>SunOS</os-id> <os-version>5.10</os-version> <status>success</status> </metadata> <operation-output> <metadata> <command>zonecfg -z "testzone" delete -F; rm -rf "/export/zones/testzone"</command> <line-count>1</line-count> <execution-milliseconds>16078</execution-milliseconds> <exit-code>0</exit-code> <status>success</status> </metadata> <output> <line index="1">Operation Delete_Zone executed successfully!!</line> </output> </operation-output> </target-output> </solaris-zones-response>
Comments
Log in or register to comment.