Microsoft Azure Test Lines API

The TestLines API from Microsoft Azure, for testlines.

GitHub OpenAPI

Operations 5

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.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines List test lines on a Communications Gateway · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which test phone lines are configured on my Azure Communications Gateway?”
“Can I see all the test lines used to validate a Communications Gateway?”
Tell an agent
List the test lines on Communications Gateway {gateway}.
Show every test number set up for gateway {gateway}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} Get a Communications Gateway test line · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What phone number and purpose does a specific test line have?”
“Can I look up one test line on my gateway by name?”
Tell an agent
Get test line {test_line} on Communications Gateway {gateway}.
Show the settings of test number {test_line} for gateway {gateway}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} Create or replace a gateway test line · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a test phone line to my Communications Gateway?”
“Can I overwrite a test line's phone number and purpose?”
Tell an agent
Create test line {test_line} on Communications Gateway {gateway} with properties {properties}.
Add a new test number {test_line} to gateway {gateway}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} Delete a gateway test line · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove a test line from my Communications Gateway?”
“What deletes a test number I no longer use?”
Tell an agent destructive · confirm first
Delete test line {test_line} from Communications Gateway {gateway}.
Remove test number {test_line} on gateway {gateway}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} Update the tags on a gateway test line · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the tags on a test line without touching its number?”
“Is patching a test line limited to its tags?”
Tell an agent
Set tags {tags} on test line {test_line} of Communications Gateway {gateway}.
Retag test number {test_line} on gateway {gateway}.

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-testlines-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-testlines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Microsoft.VoiceServices Test Lines API
  version: 2022-12-01-preview
  x-cadl-generated:
  - emitter: '@azure-tools/cadl-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: TestLines
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines
  : get:
      tags:
      - TestLines
      operationId: microsoftAzureTestlinesListbycommunicationsgateway
      description: List TestLine resources by CommunicationsGateway
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/CommunicationsGateway.communicationsGatewayName'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestLineListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        ListTestLineResource:
          $ref: ./examples/TestLines_ListByCommunicationsGateway.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}
  : get:
      tags:
      - TestLines
      operationId: microsoftAzureTestlinesGet
      description: Get a TestLine
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/CommunicationsGateway.communicationsGatewayName'
      - $ref: '#/components/parameters/TestLine.testLineName'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestLine'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        GetTestLineResource:
          $ref: ./examples/TestLines_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - TestLines
      operationId: microsoftAzureTestlinesCreateorupdate
      description: Create a TestLine
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/CommunicationsGateway.communicationsGatewayName'
      - $ref: '#/components/parameters/TestLine.testLineName'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestLine'
        '201':
          description: ARM create operation completed successfully.
          headers:
            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/TestLine'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        CreateTestLineResource:
          $ref: ./examples/TestLines_CreateOrUpdate.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestLine'
        description: Resource create parameters.
        required: true
    delete:
      tags:
      - TestLines
      operationId: microsoftAzureTestlinesDelete
      description: Delete a TestLine
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/CommunicationsGateway.communicationsGatewayName'
      - $ref: '#/components/parameters/TestLine.testLineName'
      responses:
        '200':
          description: Resource deleted successfully.
        '202':
          description: Resource deletion accepted.
          headers:
            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 deleted successfully.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DeleteTestLineResource:
          $ref: ./examples/TestLines_Delete.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - TestLines
      operationId: microsoftAzureTestlinesUpdate
      description: Update a TestLine
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/CommunicationsGateway.communicationsGatewayName'
      - $ref: '#/components/parameters/TestLine.testLineName'
      responses:
        '200':
          description: ARM operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestLine'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        UpdateTestLineResource:
          $ref: ./examples/TestLines_Update.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestLineUpdate'
        description: The resource properties to be updated.
        required: true
components:
  schemas:
    TestLineListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/TestLine'
          x-cadl-name: TestLine[]
          description: The TestLine items on this page
        nextLink:
          type: string
          description: The link to the next page of items
          x-cadl-name: Rest.ResourceLocation<TestLine>
      description: The response of a TestLine list operation.
      required:
      - value
    TestLineProperties:
      type: object
      properties:
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: Resource provisioning state.
          readOnly: true
        phoneNumber:
          type: string
          description: The phone number
          x-ms-mutability:
          - read
          - update
          - create
        purpose:
          $ref: '#/components/schemas/TestLinePurpose'
          description: Purpose of this test line, e.g. automated or manual testing
          x-ms-mutability:
          - read
          - update
          - create
      description: Details of the TestLine resource.
      required:
      - phoneNumber
      - purpose
    TestLineUpdate:
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          x-cadl-name: Record<string>
          description: Resource tags.
      description: The type used for update operations of the TestLine.
    ProvisioningState:
      type: string
      description: Provisioning state of the resource.
      enum:
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
    TestLinePurpose:
      type: string
      description: The purpose of the TestLine resource.
      enum:
      - Manual
      - Automated
      x-ms-enum:
        name: TestLinePurpose
        modelAsString: false
    TestLine:
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/TestLineProperties'
          description: The resource-specific properties for this resource.
          x-ms-mutability:
          - read
          - create
          x-ms-client-flatten: true
      description: A TestLine resource
      allOf:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource
  parameters:
    TestLine.testLineName:
      name: testLineName
      in: path
      required: true
      description: Unique identifier for this test line
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9-]{3,24}$
    CommunicationsGateway.communicationsGatewayName:
      name: communicationsGatewayName
      in: path
      required: true
      description: Unique identifier for this deployment
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9-]{3,24}$
  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.