< Back

Add-NSserviceTovserver

Fri Jan 10, 2020 9:41 pm

NAME Add-NSserviceTovserver



SYNOPSIS

The add-NSserviceTovserver binds a service to a vserver. Requires the vserver name and the service name.





SYNTAX

Add-NSserviceTovserver -servicename <string> -vserver <string> [-returnobject <SwitchParameter>] [-session

<nitro_service>] [-weight <uint>] [<CommonParameters>]





DESCRIPTION

The add-NSserviceTovserver binds a service to a vserver. Requires the vserver name and the service name.

Optionally, weight can be specified.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-servicename <string>

Specify the name of the service to bind.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-vserver <string>

Specify the name of the vserver to bind to.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-weight <uint>

Specify the weight for the binding. Default is 1. this is optional.



Required? false

Position? named

Default value 1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-returnobject <SwitchParameter>

If set to true, the object that is created is returned. This is useful to testing purposes.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

Specify the name of the service to bind.



System.String

Specify the name of the vserver to bind to.



System.UInt32

Specify the weight for the binding. Default is 1. this is optional.



System.Management.Automation.SwitchParameter

If set to true, the object that is created is returned. This is useful to testing purposes.





OUTPUTS





RELATED LINKS