How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NCM Self-Service and Nutanix v4 API Integration: Generate Ops Mgmt report using NCM Self-Service

calendar_today January 26, 2026 person Chris Rasmussen domain nutanix

Introduction

Nutanix Intelligent Operations allows the generation of detailed reports. These reports can be configured to include a number of fields or data points, resulting in timely information being sent to the people that need it. When combined with NCM Self-Service Playbooks and NCM Self-Service Runbooks, a powerful, automated reporting system can be created, reducing the need for manual interaction or report creation. In today’s quick demo we’ll use NCM Self-Service Playbooks to react to a specific event and, when that event occurs, execute an NCM Self-Service Runbook that will generate an Intelligent Operations report. To demonstrate how an automated environment could integrate this approach into custom applications, the runbook will generate the report using the Nutanix v4 APIs.

Let’s get started. Note: All images throughout this article can be clicked to view full size.

Playbooks vs Runbooks

Before looking at the demo, let’s take a quick look at the difference between an NCM Intelligent Operations Playbook and an NCM Self-Service Runbook.

Runbooks

An NCM Self-Service Runbook is a collection of tasks and procedures that be run across various endpoints. For example, this demo’s runbook runs on two different endpoints:

  1. A Linux virtual machine that has been configured specifically for the purposes of running Python scripts
  2. Prism Central, as the endpoint for Nutanix v4 API requests

Runbooks are intended to be run either via the Prism Central UI or through some other intentional mechanism. Runbooks cannot be run on a scheduled basis unless combined with an NCM Intelligent Operations playbook. Runbook task types at the time of writing are available on the Runbooks in Self-Service portal page.

Playbooks

NCM Intelligent Operations Playbooks, whilst they can be run manually, enable powerful, event-triggered automations. Triggers can include events such as a VM being created, a cluster event such a host entering maintenance mode or an alert.

The playbook used in this demo reacts to the “Created VM” event trigger and will execute every time a new VM is created.

Playbook actions at the time of writing are available on the Task Automation – Playbooks portal page.

Scenario

Our demo environment has an existing Intelligent Operations report configuration named cr-report-config. The specific report configuration won’t impact the outcome of this demo, although you can download the demo’s report configuration from the NutanixDev GitHub.

Required Outcomes

At the end of this demo, we will have an NCM Self-Service Playbook that responds to the creation of a VM. The playbook will execute an NCM Self-Service runbook which, in turn, generates an Intelligent Operations report using the Nutanix v4 opsmgmt APIs.

Prerequisites

To follow along with this demo in your own environment, the following assumptions will be made.

  • You have already created a Nutanix Prism Central Intelligent Operations report configuration
    • However, because this demo is intended to demonstrate the execution of a report configuration using NCM Self-Service, Intelligent Ops and REST APIs, the report configuration shown is for demo purposes only.
    • The report configuration used in this demo can be downloaded from the NutanixDev GitHub.
  • You have deployed a Linux-based VM that has been configured as an NCM Self-Service Python endpoint. For detailed instructions on creating a Python endpoint, see the NCM Self-Service Administration and Operations Guide.
    • The Python endpoint will need the requests and urllib3 modules available in the virtual environment.
    • An example endpoint is shown in the following screenshot:
open_in_new Read original post