Click or drag to resize

IJsonpWsEndUserSetRenameVLan Method

Assign a new name to a VLAN associated with the account specified at the time of authentication. Using the method SetRenameVLan() WsEndUser of Aruba, you can change the name assigned to a VLAN.

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 = "SetRenameVLan/{jsonp}/{userName}/{token}/{vlanResourceId}/{vlanName}")]
Stream SetRenameVLan(
	string jsonp,
	string userName,
	string token,
	string vlanResourceId,
	string vlanName
)

Parameters

jsonp
Type: SystemString
userName
Type: SystemString
token
Type: SystemString
vlanResourceId
Type: SystemString
vlanName
Type: SystemString

Return Value

Type: Stream
The method returns an object WsResult contains information about the method call. For further details on the information returned by the method see the class definition WsResult.
Examples
The following example shows a custom method, called RenameVLan(), which means a call to SetRenameVLan () WsEndUser of Aruba, assign a new name to the VLAN with resource code 4762.
private static void RenameVLan(WsEndUserClient client)
{
  try
  {
    WsResult result = client.SetRenameVLan(4762, "Old VLan");

    if (!result.Success)
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetRenameVLan(). {0}", result.ResultMessage));
    }
  }
  catch (Exception ex)
  {
    throw new ApplicationException(
      String.Format("An error has occurred while renaming a VLan {0}", ex.Message));
  }
}
See Also