Azure Web PubSub · Arazzo Workflow

Azure Web PubSub Revoke Permission and Evict Connection

Version 1.0.0

Revoke a connection's group permission, then forcibly close that connection.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub MessagingPub-SubReal-TimeServerlessWebSocketsArazzoWorkflows

Provider

microsoft-azure-web-pubsub

Workflows

revoke-permission-and-evict
Revoke a connection's permission, then close the connection.
Revokes a permission from a connection via revokePermission, then closes the connection via closeConnection.
2 steps inputs: accessToken, apiVersion, connectionId, hub, permission, reason outputs: closeStatus, revokeStatus
1
revokePermission
Revoke the named permission from the connection so it can no longer act on the target.
2
evictConnection
Close the connection, optionally recording a reason, to fully evict it from the hub.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Web PubSub Revoke Permission and Evict Connection
  summary: Revoke a connection's group permission, then forcibly close that connection.
  description: >-
    A moderation teardown pattern: when a connection should no longer be allowed
    to act on a group, the app server first revokes its permission and then closes
    the connection so it is fully evicted from the hub. Each step inlines its
    request — Authorization bearer header, required api-version query, and
    documented DELETE 204 status codes — so the flow is self-describing.
  version: 1.0.0
sourceDescriptions:
- name: hubApi
  url: ../openapi/microsoft-azure-web-pubsub-hub-api-openapi.yml
  type: openapi
- name: permissionApi
  url: ../openapi/microsoft-azure-web-pubsub-permission-api-openapi.yml
  type: openapi
workflows:
- workflowId: revoke-permission-and-evict
  summary: Revoke a connection's permission, then close the connection.
  description: >-
    Revokes a permission from a connection via revokePermission, then closes the
    connection via closeConnection.
  inputs:
    type: object
    required:
    - accessToken
    - hub
    - permission
    - connectionId
    properties:
      accessToken:
        type: string
        description: JWT bearer token for the Web PubSub data plane.
      apiVersion:
        type: string
        description: Data plane REST API version.
        default: "2024-01-01"
      hub:
        type: string
        description: Target hub name.
      permission:
        type: string
        description: Permission to revoke from the connection.
      connectionId:
        type: string
        description: The connection id to revoke and evict.
      reason:
        type: string
        description: Optional reason recorded when closing the connection.
  steps:
  - stepId: revokePermission
    description: >-
      Revoke the named permission from the connection so it can no longer act on
      the target.
    operationId: webPubSub_revokePermission
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: hub
      in: path
      value: $inputs.hub
    - name: permission
      in: path
      value: $inputs.permission
    - name: connectionId
      in: path
      value: $inputs.connectionId
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      revokeStatus: $statusCode
  - stepId: evictConnection
    description: >-
      Close the connection, optionally recording a reason, to fully evict it from
      the hub.
    operationId: webPubSub_closeConnection
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: hub
      in: path
      value: $inputs.hub
    - name: connectionId
      in: path
      value: $inputs.connectionId
    - name: api-version
      in: query
      value: $inputs.apiVersion
    - name: reason
      in: query
      value: $inputs.reason
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      closeStatus: $statusCode
  outputs:
    revokeStatus: $steps.revokePermission.outputs.revokeStatus
    closeStatus: $steps.evictConnection.outputs.closeStatus

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-web-pubsub-revoke-permission-and-evict-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.