Quick Code Sample Update

Quick Code Sample Update

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! 🙂

SSH PUBLIC KEY

Copy the SSH public key below.  In BASH shell environments, for example, this file could be saved to ~/.ssh/nutanix_demo.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCm+7N2tjmJw5jhPmD8MS6urZQJB42ABh73ffGQSJ0XUHgdEDfjUDFkLK0wyJCe0sF5QJnh07UQn0F0BUnBi+VwehPGeODh6S43OP5YS/14L0fyntFI06B9lckx/ygRNu82sHxXCX+6VVUFPOPC+sz6j1DQswKY9d4cEYnaMBGSzqRxrqAIf6aWIKTJTYKPFY0zaUZ6ow2iwS0Nlh5EqaXsEBWkqMmr7/auP9GV/adUgzFrGLJklYBdfH575SIK6/PZL6wNT0jE9LmFlEm7dI01ZWPclBuV16FzRyrnzmWr/ebY62A04vYBtR0vyfEfsW2ZgxgD6aAE6+ytj0v19y0elRtOaeTySN/HlXh7owKWCHnlXNpTUiSDP8SQ8LRARkhQu3KEDL0ppGCrSF87oFkp1gPzf92U+UK3LaNMMjZXMOy0zLoLEdLtbQo6S8iHggDoX4NI4sWWxcX0mtadvjy/nIOvskk9IXasQh0u0MT9ARQY5VXPluKDtEVdeow9UbvgJ1xxNkphUgsWjCiy+sjgapsuZvWqKM6TPT1i24XYaau+/Fa0vhjLb8vCMWrrtkRwGt4re243NDYcYWTzVZUFuUK0w1wqt77KgjCCeyJdsZNwrh15v780Fjqpec3EGVA0xyNbF0jn/tsnYy9jPh/6Cv767EratI97JhUxoB4gXw== no-reply@acme.com