Cockroach Labs · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for CockroachDB Cloud Role Management API

7 actions 7 updates phrasing extends openapi/cockroach-labs-role-management-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Cockroach Labs's API. It is a proposal applied on top of the contract, not a document Cockroach Labs publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 7

$.info
$.paths['/api/v1/roles'].get
$.paths['/api/v1/roles/{user_id}'].get
$.paths['/api/v1/roles/{user_id}'].put
$.paths['/api/v1/roles/{user_id}/{resource_type}/{resource_id}/{role_name}'].post
$.paths['/api/v1/roles/{user_id}/{resource_type}/{resource_id}/{role_name}'].delete
$.paths['/api/v1/users/persons-by-email'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for CockroachDB Cloud Role Management API
  version: 1.0.0
extends: openapi/cockroach-labs-role-management-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-24'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 6
- target: $.paths['/api/v1/roles'].get
  update:
    x-apievangelist-phrasing:
      intent: List role grants across the organization
      effect: read
      questions:
      - Which users have which roles across my organization?
      - Can I see every role grant in the organization at once?
      instructions:
      - text: List all role grants in the organization.
      - text: Show every role grant in the organization as of {as_of_time}.
        slots:
          as_of_time: query.pagination.as_of_time
      method: generated
      generated: '2026-11-24'
- target: $.paths['/api/v1/roles/{user_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: List the roles of a user, service account or group
      effect: read
      questions:
      - What roles does a particular user or service account hold?
      - Can I see the full role set for a group?
      instructions:
      - text: Show all roles granted to {user_id}.
        slots:
          user_id: path.user_id
      - text: List the role grants for user or group {user_id}.
        slots:
          user_id: path.user_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/api/v1/roles/{user_id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a user's roles
      effect: write
      questions:
      - How do I overwrite a user's roles with a new set?
      - Can I replace a service account's roles entirely?
      instructions:
      - text: Replace the roles of {user_id} with {roles}.
        slots:
          user_id: path.user_id
          roles: requestBody.roles
      - text: Set user {user_id}'s roles exactly to {roles}.
        slots:
          user_id: path.user_id
          roles: requestBody.roles
      method: generated
      generated: '2026-11-24'
- target: $.paths['/api/v1/roles/{user_id}/{resource_type}/{resource_id}/{role_name}'].post
  update:
    x-apievangelist-phrasing:
      intent: Grant a role to a user, service account or group
      effect: write
      questions:
      - How do I give a user a role on a specific cluster?
      - Can I add a role to a group on a folder?
      instructions:
      - text: Grant {role_name} on {resource_type} {resource_id} to {user_id}.
        slots:
          role_name: path.role_name
          resource_type: path.resource_type
          resource_id: path.resource_id
          user_id: path.user_id
      - text: Give user {user_id} the {role_name} role on {resource_type} {resource_id}.
        slots:
          user_id: path.user_id
          role_name: path.role_name
          resource_type: path.resource_type
          resource_id: path.resource_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/api/v1/roles/{user_id}/{resource_type}/{resource_id}/{role_name}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke a role from a user, service account or group
      effect: destructive
      questions:
      - How do I take a role away from a user?
      - Can I revoke a group's role on a cluster?
      instructions:
      - text: Revoke {role_name} on {resource_type} {resource_id} from {user_id}.
        slots:
          role_name: path.role_name
          resource_type: path.resource_type
          resource_id: path.resource_id
          user_id: path.user_id
      - text: Remove user {user_id}'s {role_name} role on {resource_type} {resource_id}.
        slots:
          user_id: path.user_id
          role_name: path.role_name
          resource_type: path.resource_type
          resource_id: path.resource_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/api/v1/users/persons-by-email'].get
  update:
    x-apievangelist-phrasing:
      intent: Find person users by email
      effect: read
      questions:
      - Which person users have a given email address?
      - Can I look up a person user by email?
      instructions:
      - text: Find person users with email {email}.
        slots:
          email: query.email
      - text: Look up the person user whose email is {email}.
        slots:
          email: query.email
      method: generated
      generated: '2026-11-24'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay 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 overlay
curl "https://apis.io/api/v1/overlays/cockroach-labs-role-management-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.