Nutanix Network Security Rules API

Manage Flow microsegmentation policies that control network traffic between VMs based on categories.

OpenAPI Specification

nutanix-network-security-rules-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Nutanix Prism Central API v3 Alerts Network Security Rules API
  description: RESTful API for managing Nutanix clusters, VMs, storage, networking, and other infrastructure components through Prism Central. The v3 API uses an intent-based model where resources are defined by their desired state, and the system works to achieve that state. All list operations use POST with server-side filtering, grouping, and sorting. Authentication is via HTTP Basic Auth with Prism Central credentials.
  version: 3.1.0
  contact:
    name: Nutanix Developer Support
    email: developer@nutanix.com
    url: https://www.nutanix.dev/
  termsOfService: https://www.nutanix.com/legal/terms-of-use
servers:
- url: https://{prismCentralIp}:9440/api/nutanix/v3
  description: Prism Central Server
  variables:
    prismCentralIp:
      default: localhost
      description: IP address or FQDN of the Prism Central instance.
security:
- basicAuth: []
tags:
- name: Network Security Rules
  description: Manage Flow microsegmentation policies that control network traffic between VMs based on categories.
paths:
  /network_security_rules/list:
    post:
      operationId: listNetworkSecurityRules
      summary: Nutanix List network security rules
      description: Retrieves a list of Flow network security rules with optional filtering and pagination.
      tags:
      - Network Security Rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListMetadata'
      responses:
        '200':
          description: Success
        '401':
          description: Unauthorized
  /network_security_rules:
    post:
      operationId: createNetworkSecurityRule
      summary: Nutanix Create a network security rule
      description: Creates a new Flow microsegmentation network security rule that controls traffic between VMs based on categories.
      tags:
      - Network Security Rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '202':
          description: Accepted - Rule creation task started
        '400':
          description: Bad request
        '401':
          description: Unauthorized
  /network_security_rules/{uuid}:
    get:
      operationId: getNetworkSecurityRule
      summary: Nutanix Get a network security rule
      description: Retrieves the configuration of a specific network security rule by UUID.
      tags:
      - Network Security Rules
      parameters:
      - $ref: '#/components/parameters/Uuid'
      responses:
        '200':
          description: Success
        '401':
          description: Unauthorized
        '404':
          description: Rule not found
    put:
      operationId: updateNetworkSecurityRule
      summary: Nutanix Update a network security rule
      description: Updates the configuration of an existing network security rule.
      tags:
      - Network Security Rules
      parameters:
      - $ref: '#/components/parameters/Uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '202':
          description: Accepted - Rule update task started
        '401':
          description: Unauthorized
        '404':
          description: Rule not found
    delete:
      operationId: deleteNetworkSecurityRule
      summary: Nutanix Delete a network security rule
      description: Deletes a network security rule identified by its UUID.
      tags:
      - Network Security Rules
      parameters:
      - $ref: '#/components/parameters/Uuid'
      responses:
        '202':
          description: Accepted - Rule deletion task started
        '401':
          description: Unauthorized
        '404':
          description: Rule not found
components:
  parameters:
    Uuid:
      name: uuid
      in: path
      required: true
      description: The UUID of the entity.
      schema:
        type: string
        format: uuid
  schemas:
    ListMetadata:
      type: object
      description: Request body for list operations supporting server-side filtering, sorting, and pagination.
      properties:
        kind:
          type: string
          description: The entity kind to list.
        offset:
          type: integer
          description: Offset from the start of the entity list.
          minimum: 0
        length:
          type: integer
          description: The number of records to retrieve.
          minimum: 1
          maximum: 500
        filter:
          type: string
          description: The filter criteria in FIQL format.
        sort_order:
          type: string
          description: The sort order.
          enum:
          - ASCENDING
          - DESCENDING
        sort_attribute:
          type: string
          description: The attribute to sort results by.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Authentication using Prism Central username and password credentials.
externalDocs:
  description: Nutanix Prism Central v3 API Documentation
  url: https://www.nutanix.dev/api_references/prism-central-v3/