Jump to content
Welcome to our new Citrix community!

Mayur Vadhar

Members
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mayur Vadhar

  1. Use the REST APIs to create and consume reports that help you to manage licensing in Citrix Cloud. As an IT administrator, use the Citrix cloud licensing APIs for enterprise customers, partners with on-premises Citrix Virtual Apps and Desktops or Citrix DaaS (formerly Citrix Virtual Apps and Desktops service). Citrix cloud licensing API for enterprise customers Use Citrix cloud licensing APIs for the following: Export data about the different cloud services into Excel or Tableau. You can export data on devices, users, enrolment, license assigned date, last login time, and historical data up to 12 months. Release expired cloud service licenses such as licenses Citrix DaaS, Citrix DaaS Standard for Azure (formerly Citrix Virtual Apps and Desktops Standard for Azure), Citrix Endpoint Management, or Citrix Secure Workspace Access. Customize and aggregate data for reporting purposes. Citrix cloud licensing API for partners with on-premises Citrix Virtual Apps and Desktops As a partner with on-premises Citrix Virtual Apps and Desktops, use Citrix cloud licensing APIs for the following: To get the number of licenses at a summary level for the following: Total users Paid users Free users License servers Customers count To get the number of licenses per customer for the following: Account name Total users Paid users Free users Historical data up to 12 months Citrix cloud licensing API for partners with Citrix DaaS As a partner with Citrix DaaS, use Citrix cloud licensing APIs for the following: To get the number of licenses at a summary level for the following: Total current number of customers Total current number of licenses across all customers Total current number of users across all customers Total current number of license overage across all customers To get the number of licenses per customer for the following: Organization ID Current 'Total Licenses' owned Current 'Total Users' used Current 'License Overage' Historical data up to 12 months
  2. NetScaler Ansible modules can be used for automating NetScaler configurations. It also contains a generic module called citrix_adc_nitro_request which doesn’t target a particular endpoint instead can be used to perform NITRO API operations on various endpoints. Using Nitro Request Ansible module Let’s go through the example and understand the execution of citrix_adc_nitro_request module - name: Get lb vserver delegate_to: localhost register: result citrix_adc_nitro_request: nsip: "{{ nsip }}" nitro_user: "{{ nitro_user }}" nitro_pass: "{{ nitro_pass }}" operation: get resource: lbvserver name: lbvs1 As we can see there is a group of attributes that are common among all ansible NetScaler modules for connecting to the target NetScaler. After these, we have the operation attribute which is the key to the execution of the module. It instructs the module which operation to perform. In our case we want the get operation to get information for a particular NITRO object. After that, we have the attributes that will determine which object will be fetched. In our case, we want the resource lbvserver with the name lbvs1. The result is stored in the result variable for further processing by subsequent modules. We could for example print out its contents with the debug module. Supported Operations Apart from the get operation the citrix_adc_nitro_resource module supports the following operations: add update Get get_by_args get_filtered get_all delete delete_by_args count mas_login save_config action The add operation is used to create a new NITRO object. The update operation is used to update an existing object The get* operations are used to retrieve information for an object. They are differentiated by how we define the choice criteria for object retrieval. The delete and delete_by_args operations are used to delete existing objects. The count operation is used to return the count of a NITRO object. The mas_login operation is used to retrieve the authentication token from an ADM to use in subsequent calls where the ADM will be used as a NITRO API proxy. The save_config operation is used to save the configuration on the target NetScaler. Finally, the action operation is used to perform an action against a NITRO endpoint. The action can vary. For example. one action would be to enable a basic server. It is worth noting that nitro_request will try to do as little as possible of processing apart from the operation it is instructed to do. In this way, you can think of it as a thin wrapper around the Ansible URI module. It mainly will provide a more convenient and intuitive interface to perform an HTTP operation. As a consequence of that it will always report a changed state as it will not do any processing to determine if an actual configuration change took place in the target Netscaler. Despite these limitations, it is useful in its own right and also can be combined with the citrix_adc_nitro_resource module to perform more complex tasks. For example, we could use the nitro_resource module to create a server and then the nitro_request module to enable or disable the server. An example playbook of that is shown below where we create a server and then proceed to disable it. Although it is a bit artificial as an example it showcases how the two generic modules could be combined to achieve the desired configuration. - hosts: citrix_adc gather_facts: False vars_files: - deps/workflows.yaml collections: - citrix.adc tasks: - name: Setup server delegate_to: localhost citrix_adc_nitro_resource: nsip: "{{ nsip }}" nitro_user: "{{ nitro_user }}" nitro_pass: "{{ nitro_pass }}" validate_certs: "{{ validate_certs }}" state: present workflow: "{{ workflow.server }}" resource: name: test-server ipaddress: 192.168.11.34 - name: Disable server delegate_to: localhost register: result citrix_adc_nitro_request: nsip: "{{ nsip }}" nitro_user: "{{ nitro_user }}" nitro_pass: "{{ nitro_pass }}" validate_certs: "{{ validate_certs }}" operation: action action: disable resource: server attributes: name: test-server delay: 30 graceful: !!str yes Useful Resources : NetScaler Ansible modules repository ( https://github.com/citrix/citrix-adc-ansible-modules ) Nitro resource examples ( https://github.com/citrix/citrix-adc-ansible-modules/tree/master/samples/nitro_resource ) Nitro request examples ( https://github.com/citrix/citrix-adc-ansible-modules/tree/master/samples/nitro_request )
  3. NetScaler CPX is a container-based application delivery controller that can be provisioned on a Docker host. NetScaler CPX enables customers to leverage Docker engine capabilities and use NetScaler load balancing and traffic management features for container-based applications. In this hands-on lab, learn how to expose microservice application deployed in a Kubernetes Cluster using NetScaler CPX on an existing Kubernetes Cluster. The lab will demonstrate how to: Deploy a microservice Guestbook application on KubernetesDeploy NetScaler CPX and expose it using NodePort serviceExpose Guestbook application via NetScaler CPX through HTTPExpose Guestbook application via NetScaler CPX through HTTPSRedirect incoming HTTP traffic to HTTPS for Guestbook applicationClick the Start hands-on Lab at the top of the post to try out !Let us know your feedback or any issues in the comments section.
  4. NetScaler is an advanced application delivery, load balancing and security solution for your web apps. Ansible modules simplify the NetScaler management, providing agility to your IT operations. In this hands-on lab, we will learn how to use Ansible to configure load balancing service in NetScaler and expose your public web apps over internet. The lab will provision the NetScaler, pair of web-servers, and automation controller and then guide you on using Ansible workflow. Click the Start hands-on Lab at the top of the post to try out ! Let us know your feedback or any issues in the comments section.
  5. Below is the list of Terraform scripts and Get Started guide for NetScaler Automation:-NetScaler Deployment :Terraform cloud scripts to deploy NetScaler in AWSTerraform cloud scripts to deploy NetScaler in AzureTerraform cloud scripts to deploy NetScaler in GCPTerraform scripts to provision NetScaler in ESXNetScaler Configuration : NetScaler Terraform provider in Hashicorp Registry to configure NetScaler Source code for NetScaler Terraform provider NetScaler Configs Examples in TerraformNetScaler Solutions using Terraform Provider :Blue-green deployment using NetScaler VPX and Azure pipelines NetScaler Consul-Terraform-Sync Module for Network Infrastructure AutomationADM Terraform Provider :Source Code for ADM Terraform providerExamples of ADM Configuration via TerraformGet Started using Terraform for NetScaler :Get Started with installing terraform and making first NetScaler configurationHands-on Lab to try out Terraform with NetScaler Example of SSL Offloading configuration on NetScaler using TerraformExample of SSL Intelligent Content Routing on NetScaler using Terraform Let us know in the comments section if you need anything else on NetScaler automation with Terraform.
  6. Hi @Jochen Hoffmann​ , You can use both Terraform or Ansible for ADC configuration. Terraform fits well and helps to manage drifts as well. ~95% of NetScaler Rest APIs are now available via Terraform - https://registry.terraform.io/providers/citrix/citrixadc/latest Check out this NetScaler Automation page - https://docs.citrix.com/en-us/citrix-adc/current-release/deploying-vpx/citrix-adc-automation.html and also do try NetScaler Labs - https://forum.developer.cloud.com/s/netscaler-labs to get browser based experience on Terraform and Ansible . We also have Terraform scripts to deploy NetScaler in public cloud and ESX - https://github.com/citrix/terraform-cloud-scripts .
  7. Good to know @Mihai Cziraki​ , We have Terraform, Ansible modules for same. Are you using them ? or you run scripts / APIs for such frequent operations.
  8. How crucial is it for you to integrate NetScaler with CI/CD or Self-serve Infrastructure ? What are your key concerns/challenges with NetScaler automation on same ?
  9. What are few frequent NetScaler operations that you would prefer automating ?
  10. What are your top barriers or challenges to adopt Infrastructure as Code approach to Netscaler Automation via Terraform, Ansible ?
×
×
  • Create New...