Azure Stream Analytics Functions API

The Functions API from Azure Stream Analytics — 7 operation(s) for functions, served through Azure Resource Manager (api-version 2020-03-01).

GitHub OpenAPI

Operations 7

PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName} Functions create or replace #
PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName} Functions update #
DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName} Functions delete #
GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName} Functions get #
GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions Functions list by streaming job #
POST /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test Functions test #
POST /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition Functions retrieve default definition #

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-stream-analytics:microsoft-azure-stream-analytics-functions-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-stream-analytics-functions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: StreamAnalyticsManagementClient Functions API
  version: '2020-03-01'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Functions
paths:
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}
  : put:
      tags:
      - Functions
      operationId: Functions_CreateOrReplace
      description: Creates a function or replaces an already existing function under an existing streaming job.
      parameters:
      - name: If-Match
        in: header
        required: false
        x-ms-client-name: IfMatch
        description: The ETag of the function. Omit this value to always overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
        schema:
          type: string
      - name: If-None-Match
        in: header
        required: false
        x-ms-client-name: IfNoneMatch
        description: Set to '*' to allow a new function to be created, but to prevent updating an existing function. Other values will result in a 412 Pre-condition Failed response.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: The function was successfully created or replaced.
          headers:
            ETag:
              description: The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Function'
        '201':
          description: The function was successfully created or replaced.
          headers:
            ETag:
              description: The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Function'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Function'
        description: The definition of the function that will be used to create a new function or replace the existing one under the streaming job.
        required: true
      summary: Functions create or replace
      x-summary-source: derived
    patch:
      tags:
      - Functions
      operationId: Functions_Update
      description: Updates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition.
      parameters:
      - name: If-Match
        in: header
        required: false
        x-ms-client-name: IfMatch
        description: The ETag of the function. Omit this value to always overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: The function was successfully updated.
          headers:
            ETag:
              description: The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Function'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Function'
        description: A function object. The properties specified here will overwrite the corresponding properties in the existing function (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing function will remain the same and not change as a result of this PATCH operation.
        required: true
      summary: Functions update
      x-summary-source: derived
    delete:
      tags:
      - Functions
      operationId: Functions_Delete
      description: Deletes a function from the streaming job.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: The function was successfully deleted.
        '204':
          description: The function does not exist.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      summary: Functions delete
      x-summary-source: derived
    get:
      tags:
      - Functions
      operationId: Functions_Get
      description: Gets details about the specified function.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: Successfully retrieved the specified function.
          headers:
            ETag:
              description: The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Function'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      summary: Functions get
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions
  : get:
      tags:
      - Functions
      operationId: Functions_ListByStreamingJob
      description: Lists all of the functions under the specified streaming job.
      parameters:
      - name: $select
        in: query
        required: false
        description: The $select OData query parameter. This is a comma-separated list of structural properties to include in the response, or "*" to include all properties. By default, all properties are returned except diagnostics. Currently only accepts '*' as a valid value.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      responses:
        '200':
          description: Successfully listed the functions under the specified streaming job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunctionListResult'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Functions list by streaming job
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test
  : post:
      tags:
      - Functions
      operationId: Functions_Test
      description: Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: The test operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceTestStatus'
        '202':
          description: The test request was successfully initiated.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Function'
        description: If the function specified does not already exist, this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested.
      summary: Functions test
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition
  : post:
      tags:
      - Functions
      operationId: Functions_RetrieveDefaultDefinition
      description: Retrieves the default definition of a function based on the parameters specified.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/StreamingJobNameParameter'
      - $ref: '#/components/parameters/FunctionNameParameter'
      responses:
        '200':
          description: Successfully retrieved the function's default definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Function'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FunctionRetrieveDefaultDefinitionParameters'
        description: Parameters used to specify the type of function to retrieve the default definition for.
      summary: Functions retrieve default definition
      x-summary-source: derived
components:
  parameters:
    FunctionNameParameter:
      name: functionName
      in: path
      required: true
      description: The name of the function.
      x-ms-parameter-location: method
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group. The name is case insensitive.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
        pattern: ^[-\w\._\(\)]+$
    StreamingJobNameParameter:
      name: jobName
      in: path
      required: true
      description: The name of the streaming job.
      x-ms-parameter-location: method
      schema:
        type: string
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: The ID of the target subscription.
      schema:
        type: string
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
        minLength: 1
  schemas:
    FunctionBinding:
      type: object
      description: The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint.
      discriminator:
        propertyName: type
      properties:
        type:
          type: string
          description: Indicates the function binding type.
      required:
      - type
    FunctionRetrieveDefaultDefinitionParameters:
      type: object
      description: Parameters used to specify the type of function to retrieve the default definition for.
      discriminator:
        propertyName: bindingType
      properties:
        bindingType:
          type: string
          description: Indicates the function binding type.
      required:
      - bindingType
    ResourceTestStatus:
      type: object
      description: Describes the status of the test operation along with error information, if applicable.
      properties:
        status:
          readOnly: true
          type: string
          description: The status of the test operation.
        error:
          readOnly: true
          $ref: '#/components/schemas/ErrorResponse'
          description: Describes the error that occurred.
    SubResource:
      type: object
      description: The base sub-resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
        name:
          type: string
          description: Resource name
        type:
          readOnly: true
          type: string
          description: Resource type
      x-ms-azure-resource: true
    FunctionOutput:
      type: object
      description: Describes the output of a function.
      properties:
        dataType:
          type: string
          description: The (Azure Stream Analytics supported) data type of the function output. A list of valid Azure Stream Analytics data types are described at https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
    FunctionListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Function'
          readOnly: true
          description: A list of functions under a streaming job. Populated by a 'List' operation.
        nextLink:
          type: string
          readOnly: true
          description: The link (url) to the next page of results.
      description: Object containing a list of functions under a streaming job.
    Function:
      type: object
      description: A function object, containing all information associated with the named function. All functions are contained under a streaming job.
      allOf:
      - $ref: '#/components/schemas/SubResource'
      properties:
        properties:
          $ref: '#/components/schemas/FunctionProperties'
          description: The properties that are associated with a function.
    FunctionProperties:
      type: object
      description: The properties that are associated with a function.
      discriminator:
        propertyName: type
      properties:
        type:
          type: string
          description: Indicates the type of function.
        etag:
          readOnly: true
          type: string
          description: The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
        properties:
          $ref: '#/components/schemas/FunctionConfiguration'
          x-ms-client-flatten: true
      required:
      - type
    FunctionConfiguration:
      type: object
      properties:
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/FunctionInput'
        output:
          $ref: '#/components/schemas/FunctionOutput'
        binding:
          $ref: '#/components/schemas/FunctionBinding'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code.
            message:
              type: string
              description: Error message.
            target:
              type: string
              description: Error target.
            details:
              type: array
              items:
                $ref: '#/components/schemas/ErrorDetails'
              x-ms-identifiers: []
              description: Error details.
          description: Error definition properties.
      description: Common error representation.
    FunctionInput:
      type: object
      description: Describes one input parameter of a function.
      properties:
        dataType:
          type: string
          description: The (Azure Stream Analytics supported) data type of the function input parameter. A list of valid Azure Stream Analytics data types are described at https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
        isConfigurationParameter:
          type: boolean
          description: A flag indicating if the parameter is a configuration parameter. True if this input parameter is expected to be a constant. Default is false.
  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