Azure Networking Services Bastion Shareable Link API

The BastionShareableLink API from Azure Networking Services — 4 operation(s) for bastionshareablelink.

GitHub OpenAPI

Operations 4

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken Delete bastion shareable link by token #

Documentation

Specifications

Schemas & Data

Other Resources

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-bastionshareablelink-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

azure-networking-services-bastionshareablelink-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WebApplicationFirewallManagement Bastion Shareable Link 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: BastionShareableLink
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks
  : post:
      operationId: PutBastionShareableLink
      tags:
      - BastionShareableLink
      description: Creates a Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: bastionHostName
        in: path
        description: The name of the Bastion Host.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BastionShareableLinkListResult'
        '202':
          description: Resource operation 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
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/BastionShareableLinkListResult'
      x-ms-long-running-operation: true
      x-ms-pageable:
        nextLinkName: nextLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BastionShareableLinkListRequest'
        description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
        required: true
      summary: Put bastion shareable link
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks
  : post:
      operationId: DeleteBastionShareableLink
      tags:
      - BastionShareableLink
      description: Deletes the Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: bastionHostName
        in: path
        description: The name of the Bastion Host.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
        '202':
          description: Resource operation 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
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BastionShareableLinkListRequest'
        description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
        required: true
      summary: Delete bastion shareable link
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken
  : post:
      operationId: DeleteBastionShareableLinkByToken
      tags:
      - BastionShareableLink
      description: Deletes the Bastion Shareable Links for all the tokens specified in the request.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: bastionHostName
        in: path
        description: The name of the Bastion Host.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Resource operation 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
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BastionShareableLinkTokenListRequest'
        description: Post request for Delete Bastion Shareable Link By Token endpoint.
        required: true
      summary: Delete bastion shareable link by token
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks
  : post:
      operationId: GetBastionShareableLink
      tags:
      - BastionShareableLink
      description: Return the Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: bastionHostName
        in: path
        description: The name of the Bastion Host.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BastionShareableLinkListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BastionShareableLinkListRequest'
        description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
        required: true
      summary: Get bastion shareable link
      x-summary-source: derived
components:
  schemas:
    BastionShareableLink:
      type: object
      description: Bastion Shareable Link.
      properties:
        vm:
          $ref: '#/components/schemas/VM'
          description: Reference of the virtual machine resource.
        bsl:
          type: string
          description: The unique Bastion Shareable Link to the virtual machine.
          readOnly: true
        createdAt:
          type: string
          description: The time when the link was created.
          readOnly: true
        message:
          type: string
          description: Optional field indicating the warning or error message related to the vm in case of partial failure.
          readOnly: true
      required:
      - vm
    BastionShareableLinkListRequest:
      type: object
      description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
      properties:
        vms:
          type: array
          description: List of VM references.
          items:
            $ref: '#/components/schemas/BastionShareableLink'
    BastionShareableLinkListResult:
      type: object
      description: Response for all the Bastion Shareable Link endpoints.
      properties:
        value:
          type: array
          description: The BastionShareableLink items on this page
          items:
            $ref: '#/components/schemas/BastionShareableLink'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    VM:
      type: object
      description: Describes a Virtual Machine.
      allOf:
      - $ref: '#/components/schemas/Resource'
    BastionShareableLinkTokenListRequest:
      type: object
      description: Post request for Delete Bastion Shareable Link By Token endpoint.
      properties:
        tokens:
          type: array
          description: List of Bastion Shareable Link Token.
          items:
            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
    CloudError:
      type: object
      description: An error response from the service.
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Cloud error body.
      x-ms-external: true
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    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
  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.