IJsonpWsEndUserSetEnqueueDeassociateIpAddress Method
|
Removes an assignment between an IPAddress to a specified network adapter. By the method SetEnqueueDeassociateIpAddress () of Aruba WsEndUser,
you can remove the association between a network adapter and one or more IPAddress. The process of disassociation IP addresses
to a network adapter can not be completed if the IPAddress or network adapter does not exist, do not belong to the specified account,
or does not appear to be associated with each other. Similarly, the operation will fail if there is an operation in the queue,
on the resource in question, in a state different from error or Completed
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 = "SetEnqueueDeassociateIpAddress/{jsonp}/{userName}/{token}/{ipAddressResourceId}/{networkAdapterId}/{removeIPOnVirtualMachine}")]
Stream SetEnqueueDeassociateIpAddress(
string jsonp,
string userName,
string token,
string ipAddressResourceId,
string networkAdapterId,
string removeIPOnVirtualMachine = null
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueDeassociateIpAddress/{jsonp}/{userName}/{token}/{ipAddressResourceId}/{networkAdapterId}/{removeIPOnVirtualMachine}")>
Function SetEnqueueDeassociateIpAddress (
jsonp As String,
userName As String,
token As String,
ipAddressResourceId As String,
networkAdapterId As String,
Optional removeIPOnVirtualMachine As String = Nothing
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueDeassociateIpAddress/{jsonp}/{userName}/{token}/{ipAddressResourceId}/{networkAdapterId}/{removeIPOnVirtualMachine}")]
Stream^ SetEnqueueDeassociateIpAddress(
String^ jsonp,
String^ userName,
String^ token,
String^ ipAddressResourceId,
String^ networkAdapterId,
String^ removeIPOnVirtualMachine = nullptr
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueDeassociateIpAddress/{jsonp}/{userName}/{token}/{ipAddressResourceId}/{networkAdapterId}/{removeIPOnVirtualMachine}")>]
abstract SetEnqueueDeassociateIpAddress :
jsonp : string *
userName : string *
token : string *
ipAddressResourceId : string *
networkAdapterId : string *
?removeIPOnVirtualMachine : string
(* Defaults:
let _removeIPOnVirtualMachine = defaultArg removeIPOnVirtualMachine null
*)
-> Stream
function SetEnqueueDeassociateIpAddress(
jsonp : String,
userName : String,
token : String,
ipAddressResourceId : String,
networkAdapterId : String,
removeIPOnVirtualMachine : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- ipAddressResourceId
- Type: SystemString
- networkAdapterId
- Type: SystemString
Valore di tipo System.Int32 che rappresenta l'identificativo univoco del network adapter a cui disassociare l'indirizzo Ip.
- removeIPOnVirtualMachine (Optional)
- Type: SystemString
Return Value
Type:
Stream
Value of type System.Int32 which is the unique identifier of the network adapter to which disassociate the IP address.
Examplesprivate static void EnqueueDeassociateIpAddress(WsEndUserClient client)
{
try
{
WsResult result = client.SetEnqueueDeassociateIpAddress(new int[] { 2577, 2578 }, 2844);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueDeassociateIpAddress(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format(
"An error has occurred while deassociating an IP address list to a network adapter {0}", ex.Message));
}
}
See Also