Azure Networking Services Flow Logs API

The FlowLogs API from Azure Networking Services — 2 operation(s) for flowlogs.

GitHub OpenAPI

Operations 5

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs Flow logs list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName} Flow logs get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName} Flow logs create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName} Flow logs update tags #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName} Flow logs delete #

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-flowlogs-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. 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-flowlogs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WebApplicationFirewallManagement Flow Logs API
  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: FlowLogs
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs
  : get:
      operationId: FlowLogs_List
      tags:
      - FlowLogs
      description: Lists all flow log resources for the specified Network Watcher.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkWatcherName
        in: path
        description: The name of the network watcher.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLogListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Flow logs list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  : get:
      operationId: FlowLogs_Get
      tags:
      - FlowLogs
      description: Gets a flow log resource by name.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkWatcherName
        in: path
        description: The name of the network watcher.
        required: true
        schema:
          type: string
      - name: flowLogName
        in: path
        description: The name of the flow log resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLog'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Flow logs get
      x-summary-source: derived
    put:
      operationId: FlowLogs_CreateOrUpdate
      tags:
      - FlowLogs
      description: Create or update a flow log for the specified network security group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkWatcherName
        in: path
        description: The name of the network watcher.
        required: true
        schema:
          type: string
      - name: flowLogName
        in: path
        description: The name of the flow log resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'FlowLog' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLog'
        '201':
          description: Resource 'FlowLog' create operation succeeded
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLog'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/FlowLog'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowLog'
        description: Parameters that define the create or update flow log resource.
        required: true
      summary: Flow logs create or update
      x-summary-source: derived
    patch:
      operationId: FlowLogs_UpdateTags
      tags:
      - FlowLogs
      description: Update tags of the specified flow log.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkWatcherName
        in: path
        description: The name of the network watcher.
        required: true
        schema:
          type: string
      - name: flowLogName
        in: path
        description: The name of the flow log resource.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLog'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsObject'
        description: Parameters supplied to update flow log tags.
        required: true
      summary: Flow logs update tags
      x-summary-source: derived
    delete:
      operationId: FlowLogs_Delete
      tags:
      - FlowLogs
      description: Deletes the specified flow log resource.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: networkWatcherName
        in: path
        description: The name of the network watcher.
        required: true
        schema:
          type: string
      - name: flowLogName
        in: path
        description: The name of the flow log resource.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Flow logs delete
      x-summary-source: derived
components:
  schemas:
    TagsObject:
      type: object
      description: Tags object for patch operations.
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
    Resource:
      type: object
      description: Common resource representation.
      properties:
        id:
          type: string
          description: Resource ID.
        name:
          type: string
          description: Resource name.
          readOnly: true
        type:
          type: string
          description: Resource type.
          readOnly: true
        location:
          type: string
          description: Resource location.
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
      x-ms-azure-resource: true
    ErrorResponse:
      type: object
      description: The error object.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetails'
          title: Error
          description: The error details object.
    TrafficAnalyticsConfigurationProperties:
      type: object
      description: Parameters that define the configuration of traffic analytics.
      properties:
        enabled:
          type: boolean
          description: Flag to enable/disable traffic analytics.
        workspaceId:
          type: string
          description: The resource guid of the attached workspace.
        workspaceRegion:
          type: string
          description: The location of the attached workspace.
        workspaceResourceId:
          type: string
          description: Resource Id of the attached workspace.
        trafficAnalyticsInterval:
          type: integer
          format: int32
          description: The interval in minutes which would decide how frequently TA service should do flow analytics.
    FlowLog:
      type: object
      description: A flow log resource.
      properties:
        properties:
          $ref: '#/components/schemas/FlowLogPropertiesFormat'
          description: Properties of the flow log.
          x-ms-client-flatten: true
        etag:
          type: string
          description: A unique read-only string that changes whenever the resource is updated.
          readOnly: true
        identity:
          $ref: '#/components/schemas/ManagedServiceIdentity'
          description: FlowLog resource Managed Identity
      allOf:
      - $ref: '#/components/schemas/Resource'
    FlowLogListResult:
      type: object
      description: The response of a FlowLog list operation.
      properties:
        value:
          type: array
          description: The FlowLog items on this page
          items:
            $ref: '#/components/schemas/FlowLog'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    FlowLogFormatParameters:
      type: object
      description: Parameters that define the flow log format.
      properties:
        type:
          $ref: '#/components/schemas/FlowLogFormatType'
          description: The file type of flow log.
        version:
          type: integer
          format: int32
          description: The version (revision) of the flow log.
          default: 0
    FlowLogFormatType:
      type: string
      description: The file type of flow log.
      enum:
      - JSON
      x-ms-enum:
        name: FlowLogFormatType
        modelAsString: true
        values:
        - name: JSON
          value: JSON
          description: JSON
    FlowLogPropertiesFormat:
      type: object
      description: Parameters that define the configuration of flow log.
      properties:
        targetResourceId:
          type: string
          description: ID of network security group to which flow log will be applied.
        targetResourceGuid:
          type: string
          description: Guid of network security group to which flow log will be applied.
          readOnly: true
        storageId:
          type: string
          description: ID of the storage account which is used to store the flow log.
        enabledFilteringCriteria:
          type: string
          description: Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged.
        recordTypes:
          type: string
          description: Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged.
        enabled:
          type: boolean
          description: Flag to enable/disable flow logging.
        retentionPolicy:
          $ref: '#/components/schemas/RetentionPolicyParameters'
          description: Parameters that define the retention policy for flow log.
        format:
          $ref: '#/components/schemas/FlowLogFormatParameters'
          description: Parameters that define the flow log format.
        flowAnalyticsConfiguration:
          $ref: '#/components/schemas/TrafficAnalyticsProperties'
          description: Parameters that define the configuration of traffic analytics.
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: The provisioning state of the flow log.
          readOnly: true
      required:
      - targetResourceId
      - storageId
    RetentionPolicyParameters:
      type: object
      description: Parameters that define the retention policy for flow log.
      properties:
        days:
          type: integer
          format: int32
          description: Number of days to retain flow log records.
          default: 0
        enabled:
          type: boolean
          description: Flag to enable/disable retention.
          default: false
    ManagedServiceIdentity:
      type: object
      description: Identity for the resource.
      properties:
        principalId:
          type: string
          description: The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
          readOnly: true
        tenantId:
          type: string
          description: The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
          readOnly: true
        type:
          $ref: '#/components/schemas/ResourceIdentityType'
          description: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
        userAssignedIdentities:
          type: object
          description: 'The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.'
          additionalProperties:
            $ref: '#/components/schemas/ManagedServiceIdentityUserAssignedIdentities'
    ErrorDetails:
      type: object
      description: Common error details representation.
      properties:
        code:
          type: string
          description: Error code.
        target:
          type: string
          description: Error target.
        message:
          type: string
          description: Error message.
    ProvisioningState:
      type: string
      description: Provisioning states of a resource.
      enum:
      - Failed
      - Succeeded
      - Canceled
      - Creating
      - Updating
      - Deleting
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Failed
          value: Failed
          description: Failed
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Canceled
          value: Canceled
          description: Canceled
        - name: Creating
          value: Creating
          description: Creating
        - name: Updating
          value: Updating
          description: Updating
        - name: Deleting
          value: Deleting
          description: Deleting
    TrafficAnalyticsProperties:
      type: object
      description: Parameters that define the configuration of traffic analytics.
      properties:
        networkWatcherFlowAnalyticsConfiguration:
          $ref: '#/components/schemas/TrafficAnalyticsConfigurationProperties'
          description: Parameters that define the configuration of traffic analytics.
  parameters:
    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
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    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.