A collection of code samples demonstrating use of the Nutanix v4 SDKs.
- Access to a Nutanix Pris
These demos assume you have already installed Microsoft .NET and have access to the dotnet command.
- Microsoft VS Code
- DotNet 10.0
For all code samples:
- Clone this repository
Note:
- This example assumes use of the
csharp_demoSDK code sample. - These notes cannot cover all environment configurations and contain suggestions only.
Usage:
-
Open
environment.json -
Edit the JSON values to match those in your environment
- Prism Central FQDN/IP address
- Prism Central username
- For security reasons, your Prism Central password will be requested at runtime
-
In the project directory, install the
vmmSDK:dotnet add package Nutanix.VmmSDK --version 1.0.0 -
Within VS Code, F5 to run the project
-
Observe the output, ensuring you see a tabulated list of virtual machines found in your environment.
Note: This example assumes use of the list_vms code sample.
-
Open the solution in Microsoft Visual Studio e.g.
Nutanix v4 API Demo - List VMs.slnx -
Open
Program.csand alter the following variables:requestUrlusernamepassword
-
Run the project using the appropriate button in Visual Studio
-
Observe the output, ensuring you see either the full response (or exception details if something failed)

