Azure Networking Services Traffic Analytics API

The TrafficAnalytics API from Azure Networking Services — 2 operation(s) for trafficanalytics.

GitHub OpenAPI

Operations 2

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog Network watchers set flow log configuration #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus Network watchers get flow log status #

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-trafficanalytics-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-trafficanalytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WebApplicationFirewallManagement Traffic Analytics 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: TrafficAnalytics
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog
  : post:
      operationId: NetworkWatchers_SetFlowLogConfiguration
      tags:
      - TrafficAnalytics
      description: Configures flow log and traffic analytics (optional) on a specified 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
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLogInformation'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          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
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLogInformation'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/FlowLogInformation'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowLogInformation'
        description: Parameters that define the configuration of flow log.
        required: true
      summary: Network watchers set flow log configuration
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus
  : post:
      operationId: NetworkWatchers_GetFlowLogStatus
      tags:
      - TrafficAnalytics
      description: Queries status of flow log and traffic analytics (optional) on a specified 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
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLogInformation'
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          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
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowLogInformation'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/FlowLogInformation'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowLogStatusParameters'
        description: Parameters that define a resource to query flow log and traffic analytics (optional) status.
        required: true
      summary: Network watchers get flow log status
      x-summary-source: derived
components:
  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
    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
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  schemas:
    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.
    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
    FlowLogStatusParameters:
      type: object
      description: Parameters that define a resource to query flow log and traffic analytics (optional) status.
      properties:
        targetResourceId:
          type: string
          description: The target resource where getting the flow log and traffic analytics (optional) status.
      required:
      - targetResourceId
    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
    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
    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.
    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.
    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'
    FlowLogInformation:
      type: object
      description: Information on the configuration of flow log and traffic analytics (optional) .
      properties:
        targetResourceId:
          type: string
          description: The ID of the resource to configure for flow log and traffic analytics (optional) .
        properties:
          $ref: '#/components/schemas/FlowLogProperties'
          description: Properties of the flow log.
          x-ms-client-flatten: true
        flowAnalyticsConfiguration:
          $ref: '#/components/schemas/TrafficAnalyticsProperties'
          description: Parameters that define the configuration of traffic analytics.
        identity:
          $ref: '#/components/schemas/ManagedServiceIdentity'
          description: FlowLog resource Managed Identity
      required:
      - targetResourceId
      - properties
    FlowLogProperties:
      type: object
      description: Parameters that define the configuration of flow log.
      properties:
        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.
      required:
      - storageId
      - enabled
  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.