Download full document:

vlan

Configuration for "VLAN" resource.

Properties

(click to see Operations)

Name Data Type PermissionsDescription
id<Double>Read-writeA positive integer that uniquely identifies a VLAN.<br>Minimum value = 1<br>Maximum value = 4094
aliasname<String>Read-writeA name for the VLAN. Must begin with a letter, a number, or the underscore symbol, and can consist of from 1 to 31 letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the VLAN. However, you cannot perform any VLAN operation by specifying this name instead of the VLAN ID.<br>Maximum length = 31
dynamicrouting<String>Read-writeEnable dynamic routing on this VLAN.<br>Default value: DISABLED<br>Possible values = ENABLED, DISABLED
ipv6dynamicrouting<String>Read-writeEnable all IPv6 dynamic routing protocols on this VLAN. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line.<br>Default value: DISABLED<br>Possible values = ENABLED, DISABLED
mtu<Double>Read-writeSpecifies the maximum transmission unit (MTU), in bytes. The MTU is the largest packet size, excluding 14 bytes of ethernet header and 4 bytes of crc, that can be transmitted and received over this VLAN.<br>Default value: 0<br>Minimum value = 500<br>Maximum value = 9216
sharing<String>Read-writeIf sharing is enabled, then this vlan can be shared across multiple partitions by binding it to all those partitions. If sharing is disabled, then this vlan can be bound to only one of the partitions.<br>Default value: DISABLED<br>Possible values = ENABLED, DISABLED
linklocalipv6addr<String>Read-onlyThe link-local IP address assigned to the VLAN.
rnat<Boolean>Read-onlyTemporary flag used for internal purpose.
portbitmap<Double>Read-onlyMember interfaces of this vlan.
lsbitmap<Double>Read-onlyMember linksets of this vlan.
tagbitmap<Double>Read-onlyTagged members of this vlan.
lstagbitmap<Double>Read-onlyTagged linksets of this vlan.
ifaces<String>Read-onlyNames of all member interfaces of this vlan.
tagifaces<String>Read-onlyNames of all tagged member interfaces of this vlan.
ifnum<String>Read-onlyThe interface to be bound to the VLAN, specified in slot/port notation (for example, 1/3).<br>Minimum length = 1
tagged<Boolean>Read-onlyMake the interface an 802.1q tagged interface. Packets sent on this interface on this VLAN have an additional 4-byte 802.1q tag, which identifies the VLAN. To use 802.1q tagging, you must also configure the switch connected to the appliances interfaces.
vlantd<Double>Read-onlyTraffic domain associated with vlan.<br>Minimum value = 0<br>Maximum value = 4094
sdxvlan<String>Read-onlySDX vlan.<br>Default value: NO<br>Possible values = YES, NO
partitionname<String>Read-onlyName of the Partition to which this vlan bound to.<br>Minimum length = 1
vxlan<Double>Read-onlyThe VXLAN that extends this vlan.
__count<Double>Read-onlycount parameter

Operations

(click to see Properties)

ADD | DELETE | UPDATE | UNSET | GET (ALL) | GET | COUNT

Some options that you can use for each operations:

  • Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:

    http://<netscaler-ip-address>/nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".

  • Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER:<username>

    X-NITRO-PASS:<password>

    Note: In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

Note:

Mandatory parameters are marked in red and placeholder content is marked in <green>.

add

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan

HTTP Method: POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:

{"vlan":{
      "id":<Double_value>,
      "aliasname":<String_value>,
      "dynamicrouting":<String_value>,
      "ipv6dynamicrouting":<String_value>,
      "mtu":<Double_value>,
      "sharing":<String_value>
}}

Response:

HTTP Status Code on Success: 201 Created HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

delete

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan/id_value<Double>

HTTP Method: DELETE

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

update

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan

HTTP Method: PUT

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:

{"vlan":{
      "id":<Double_value>,
      "aliasname":<String_value>,
      "dynamicrouting":<String_value>,
      "ipv6dynamicrouting":<String_value>,
      "mtu":<Double_value>,
      "sharing":<String_value>
}}

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

unset

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan?action=unset

HTTP Method: POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:

{"vlan":{
      "id":<Double_value>,
      "aliasname":true,
      "dynamicrouting":true,
      "ipv6dynamicrouting":true,
      "mtu":true,
      "sharing":true
}}

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

get (all)

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan

Query-parameters:

attrs

http://<netscaler-ip-address>/nitro/v1/config/vlan?attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

filter

http://<netscaler-ip-address>/nitro/v1/config/vlan?filter=property-name1:property-val1,property-name2:property-val2

Use this query-parameter to get the filtered set of vlan resources configured on NetScaler.Filtering can be done on any of the properties of the resource.

view

http://<netscaler-ip-address>/nitro/v1/config/vlan?view=summary

Note: By default, the retrieved results are displayed in detail view (?view=detail).

pagination

http://<netscaler-ip-address>/nitro/v1/config/vlan?pagesize=#no;pageno=#no

Use this query-parameter to get the vlan resources in chunks.

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:

{ "vlan": [ {
      "id":<Double_value>,
      "aliasname":<String_value>,
      "linklocalipv6addr":<String_value>,
      "rnat":<Boolean_value>,
      "portbitmap":<Double_value>,
      "lsbitmap":<Double_value>,
      "tagbitmap":<Double_value>,
      "lstagbitmap":<Double_value>,
      "ifaces":<String_value>,
      "tagifaces":<String_value>,
      "dynamicrouting":<String_value>,
      "ipv6dynamicrouting":<String_value>,
      "ifnum":<String_value>,
      "tagged":<Boolean_value>,
      "vlantd":<Double_value>,
      "sdxvlan":<String_value>,
      "mtu":<Double_value>,
      "sharing":<String_value>,
      "partitionname":<String_value>,
      "vxlan":<Double_value>
}]}

get

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan/id_value<Double>

Query-parameters:

attrs

http://<netscaler-ip-address>/nitro/v1/config/vlan/id_value<Double>?attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

view

http://<netscaler-ip-address>/nitro/v1/config/vlan/id_value<Double>?view=summary

Note: By default, the retrieved results are displayed in detail view (?view=detail).

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:

{ "vlan": [ {
      "id":<Double_value>,
      "aliasname":<String_value>,
      "linklocalipv6addr":<String_value>,
      "rnat":<Boolean_value>,
      "portbitmap":<Double_value>,
      "lsbitmap":<Double_value>,
      "tagbitmap":<Double_value>,
      "lstagbitmap":<Double_value>,
      "ifaces":<String_value>,
      "tagifaces":<String_value>,
      "dynamicrouting":<String_value>,
      "ipv6dynamicrouting":<String_value>,
      "ifnum":<String_value>,
      "tagged":<Boolean_value>,
      "vlantd":<Double_value>,
      "sdxvlan":<String_value>,
      "mtu":<Double_value>,
      "sharing":<String_value>,
      "partitionname":<String_value>,
      "vxlan":<Double_value>
}]}

count

URL: http://<netscaler-ip-address>/nitro/v1/config/vlan?count=yes

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:

{ "vlan": [ { "__count": "#no"} ] }