ARMO Network Policy API

The Network Policy API from ARMO — 2 operation(s) for network policy.

Operations 2

POST /networkpolicies Retrieve all network policies for a customer #
POST /networkpolicies/generate Generate network policies for specific workloads #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/armosec:armosec-network-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

armosec-network-policy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Documentation of Armo Platform API

    How to get the API key Get the API key from the Armo platform


    Navigate to the https://cloud.armosec.io


    Click on Settings (bottom left corner)


    Under the Agent Access Keys section, generate a new access key or use an existing one.


    Copy and save the access key, as it will not appear again.


    Using the API Key in Requests Pass the access key in the request headers under the key x-api-key as shown below:

    curl -X ''POST'' \

    ''https://api.armosec.io/api/v1/some-endpoint'' \

    -H ''accept: application/json'' \

    -H ''x-api-key: YOUR_ACCESS_KEY'' \

    -d ''{}'''
  title: ARMO PLATFORM Network Policy API
  version: 1.0.0
servers:
- url: https://api.armosec.io/api/v1
- url: http://api.armosec.io/api/v1
security:
- customerGUID:
  - '[]'
- accessKey:
  - '[]'
- openID:
  - '[]'
tags:
- name: Network Policy
paths:
  /networkpolicies:
    post:
      description: This endpoint retrieves all network policies for the provided customer GUID, allowing optional filters to narrow down results.
      tags:
      - Network Policy
      summary: Retrieve all network policies for a customer
      operationId: listNetworkPolicies
      parameters:
      - x-go-name: CustomerGUID
        description: The customer GUID for identifying the customer.
        name: customerGUID
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
        '400':
          description: ''
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                innerFilters:
                  type: array
                  items:
                    type: object
                    properties:
                      clusterShortName:
                        description: Specify the cluster's short name.
                        type: string
                        x-go-name: ClusterShortName
                      kind:
                        description: Filter by Kubernetes object kind (e.g., Deployment, Pod, etc.).
                        type: string
                        x-go-name: Kind
                      label:
                        description: Filter by specific labels.
                        type: string
                        x-go-name: Label
                      namespace:
                        description: Filter by namespace.
                        type: string
                        x-go-name: Namespace
                      status:
                        description: Filter by network policy status.
                        type: string
                        x-go-name: Status
                      type:
                        description: Filter by network policy type.
                        type: string
                        x-go-name: Type
                      workload:
                        description: Filter by workload name.
                        type: string
                        x-go-name: Workload
                  x-go-name: InnerFilters
        description: Optional filters for narrowing down the network policies.
  /networkpolicies/generate:
    post:
      description: This endpoint generates network policies for the specified workload by providing the required filters.
      tags:
      - Network Policy
      summary: Generate network policies for specific workloads
      operationId: generateNetworkPolicy
      parameters:
      - x-go-name: CustomerGUID
        description: The customer GUID for identifying the customer.
        name: customerGUID
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
        '400':
          description: ''
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                innerFilters:
                  type: array
                  items:
                    type: object
                    properties:
                      cluster:
                        description: The ARN of the cluster.
                        type: string
                        x-go-name: Cluster
                      name:
                        description: The name of the workload.
                        type: string
                        x-go-name: Name
                      namespace:
                        description: The namespace where the workload resides.
                        type: string
                        x-go-name: Namespace
                  x-go-name: InnerFilters
        description: Required filters for generating network policies.
        required: true
components:
  securitySchemes:
    accessKey:
      type: apiKey
      name: x-api-key
      in: header
    customerGUID:
      type: apiKey
      name: customerGUID
      in: query
x-provenance:
  method: harvested
  publisher: ARMO
  source: https://api.armosec.io/openapi/v2/swagger.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)