Skip to main content
Skill engineering 3 min read Updated

nutanix-api-v4

Integrate or debug Nutanix v4 REST APIs and official SDKs. Use for OData queries, namespaces, version compatibility, or migrating legacy Nutanix API integrations.

npx skills add MAHDTech/agent-skills --skill nutanix-api-v4
View source

Nutanix v4 API

Nutanix v4 APIs deliver a modern, standardized, and scalable RESTful interface for automating and operating the Nutanix Cloud Platform. Built on Open API specifications, v4 APIs introduce OData query semantics, language-specific SDKs (Python, Go, Java, JavaScript), granular versioning, and modular namespace architecture spanning AOS 7.0+ and Prism Central pc.2024.3+.

[!IMPORTANT] Target v4 APIs for all new integrations and custom tooling. As of the March 2026 v4 API documentation, Nutanix planned to deprecate legacy API versions (v0.8, v1, v2, v3) starting with the AOS and PC release planned for Q4-CY2026; check resources/manual/overview-and-versioning.md and current Nutanix release notes for the status.


Core Nutanix v4 API Features

1. OData Query Semantics

Nutanix v4 APIs standardize list and query operations using OData conventions:

GET /api/vmm/v4.0/ahv/config/vms?$filter=name eq 'my-vm'&$select=extId,name,powerState&$orderby=name asc&$limit=10&$page=0

Supported OData parameters include:

  • $filter: Filter resources using criteria (e.g., name eq 'dev-vm', clusterReference/extId eq '...').
  • $select: Project specific resource fields to reduce payload size.
  • $orderby: Sort results by entity fields (e.g., name asc, operationType desc).
  • $limit & $page: Handle pagination deterministically.
  • $expand: Retrieve inline detailed associations (e.g., $expand=detailedAssociations).

2. Multi-Language SDKs

Official v4 SDKs are available for Python, Go, Java, and JavaScript/TypeScript. Solutions built using v4 SDKs starting with PC/AOS 7.5+ feature backward-compatible server support, allowing SDK upgrades without requiring immediate server upgrades.

3. Service Account Authentication

Authenticate v4 API requests using API keys attached to Service Accounts:

# Include the API key in request headers
curl -k -H "x-ntnx-api-key: <api_key>" \
     -H "Content-Type: application/json" \
     https://<prism-central-ip>:9440/api/vmm/v4.0/ahv/config/vms

Progressive Disclosure Reference Index

When executing specific API integrations, SDK upgrades, or troubleshooting v4 API requests, refer to the dedicated manual reference guides in resources/manual/:

Topic / RequirementReference File PointerKey Content Covered
Overview, SDKs & Deprecationresources/manual/overview-and-versioning.mdNutanix v4 API architecture, developer features, legacy API deprecation timeline (v0.8-v3), SDK compatibility, and versioning scheme.
Namespaces Referenceresources/manual/namespaces-reference.mdComplete matrix of all 18 v4 namespaces (AIOps, VMM, Flow, IAM, Volumes, Monitoring, Security, Objects, Multi Domain, LCM, Files, etc.), GA status, and version requirements.
Release Features & Updatesresources/manual/release-features.mdRelease-by-release API updates (pc.7.5.1, pc.7.5, pc.7.3, pc.2024.3.1, pc.2024.3), VM startup policies, custom attributes, ETag removal, Recovery Plans v4 APIs, Cloud KMS, and BMC APIs.
Troubleshooting & Known Issuesresources/manual/troubleshooting-and-known-issues.mdResolved issues, mandatory OData parameter workarounds ($filter, $limit, $select, etc.), RBAC owner permission fixes, service account VM creation workaround, category value deletion cleanup, and discontinued endpoints.
Master Documentation Indexresources/manual/master-index.mdMaster overview map of all v4 API reference documentation modules.

Completion criteria

  • Verify v4 API requests target Prism Central port 9440, authenticate with x-ntnx-api-key (or Basic Auth) loaded from environment/secrets, and use valid GA namespace paths and OData parameters.
  • Confirm mutating calls handle ETags where still enforced, asynchronous task polling, and documented version-specific workarounds (see troubleshooting-and-known-issues.md).
  • Validate live responses or SDK tests against the target Prism Central/AOS release, or cite the matching resources/manual/ module and release snapshot (March 2026 / pc.7.5.1) when advising offline.