Azure Networking Services Network Security Perimeter Access Rules API

The NetworkSecurityPerimeterAccessRules API from Azure Networking Services — 3 operation(s) for networksecurityperimeteraccessrules.

GitHub OpenAPI

Operations 5

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules Network security perimeter access rules list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName} Network security perimeter access rules get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName} Network security perimeter access rules create or update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName} Network security perimeter access rules delete #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}/reconcile Network security perimeter access rules reconcile #

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/azure-networking-services:azure-networking-services-networksecurityperimeteraccessrules-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

azure-networking-services-networksecurityperimeteraccessrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WebApplicationFirewallManagement Network Security Perimeter…
  version: '2026-03-01'
  description: APIs to manage Microsoft Azure network resources.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: NetworkSecurityPerimeterAccessRules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules
  : get:
      operationId: NetworkSecurityPerimeterAccessRules_List
      tags:
      - NetworkSecurityPerimeterAccessRules
      description: Lists the NSP access rules in the specified NSP profile.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkSecurityPerimeterName
        in: path
        description: The name of the network security perimeter.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: profileName
        in: path
        description: The name of the NSP profile.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: $top
        in: query
        description: An optional query parameter which specifies the maximum number of records to be returned by the server.
        required: false
        schema:
          type: integer
          format: int32
          maximum: 20
          minimum: 1
      - name: $skipToken
        in: query
        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.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRuleListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Network security perimeter access rules list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}
  : get:
      operationId: NetworkSecurityPerimeterAccessRules_Get
      tags:
      - NetworkSecurityPerimeterAccessRules
      description: Gets the specified NSP access rule by name.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkSecurityPerimeterName
        in: path
        description: The name of the network security perimeter.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: profileName
        in: path
        description: The name of the NSP profile.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: accessRuleName
        in: path
        description: The name of the NSP access rule.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Network security perimeter access rules get
      x-summary-source: derived
    put:
      operationId: NetworkSecurityPerimeterAccessRules_CreateOrUpdate
      tags:
      - NetworkSecurityPerimeterAccessRules
      description: Creates or updates a network access rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkSecurityPerimeterName
        in: path
        description: The name of the network security perimeter.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: profileName
        in: path
        description: The name of the NSP profile.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: accessRuleName
        in: path
        description: The name of the NSP access rule.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      responses:
        '200':
          description: Resource 'NspAccessRule' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        '201':
          description: Resource 'NspAccessRule' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NspAccessRule'
        description: Parameters that hold the NspAccessRule resource to be created/updated.
        required: true
      summary: Network security perimeter access rules create or update
      x-summary-source: derived
    delete:
      operationId: NetworkSecurityPerimeterAccessRules_Delete
      tags:
      - NetworkSecurityPerimeterAccessRules
      description: Deletes an NSP access rule.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkSecurityPerimeterName
        in: path
        description: The name of the network security perimeter.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: profileName
        in: path
        description: The name of the NSP profile.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: accessRuleName
        in: path
        description: The name of the NSP access rule.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Network security perimeter access rules delete
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}/reconcile
  : post:
      operationId: NetworkSecurityPerimeterAccessRules_Reconcile
      tags:
      - NetworkSecurityPerimeterAccessRules
      description: Reconcile NSP access rules
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkSecurityPerimeterName
        in: path
        description: The name of the network security perimeter.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: profileName
        in: path
        description: The name of the NSP profile.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      - name: accessRuleName
        in: path
        description: The name of the NSP access rule.
        required: true
        schema:
          type: string
          maxLength: 80
          pattern: (^[a-zA-Z0-9]+[a-zA-Z0-9_.-]*[a-zA-Z0-9_]+$)|(^[a-zA-Z0-9]$)
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema: {}
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema: {}
        description: Parameters for NSP access rule reconcile
        required: true
      summary: Network security perimeter access rules reconcile
      x-summary-source: derived
components:
  schemas:
    AccessRuleDirection:
      type: string
      description: Direction that specifies whether the access rules is inbound/outbound.
      enum:
      - Inbound
      - Outbound
      x-ms-enum:
        name: AccessRuleDirection
        modelAsString: true
        values:
        - name: Inbound
          value: Inbound
          description: Inbound
        - name: Outbound
          value: Outbound
          description: Outbound
    NspAccessRuleListResult:
      type: object
      description: The response of a NspAccessRule list operation.
      properties:
        value:
          type: array
          description: The NspAccessRule items on this page
          items:
            $ref: '#/components/schemas/NspAccessRule'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    NspAccessRule:
      type: object
      description: The NSP access rule resource
      properties:
        properties:
          $ref: '#/components/schemas/NspAccessRuleProperties'
          description: Properties of the NSP access rule.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/SecurityPerimeterProxyResource'
    NspAccessRuleProperties:
      type: object
      description: Properties of NSP access rule.
      properties:
        provisioningState:
          $ref: '#/components/schemas/NspProvisioningState'
          description: The provisioning state of the scope assignment resource.
          readOnly: true
        direction:
          $ref: '#/components/schemas/AccessRuleDirection'
          description: Direction that specifies whether the access rules is inbound/outbound.
        addressPrefixes:
          type: array
          description: Inbound address prefixes (IPv4/IPv6)
          items:
            type: string
        fullyQualifiedDomainNames:
          type: array
          description: Outbound rules in fully qualified domain name format.
          items:
            type: string
        subscriptions:
          type: array
          description: List of subscription ids
          items:
            $ref: '#/components/schemas/SubscriptionId'
          x-ms-client-flatten: true
        networkSecurityPerimeters:
          type: array
          description: Rule specified by the perimeter id.
          items:
            $ref: '#/components/schemas/PerimeterBasedAccessRule'
          readOnly: true
          x-ms-client-flatten: true
        emailAddresses:
          type: array
          description: Outbound rules in email address format. This access rule type is currently unavailable for use.
          items:
            type: string
        phoneNumbers:
          type: array
          description: Outbound rules in phone number format. This access rule type is currently unavailable for use.
          items:
            type: string
        serviceTags:
          type: array
          description: Inbound rules of type service tag. This access rule type is currently unavailable for use.
          items:
            type: string
    SubscriptionId:
      type: object
      properties:
        id:
          type: string
          format: arm-id
          description: Subscription id in the ARM id format.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.Resources/subscriptions
    PerimeterBasedAccessRule:
      type: object
      properties:
        id:
          type: string
          format: arm-id
          description: NSP id in the ARM id format.
          readOnly: true
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.Network/networkSecurityPerimeters
        perimeterGuid:
          type: string
          description: Resource guid of the NSP supplied.
          readOnly: true
        location:
          type: string
          description: Location of the NSP supplied.
          readOnly: true
    NspProvisioningState:
      type: string
      description: The current provisioning state.
      enum:
      - Succeeded
      - Creating
      - Updating
      - Deleting
      - Accepted
      - Failed
      x-ms-enum:
        name: NspProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Creating
          value: Creating
          description: Creating
        - name: Updating
          value: Updating
          description: Updating
        - name: Deleting
          value: Deleting
          description: Deleting
        - name: Accepted
          value: Accepted
          description: Accepted
        - name: Failed
          value: Failed
          description: Failed
    CloudError:
      type: object
      description: An error response from the service.
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Cloud error body.
      x-ms-external: true
    SecurityPerimeterProxyResource:
      type: object
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/SecurityPerimeterResource'
      x-ms-azure-resource: true
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
  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.