IJsonPostWsEndUserSetEnqueueMountDvdIso Method
|
Performs an operation to mount ISO images to a virtual machine. By the method SetEnqueueMountDvdIso() of Aruba WsEndUser
you can mount an ISO image to a virtual machine. This is done using an ISO image (custom ISO) available in the FTP space
associated with the account specified in the authentication phase.
Namespace:
Aruba.Cloud.WsEndUser
Assembly:
Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream SetEnqueueMountDvdIso(
SetEnqueueMountDvdIsoRequest request
)
<OperationContractAttribute>
<WebInvokeAttribute(Method := "POST", ResponseFormat := WebMessageFormat.Json)>
Function SetEnqueueMountDvdIso (
request As SetEnqueueMountDvdIsoRequest
) As Stream
[OperationContractAttribute]
[WebInvokeAttribute(Method = L"POST", ResponseFormat = WebMessageFormat::Json)]
Stream^ SetEnqueueMountDvdIso(
SetEnqueueMountDvdIsoRequest^ request
)
[<OperationContractAttribute>]
[<WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)>]
abstract SetEnqueueMountDvdIso :
request : SetEnqueueMountDvdIsoRequest -> Stream
function SetEnqueueMountDvdIso(
request : SetEnqueueMountDvdIsoRequest
) : Stream
Parameters
- request
- Type: Aruba.Cloud.WsEndUser.JsonSetEnqueueMountDvdIsoRequest
Return Value
Type:
Stream
The method returns an object WsResult containing information on the outcome of the method call.
Examples
The following example shows a user-defined method, called MountDvdIso(), which creates an object of type NewIso.
Through a call to the SetEnqueueMountDvdIso() WsEndUser of Aruba, the image is mounted Hyper-V_Server_R2_SP1.iso
present in the FTP account on the server with id 703.
private static void MountDvdIso()
{
try
{
NewIso isoToMount = new NewIso()
{
IsoPath = @"Hyper-V_Server_R2_SP1.iso",
IsoType = IsoTypes.Custom,
ServerId = 703
};
WsResult result = client.SetEnqueueMountDvdIso (isoToMount);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueMountDvdIso(). {0}", result.ResultMessage));
}
catch (Exception ex)
{
throw new ApplicationException(
String.Format("An error has occurred while mounting an ISO image {0}", ex.Message));
}
}
See Also