Microsoft Azure Network Security Perimeters API

The NetworkSecurityPerimeters API from Microsoft Azure, for networksecurityperimeters.

GitHub OpenAPI
Business capability
Security Architecture Management BC-620.50

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName} Get a network security perimeter · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What is configured on one of my network security perimeters?”
“Can I look up a perimeter by its name in a resource group?”
Tell an agent
Get network security perimeter {networkSecurityPerimeterName} in resource group {resourceGroupName}.
Show details of perimeter {networkSecurityPerimeterName} in {resourceGroupName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName} Create or update a network security perimeter · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I set up a network security perimeter around my PaaS resources?”
“Can I pick a region when creating a new perimeter?”
Tell an agent
Create network security perimeter {networkSecurityPerimeterName} in resource group {resourceGroupName}.
Create perimeter {networkSecurityPerimeterName} in {resourceGroupName} located in {location}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName} Delete a network security perimeter · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove a network security perimeter I no longer need?”
“Can I tear down a perimeter through the API?”
Tell an agent destructive · confirm first
Delete network security perimeter {networkSecurityPerimeterName} in resource group {resourceGroupName}.
Remove perimeter {networkSecurityPerimeterName} from {resourceGroupName}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName} Update tags on a network security perimeter · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I retag an existing network security perimeter?”
“Can I change a perimeter's tags without redefining it?”
Tell an agent
Set tags on network security perimeter {networkSecurityPerimeterName} in {resourceGroupName} to {tags}.
Patch the tags of perimeter {networkSecurityPerimeterName} in resource group {resourceGroupName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters List network security perimeters in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Network… #
Ask an LLM
“Which network security perimeters exist across my whole subscription?”
“Can I page through perimeters subscription-wide with a skip token?”
Tell an agent
List all network security perimeters in my subscription.
Show {top} perimeters across the subscription continuing from {skipToken}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters List network security perimeters in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What perimeters are defined in this resource group?”
“Can I limit how many perimeters a resource group listing returns?”
Tell an agent
List network security perimeters in resource group {resourceGroupName}.
Show the first {top} perimeters in group {resourceGroupName}.

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/microsoft-azure:microsoft-azure-networksecurityperimeters-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-azure-networksecurityperimeters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure NetworkSecurityPerimeter Network Security…
  description: The Network Security Perimeter API provides a RESTful set of web services that interact with network security perimeter resource.
  version: 2023-07-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: NetworkSecurityPerimeters
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}
  : parameters:
    - $ref: ./network.json#/parameters/SubscriptionIdParameter
    - $ref: '#/components/parameters/ResourceGroupNameParameter'
    - $ref: '#/components/parameters/NetworkSecurityPerimeterNameParameter'
    - $ref: ./network.json#/parameters/ApiVersionParameter
    get:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersGet
      description: Gets the specified network security perimeter by the name.
      responses:
        '200':
          description: Request is successful. Returns the resulting network security perimeter resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeter'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        NetworkSecurityPerimeterGet:
          $ref: ./examples/NetworkSecurityPerimeterGet.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersCreateorupdate
      description: Creates or updates a Network Security Perimeter.
      responses:
        '200':
          description: Resource Updated. Returns the network security perimeter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeter'
        '201':
          description: Resource Created. Returns the network security perimeter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeter'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        Put Network Security Perimeter:
          $ref: ./examples/NetworkSecurityPerimeterPut.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkSecurityPerimeter'
        description: Parameter supplied to create or update the network security perimeter.
        required: true
    delete:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersDelete
      description: Deletes a network security perimeter.
      responses:
        '200':
          description: Delete Succeed.
        '204':
          description: Request successful. The resource does not exist.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        NetworkSecurityPerimeterDelete:
          $ref: ./examples/NetworkSecurityPerimeterDelete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersPatch
      description: Patch Tags for a Network Security Perimeter.
      responses:
        '200':
          description: Request is successful. Returns the resulting network security perimeter resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeter'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        Patch Network Security Perimeter:
          $ref: ./examples/NetworkSecurityPerimeterPatch.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTagsRequest'
        description: Parameter supplied to the network security perimeter.
        required: true
  /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters:
    get:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersListbysubscription
      description: List all network security perimeters in a subscription.
      parameters:
      - $ref: ./network.json#/parameters/SubscriptionIdParameter
      - $ref: ./network.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/ListTopParameter'
      - $ref: '#/components/parameters/ListSkipTokenParameter'
      responses:
        '200':
          description: Request is successful. Returns the list of the network security perimeters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeterListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        NetworkSecurityPerimetersList:
          $ref: ./examples/NetworkSecurityPerimeterListAll.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Network…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters:
    get:
      tags:
      - NetworkSecurityPerimeters
      operationId: microsoftAzureNetworksecurityperimetersList
      description: List network security perimeters in a resource group.
      x-ms-pageable:
        nextLinkName: nextLink
      parameters:
      - $ref: ./network.json#/parameters/SubscriptionIdParameter
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: ./network.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/ListTopParameter'
      - $ref: '#/components/parameters/ListSkipTokenParameter'
      responses:
        '200':
          description: Request is successful. Returns a list of network security perimeters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkSecurityPerimeterListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        List Network Security Perimeter:
          $ref: ./examples/NetworkSecurityPerimeterList.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    NetworkSecurityPerimeterProperties:
      type: object
      properties:
        provisioningState:
          readOnly: true
          $ref: '#/components/schemas/NSPProvisioningState'
          description: The provisioning state of the scope assignment resource.
        perimeterGuid:
          readOnly: true
          type: string
          description: perimeter guid of the network security perimeter.
      description: Properties of network security perimeter.
    NetworkSecurityPerimeter:
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/NetworkSecurityPerimeterProperties'
          description: The network security perimeter properties
        location:
          type: string
          description: The location in which NSP is created.
        name:
          type: string
          description: The name of the resource that is unique within a resource group. This name can be used to access the resource.
        id:
          readOnly: true
          type: string
          description: Network security perimeter identifier.
        type:
          readOnly: true
          type: string
          description: Resource type.
      allOf:
      - $ref: ./network.json#/definitions/Resource
      description: The Network Security Perimeter resource
    NSPProvisioningState:
      type: string
      readOnly: true
      description: The current provisioning state.
      enum:
      - Succeeded
      - Creating
      - Updating
      - Deleting
      - Accepted
      - Failed
      x-ms-enum:
        name: nspProvisioningState
        modelAsString: true
    UpdateTagsRequest:
      type: object
      properties:
        id:
          readOnly: true
          type: string
          description: Network security perimeter identifier.
        tags:
          type: object
          additionalProperties:
            type: string
          description: List of tags for Network Security Perimeter
      description: Update tags request.
    NetworkSecurityPerimeterListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/NetworkSecurityPerimeter'
          description: Gets a page of NetworkSecurityPerimeter
        nextLink:
          type: string
          description: Gets the URL to get the next page of results.
      description: Result of the request to list NetworkSecurityPerimeter. It contains a list of network security perimeters and a URL link to get the next set of results.
  parameters:
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group.
      x-ms-parameter-location: method
      schema:
        type: string
    ListTopParameter:
      name: $top
      description: An optional query parameter which specifies the maximum number of records to be returned by the server.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        maximum: 20
        minimum: 1
    ListSkipTokenParameter:
      name: $skipToken
      description: SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
    NetworkSecurityPerimeterNameParameter:
      name: networkSecurityPerimeterName
      in: path
      required: true
      description: The name of the network security perimeter.
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.