Jump to content

NetScaler Automation & APIs

Infrastructure-as-code and automation with NITRO API, Ansible, Terraform, StyleBooks, scripting, and DevOps CI/CD integration.

  1. I'm automating certain tasks in the Netscaler Nitro API. Right now, I'm setting pagesize=10000 and the API doesn't seem to be rejecting it. My question is whether or not there's any limit to what the maximum pagesize can be set to. Does anyone know? I googled around and couldn't find anything.

  2. Watch on YouTube! In this episode of The NetScaler Podcast, hosts Brian and Jason discuss the evolution of software development practices, focusing on the shift from traditional waterfall methodologies to Agile and DevOps. They explore the importance of automation in application delivery, the emergence of platform engineering, and how NetScaler is leading the charge with its Automation Toolkit. 00:00 Introduction to Automation in Application Delivery 02:55 The Shift from Waterfall to Agile 10:12 Understanding DevOps and Its Evolution 17:43 The Emergence of Platform Engineering 26:29 NetScaler Automation Toolkit and Its Impact 28:54 Future Trends: AIOps…

  3. Hi. Iim trying to install a new server as a backend for a VIP , but this is in an admin partition. How do I use the netscaler.adc.server inside a partition called "test"? I can install fine in the default partition, but need it to be inside a partition. Regards

  4. Hi Everyone, Have you created a responder policy (resets connection unless listed) on an application in NextGen API. Thanks!

    • 0 replies
    • 1.1k views
  5. I am trying to make a responder policy that reference an existing valueset created in NextGenAPI -- I get the error "Data/Patset not found" when I try to save it. This is my expression in my responder policy: !CLIENT.IP.SRC.TYPECAST_TEXT_T.CONTAINS_ANY("Relay") when I do the GET the response.content reports name:Relay so it definitely exists when I view in the API. is my responder expression correct?

  6. When you create a dataset using nextgen api it creates it with a prefix which I found in a document somewhere. I am trying to recreate a policy which got deleted and I have forgotten what the prefix was, does anyone know? ng_<datasetname> or something similar

  7. Started by TimJordan,

    Hello I have a powershell script which I have developed to update a data set in the netscaler. This has been working fine for a month or so and now all of a sudden everytime we do any write command to the API we receive a 1600 error. Nothing has changed code wise and we can still read from the api fine. Any ideas?

  8. I have the API installed and it shows as running however, I keep getting these warnings when trying to authenticate, POST https://mgmt-ip/mgmt/api/nextgen/v1/login { "login": { "username": "nsroot", "password": "PASSWORD" } } Warning: Unable to verify the first certificate {"errorcode":1500,"errormessage":"We only support requests in JSON format","details":[]}↵ Has anyone played with this yet? Chad

  9. Hello, Would any body know if there is any option (what I think it's not, at the moment) to get all the configuration details (including SSL certificates) about any admin partition via Netscaler Rest API? That is possible via ADM Rest API, but that is not options we can use. Thanks.

  10. What are the possibilities available for Citrix ADC/NetScaler to leverage modern Infrastructure as Code (IaC) tools such as Terraform, Ansible, AWS CloudFormation, Azure Resource Manager, Google Deployment Manager?

  11. Hi, ​ I do complete terraform deployments with more or less all features available. I have developed seperate Modules that ​ Deploys a Netscaler in azureConfigure an entire netscaler according to best practise (With A+ ssllabs)Deploy Botnet Protection Deploy WAF Deploy OAuth 2.0 v2 MSAL for applicationsDeploy a web application (or any application with any protocol with or without custom monitors)Deploy OAuth 2.0 v2 MSAL JWT with Token Cache so i can protect legacy API´s as a modern API GatewayDeploy CAG for XenApp / XenDesk with SAML to connect with Storefront+FASHandle Certificates for all Applications and updating them as they change​ My upcoming challenge will be: …

  12. Does anyone have Ansible code to deploy "Citrix Gateway" with SF? I cannot find the module that will configure this or the API responsible for the Citrix Gateway wizard. Thanks

  13. The cli code I wish to have Terraform create: add rewrite action rw_acr_custom_notification insert_after_all "http.res.body(50000).set_text_mode(IGNORECASE)" ""<div id=ADCRewrite style='text-align:center;color:white;font-size:20px;'><div id=Please notice><br><b>Important notice: You are accessing a secure environment</b></div>"" -search q/text("customAuthBottom">")/

  14. Is there a way in the Monitor Service OData API to get the code/description values for a specific Enum, such as PowerStateCode?

  15. This corresponds to the Visibility section of Application Details in DaaS. The equivalent PowerShell call is Get-BrokerApplication with AssociatedUserNames in the select.

  16. I dont see any Gateway terraform modules in CitrixADC as demoed here, when do you expect this to be included?

  17. How to minimize the API calls made for monitoring, if there are 1000s of virtual servers on NetScaler

  18. how to get receiver ip of active session in c++

  19. I sucessfully created a vpnvserver, but I don't know how to bind an sslprofile to it. sslprofile in my opinion does not have a binding to a vpnvserver (or even csvserver). Anyone here ever bound a sslprofile to a vpnvserver using terraform?

  20. Hi, I hope I am in the right place, I am new to this and PowerBI. Based on the URLs for Available Data Sets found here - https://developer-docs.citrix.com/projects/monitor-service-odata-api/en/latest/ We require to be able to display the total number of connected sessions per day at 11:00am We have been unable to achieve this so far with the URLs provided in the above link. Is this possible and if so how? We are using Powershell and transforming the data to SQL for Power BI. Thanks

    • 2 replies
    • 1.2k views
  21. What are your top barriers or challenges to adopt Infrastructure as Code approach to Netscaler Automation via Terraform, Ansible ?

    • 3 replies
    • 1.2k views
  22. Hi Team, I automate with Netscaler Config Jobs. Everything works fine but when I use a CSV Input File comma in LDAP distinguised Names get interpreted as a new field although the Template and my file use Quotes and Comma. Seems Bug.Is there a Workaround?

  23. The API call is of the format "https://api-us.cloud.com/monitorodata/Machines" ​ If we run an OData query for machines (or another table), the continuation link returns: https://<customer>.xendesktop.net/citrix/monitor/odata/v4/data/Machines?$skip=100 ​ Per the documentation document we expect: https://api-us.cloud.com/monitorodata/Machines?$skip=100 ​ Our developer is working on a string substitution as a workaround, but perhaps we are missing something.

  24. What NetScaler Automation tools you are currently using or plan to use ? What led you to choosing that tool ?

    • 5 replies
    • 1.7k views