Quick Code Sample Update

Quick Code Sample Update

Table of Contents

Quick one today! This week the Nutanix.dev Code Samples have been extended with a new sample type – JSON Payloads. These samples are intended to be used in conjunction with:

  • Postman for API testing
  • Custom user scripts or applications that submit Nutanix API requests
  • Integrations between Nutanix products exposing APIs and third-party applications that need to remotely “control” Nutanix products

Why do this?

It’s quite common for the Nutanix community to ask for some assistance with formatting their JSON payloads. While the Nutanix API Reference documentation does provide some examples, tested and working complete examples can be very helpful. That’s what this collection is for.

Intended Audience

If you are new to API testing or scripts that utilise/submit API requests, it is strongly recommended to read the accompanying article titled “So many variables! How I test Nutanix APIs with Postman”. It is a detailed walk-through of how I use Postman to work with APIs and, while it may not be an exhaustive guide, it does cover the getting started basics. In particular, it is suggested to take note of the sections covering collections and collection variables. You’ll see extensive use of these throughout the JSON Payload code samples, indicated by “{{placeholder}}” variables.

I hope these samples come in useful – thanks for reading and have a great day! 🙂

© 2024 Nutanix, Inc. All rights reserved. Nutanix, the Nutanix logo and all Nutanix product, feature and service names mentioned herein are registered trademarks or trademarks of Nutanix, Inc. in the United States and other countries. Other brand names mentioned herein are for identification purposes only and may be the trademarks of their respective holder(s). This post may contain links to external websites that are not part of Nutanix.com. Nutanix does not control these sites and disclaims all responsibility for the content or accuracy of any external site. Our decision to link to an external site should not be considered an endorsement of any content on such a site. Certain information contained in this post may relate to or be based on studies, publications, surveys and other data obtained from third-party sources and our own internal estimates and research. While we believe these third-party studies, publications, surveys and other data are reliable as of the date of this post, they have not independently verified, and we make no representation as to the adequacy, fairness, accuracy, or completeness of any information obtained from third-party sources.