Azure Bastion Bastion Shareable Link API

The BastionShareableLink API from Azure Bastion — 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 #

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-bastion:microsoft-azure-bastion-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

microsoft-azure-bastion-bastionshareablelink-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NetworkManagementClient Bastion Shareable Link API
  description: The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.
  version: '2025-03-01'
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:
      tags:
      - BastionShareableLink
      operationId: PutBastionShareableLink
      description: Creates a Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/BastionHostName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/BastionShareableLinkRequest'
      responses:
        '200':
          description: Success. The operation returns a list of shareable links for the specified VMs, giving appropriate error messages as needed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BastionShareableLinkListResult'
        '202':
          description: Accepted and the operation will complete asynchronously.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Put bastion shareable link
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks
  : post:
      tags:
      - BastionShareableLink
      operationId: DeleteBastionShareableLink
      description: Deletes the Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/BastionHostName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/BastionShareableLinkRequest'
      responses:
        '200':
          description: Success. The operation deleted the BastionShareableLinks associated with the VMs, if they existed. No return body.
        '202':
          description: Accepted and the operation will complete asynchronously.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      summary: Delete bastion shareable link
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken
  : post:
      tags:
      - BastionShareableLink
      operationId: DeleteBastionShareableLinkByToken
      description: Deletes the Bastion Shareable Links for all the tokens specified in the request.
      parameters:
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/BastionHostName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/BastionShareableLinkTokenRequest'
      responses:
        '202':
          description: Accepted and the operation will complete asynchronously.
          headers:
            Location:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      summary: Delete bastion shareable link by token
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks
  : post:
      tags:
      - BastionShareableLink
      operationId: GetBastionShareableLink
      description: Return the Bastion Shareable Links for all the VMs specified in the request.
      parameters:
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/BastionHostName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/BastionShareableLinkRequest'
      responses:
        '200':
          description: Success. The operation returns a list of shareable links for the specified VMs, giving appropriate error messages as needed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BastionShareableLinkListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Get bastion shareable link
      x-summary-source: derived
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
      schema:
        type: string
    BastionHostName:
      name: bastionHostName
      in: path
      required: true
      description: The name of the Bastion Host.
      x-ms-parameter-location: method
      schema:
        type: string
    BastionShareableLinkRequest:
      name: bslRequest
      in: body
      required: true
      schema:
        $ref: '#/components/schemas/BastionShareableLinkListRequest'
      description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
      x-ms-parameter-location: method
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client API version.
      schema:
        type: string
    ResourceGroupName:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group.
      x-ms-parameter-location: method
      schema:
        type: string
    BastionShareableLinkTokenRequest:
      name: bslTokenRequest
      in: body
      required: true
      schema:
        $ref: '#/components/schemas/BastionShareableLinkTokenListRequest'
      description: Post request for Delete Bastion Shareable Link By Token endpoint.
      x-ms-parameter-location: method
  schemas:
    Resource:
      properties:
        id:
          type: string
          description: Resource ID.
        name:
          readOnly: true
          type: string
          description: Resource name.
        type:
          readOnly: true
          type: string
          description: Resource type.
        location:
          type: string
          description: Resource location.
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags.
      description: Common resource representation.
      x-ms-azure-resource: true
    BastionShareableLinkTokenListRequest:
      type: object
      properties:
        tokens:
          type: array
          items:
            type: string
          description: List of Bastion Shareable Link Token.
      description: Post request for Delete Bastion Shareable Link By Token endpoint.
    BastionShareableLinkListRequest:
      properties:
        vms:
          type: array
          items:
            $ref: '#/components/schemas/BastionShareableLink'
          description: List of VM references.
      description: Post request for Create/Delete/Get Bastion Shareable Link endpoints.
    BastionShareableLink:
      properties:
        vm:
          $ref: '#/components/schemas/VM'
          description: Reference of the virtual machine resource.
        bsl:
          type: string
          readOnly: true
          description: The unique Bastion Shareable Link to the virtual machine.
        createdAt:
          type: string
          readOnly: true
          description: The time when the link was created.
        message:
          type: string
          readOnly: true
          description: Optional field indicating the warning or error message related to the vm in case of partial failure.
      required:
      - vm
      description: Bastion Shareable Link.
    CloudError:
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Cloud error body.
      description: An error response from the service.
    VM:
      allOf:
      - $ref: '#/components/schemas/Resource'
      description: Describes a Virtual Machine.
    BastionShareableLinkListResult:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/BastionShareableLink'
          description: List of Bastion Shareable Links for the request.
        nextLink:
          type: string
          description: The URL to get the next set of results.
      description: Response for all the Bastion Shareable Link endpoints.
  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.