Microsoft Azure Nsp Access Rules API

The NspAccessRules API from Microsoft Azure, for nspaccessrules.

GitHub OpenAPI
Business capability
Cybersecurity Management BC-620

Operations 4

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}/profiles/{profileName}/accessRules/{accessRuleName} Get a network security perimeter access rule · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What does a specific access rule in my network security perimeter profile allow?”
“Can I look up one NSP access rule by name?”
Tell an agent
Get access rule {rule} in profile {profile} of perimeter {nsp} in {rg}.
Show NSP access rule {rule} from profile {profile} in perimeter {nsp}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName} Create or update an NSP access rule · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I allow inbound traffic into a network security perimeter profile?”
“Can I change an existing NSP access rule's address prefixes?”
Tell an agent
Create access rule {rule} in profile {profile} of perimeter {nsp} in {rg}.
Set NSP access rule {rule} in profile {profile} of {nsp} to properties {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName} Delete an NSP access rule · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete an access rule from a network security perimeter profile?”
“What traffic is blocked once I remove an NSP access rule?”
Tell an agent destructive · confirm first
Delete access rule {rule} in profile {profile} of perimeter {nsp} in {rg}.
Remove NSP access rule {rule} from profile {profile} in {nsp}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules List access rules in an NSP profile · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which access rules are defined in a network security perimeter profile?”
“Can I page through NSP access rules with a top limit?”
Tell an agent
List access rules in profile {profile} of perimeter {nsp} in {rg}.
Show the first {top} access rules in NSP profile {profile} of {nsp}.

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-nspaccessrules-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-nspaccessrules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure NetworkSecurityPerimeter Nsp Access Rules…
  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: NspAccessRules
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}
  : parameters:
    - $ref: ./network.json#/parameters/SubscriptionIdParameter
    - $ref: '#/components/parameters/ResourceGroupNameParameter'
    - $ref: '#/components/parameters/NetworkSecurityPerimeterNameParameter'
    - $ref: '#/components/parameters/ProfileNameParameter'
    - $ref: '#/components/parameters/AccessRuleNameParameter'
    - $ref: ./network.json#/parameters/ApiVersionParameter
    get:
      tags:
      - NspAccessRules
      operationId: microsoftAzureNspaccessrulesGet
      description: Gets the specified NSP access rule by name.
      responses:
        '200':
          description: OK - Returns information about the NSP access rule.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        NspAccessRuleGet:
          $ref: ./examples/NspAccessRuleGet.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - NspAccessRules
      operationId: microsoftAzureNspaccessrulesCreateorupdate
      description: Creates or updates a network access rule.
      responses:
        '200':
          description: Updated - Existing access rule is updated. Returns the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        '201':
          description: Create - Returns the NspAccessRule resource created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRule'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        NspAccessRulePut:
          $ref: ./examples/NspAccessRulePut.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NspAccessRule'
        description: Parameters that hold the NspAccessRule resource to be created/updated.
        required: true
    delete:
      tags:
      - NspAccessRules
      operationId: microsoftAzureNspaccessrulesDelete
      description: Deletes an NSP access rule.
      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:
        NspAccessRulesDelete:
          $ref: ./examples/NspAccessRuleDelete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules
  : get:
      tags:
      - NspAccessRules
      operationId: microsoftAzureNspaccessrulesList
      description: Lists the NSP access rules in the specified NSP profile.
      x-ms-pageable:
        nextLinkName: nextLink
      parameters:
      - $ref: ./network.json#/parameters/SubscriptionIdParameter
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/NetworkSecurityPerimeterNameParameter'
      - $ref: '#/components/parameters/ProfileNameParameter'
      - $ref: ./network.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/ListTopParameter'
      - $ref: '#/components/parameters/ListSkipTokenParameter'
      responses:
        '200':
          description: OK - Returns the list of NSP access rules.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NspAccessRuleListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ./network.json#/definitions/CloudError
      x-ms-examples:
        NspAccessRulesList:
          $ref: ./examples/NspAccessRuleList.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  parameters:
    ProfileNameParameter:
      name: profileName
      in: path
      required: true
      description: The name of the NSP profile.
      x-ms-parameter-location: method
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group.
      x-ms-parameter-location: method
      schema:
        type: string
    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
    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
    AccessRuleNameParameter:
      name: accessRuleName
      in: path
      required: true
      description: The name of the NSP access rule.
      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
  schemas:
    PerimeterBasedAccessRule:
      type: object
      properties:
        id:
          readOnly: true
          type: string
          description: NSP id in the ARM id format.
        perimeterGuid:
          readOnly: true
          type: string
          description: Resource guid of the NSP supplied.
        location:
          readOnly: true
          type: string
          description: Location of the NSP supplied.
    NSPProvisioningState:
      type: string
      readOnly: true
      description: The current provisioning state.
      enum:
      - Succeeded
      - Creating
      - Updating
      - Deleting
      - Accepted
      - Failed
      x-ms-enum:
        name: nspProvisioningState
        modelAsString: true
    NspAccessRuleListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/NspAccessRule'
          description: Gets a page of NSP access rule
        nextLink:
          type: string
          description: Gets the URL to get the next page of results.
      description: Result of the request to list NSP access rules. Contains a list of NSP access rules and a URL link to get the next set of results.
    NspAccessRuleProperties:
      type: object
      properties:
        provisioningState:
          readOnly: true
          $ref: '#/components/schemas/NSPProvisioningState'
          description: The provisioning state of the scope assignment resource.
        direction:
          type: string
          enum:
          - Inbound
          - Outbound
          x-ms-enum:
            name: AccessRuleDirection
            modelAsString: true
          description: Direction that specifies whether the access rules is inbound/outbound.
        addressPrefixes:
          type: array
          items:
            type: string
          description: Inbound address prefixes (IPv4/IPv6)
        fullyQualifiedDomainNames:
          type: array
          items:
            type: string
          description: Outbound rules fully qualified domain name format.
        subscriptions:
          type: array
          items:
            x-ms-client-flatten: true
            $ref: '#/components/schemas/SubscriptionId'
          description: List of subscription ids
        networkSecurityPerimeters:
          readOnly: true
          type: array
          items:
            x-ms-client-flatten: true
            $ref: '#/components/schemas/PerimeterBasedAccessRule'
          description: Rule specified by the perimeter id.
        emailAddresses:
          type: array
          items:
            type: string
          description: Outbound rules email address format.
        phoneNumbers:
          type: array
          items:
            type: string
          description: Outbound rules phone number format.
      description: Properties of NSP access rule.
    SubscriptionId:
      type: object
      properties:
        id:
          type: string
          description: Subscription id in the ARM id format.
    NspAccessRule:
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/NspAccessRuleProperties'
          description: Properties of the NSP access rule.
        name:
          type: string
          description: The name of the access rule that is unique within a profile. This name can be used to access the resource.
        id:
          readOnly: true
          type: string
          description: NSP access rule identifier.
        type:
          readOnly: true
          type: string
          description: Resource type.
      allOf:
      - $ref: ./network.json#/definitions/Resource
      description: The NSP access rule resource
  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.