< Back

New-UxResource

Sat Jan 18, 2020 7:53 pm

NAME New-UxResource



SYNOPSIS

This cmdlet initiates a PUT request to create a new UX resource. For full list of valid resources refer to

https://support.sonus.net/display/UXAPIDOC





SYNTAX

New-UxResource [[-uxSession] <PSObject>] [-resource] <String> [[-ReturnElement] <String>] [[-Arguments] <String>]

[-Index] <Int32> [[-Credentials] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

This cmdlet initiates a a PUT request to create a new UX resource. For full list of valid resources refer to

https://support.sonus.net/display/UXAPIDOC.

Using this cmdlet you can create any resource on UX which supports PUT request!





PARAMETERS

-uxSession <PSObject>

The Session Object used if wanting to connect to multiple servers



Required? false

Position? 1

Default value $DefaultSession

Accept pipeline input? false

Accept wildcard characters? false



-resource <String>

Enter a valid resource name here. For valid resource names refer to https://support.sonus.net/display/UXAPIDOC



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ReturnElement <String>

Used with other cmdlets to help tidy up the XML return so the tree is not too deep.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Arguments <String>

Pass any argument that you wish to be built, such as Description=Skype



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Index <Int32>

If using a tidier method or planning on looping, you could use the Index Tag which will add to the end of the

resource name /1



Required? true

Position? 5

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Credentials <PSCredential>

Currently not used, Will be used infuture for automatic refesh tokens.



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

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



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>This example creates a new "sipservertable" resource



Grab the SIP Server table resource and next free available id

Get-UxResource -resource sipservertable | Select -ExpandProperty sipservertable_list | Select -ExpandProperty

sipservertable_pk



Create new SIP server table and specify a free resource ID (15 here)

New-UxResource -Arguments "Description=SkypeMedServers" -resource sipservertable -index 15



OR



New-UxResource -Arguments "Description=SkypeMedServers" -resource sipservertable/15











RELATED LINKS

To find all the resources which can be queried, please refer to https://support.sonus.net/display/UXAPIDOC