IJsonpWsEndUserSetEnqueueMountDvdIso 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueMountDvdIso/{jsonp}/{userName}/{token}/{serverId}/{isoType}?isoPath={isoPath}")]
Stream SetEnqueueMountDvdIso(
string jsonp,
string userName,
string token,
string serverId,
string isoPath,
string isoType
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueMountDvdIso/{jsonp}/{userName}/{token}/{serverId}/{isoType}?isoPath={isoPath}")>
Function SetEnqueueMountDvdIso (
jsonp As String,
userName As String,
token As String,
serverId As String,
isoPath As String,
isoType As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueMountDvdIso/{jsonp}/{userName}/{token}/{serverId}/{isoType}?isoPath={isoPath}")]
Stream^ SetEnqueueMountDvdIso(
String^ jsonp,
String^ userName,
String^ token,
String^ serverId,
String^ isoPath,
String^ isoType
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueMountDvdIso/{jsonp}/{userName}/{token}/{serverId}/{isoType}?isoPath={isoPath}")>]
abstract SetEnqueueMountDvdIso :
jsonp : string *
userName : string *
token : string *
serverId : string *
isoPath : string *
isoType : string -> Stream
function SetEnqueueMountDvdIso(
jsonp : String,
userName : String,
token : String,
serverId : String,
isoPath : String,
isoType : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- serverId
- Type: SystemString
- isoPath
- Type: SystemString
- isoType
- Type: SystemString
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