ramblingcookiemonster / citrix.netscaler Goto Github PK
View Code? Open in Web Editor NEWPowerShell module for working with Citrix NetScaler REST API
License: GNU General Public License v2.0
PowerShell module for working with Citrix NetScaler REST API
License: GNU General Public License v2.0
If you get an error indicating 'select : Property "some property" cannot be found.', please use the -Raw switch on the command as a workaround.
The issue is that in general, the NetScaler API returns the object type name (ns). In some cases, it does not do this. e.g. The stat with the name ns returns nstrace, instead of ns.
#I get an error from command below: 'select : Property "ns" cannot be found.'
Get-NSnsStat -Address ctx-ns-tst-01 -WebSession $session -AllowHTTPAuth
#Adding the -raw switch, I can get the unadulterated Invoke-RESTMethod results, which include an nstrace property:
Get-NSnsStat -Address ctx-ns-tst-01 -WebSession $session -AllowHTTPAuth -Raw
#To extract the nstrace property, I would run this
Get-NSnsStat -Address ctx-ns-tst-01 -WebSession $session -AllowHTTPAuth -Raw | Select -expandproperty nstrace
Will change from a method of selecting static object name from Invoke-RESTMethod output, look for a way to make this dynamic.
Provide the creation a lbvservers on a netscaler, with parameters [-Address ] [[-lbname] ] [[-lbservice] ] [[-lbvipaddress] ] [[-lbport] ] [[-lbmethod] ] [[-lbenv]] [[-srvuser] ] [[-srvpass] ] [[-comment]] [-Raw] [-AllowHTTPAuth] [-TrustAllCertsPolicy ], also i suggest to compose lbname the mask VIP_$lbname_$lbenv_$lbport(VIP_product_QA_80)
Add-NSconfiglbvserver -Address CTX-NS-01 -lbname product -lbservice HTTP|HTTPS -lbvipaddress 1.1.2.1 -lbport 80 -lbmethod "roundrobin|lastcon" -lbenv "environment QA|DEV|PROD" -srvuser -comment "comment it" -AllowHTTPAuth
Provide the creation a server on a netscaler, with parameters -Address, hostname ipaddress login and password to user of a service.
Add-NSserverconfig [-Address ] [[-vname] ] [[-hostip] ] [[-srvuser] ] [[-srvpass] ] [-Raw] [-AllowHTTPAuth] [-TrustAllCertsPolicy ] []
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.