Azure Key Vault Rng API

The Rng API from Azure Key Vault — 1 operation(s) for rng.

GitHub OpenAPI

Operations 1

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

POST /rng Get random bytes from a managed HSM · Get the requested number of bytes containing random values #
Ask an LLM
“Can I pull random bytes from a managed HSM-backed key vault?”
“How many random bytes can I request at once?”
Tell an agent
Get {count} random bytes from the managed HSM.
Request {count} random bytes for a cryptographic key.

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-key-vault:microsoft-azure-key-vault-rng-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-key-vault-rng-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KeyVaultClient Rng API
  version: '7.6'
  description: The key vault client performs cryptographic key operations and vault operations against the Key Vault service.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- OAuth2Auth:
  - https://vault.azure.net/.default
tags:
- name: Rng
paths:
  /rng:
    post:
      operationId: GetRandomBytes
      summary: Get the requested number of bytes containing random values
      description: Get the requested number of bytes containing random values from a managed HSM.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RandomBytes'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyVaultError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetRandomBytesRequest'
        description: The request object to get random bytes.
        required: true
      tags:
      - Rng
components:
  schemas:
    RandomBytes:
      type: object
      description: The get random bytes response object containing the bytes.
      properties:
        value:
          type: string
          format: base64url
          description: The bytes encoded as a base64url string.
      required:
      - value
    Error:
      type:
      - object
      - 'null'
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        innererror:
          $ref: '#/components/schemas/Error'
          description: The key vault server error.
          readOnly: true
          x-ms-client-name: innerError
    GetRandomBytesRequest:
      type: object
      description: The get random bytes request object.
      properties:
        count:
          type: integer
          format: int32
          description: The requested number of random bytes.
          minimum: 1
          maximum: 128
      required:
      - count
    KeyVaultError:
      type: object
      description: The key vault error exception.
      properties:
        error:
          $ref: '#/components/schemas/Error'
          description: The key vault server error.
          readOnly: true
  parameters:
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
  securitySchemes:
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://vault.azure.net/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-parameterized-host:
  hostTemplate: '{vaultBaseUrl}'
  useSchemePrefix: false
  parameters:
  - name: vaultBaseUrl
    in: path
    required: true
    type: string
    format: uri
    x-ms-skip-url-encoding: true