Firebolt Iam.v2.database Grants API
The iam.v2.databaseGrants API from Firebolt — 3 operation(s) for iam.v2.databasegrants.
The iam.v2.databaseGrants API from Firebolt — 3 operation(s) for iam.v2.databasegrants.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/firebolt:firebolt-iam-v2-databasegrants-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.
openapi: 3.2.0
info:
title: Firebolt Iam.v2.database Grants API
version: 1.0.0
x-logo:
altText: Firebolt
backgroundColor: '#FFFFFF'
url: https://assets.website-files.com/5e8a264ceaf4870394477fc7/5e8a264ceaf4879f75477fdd_logo_website.svg
tags:
- name: iam.v2.databaseGrants
x-displayName: Policies (Database Level)
paths:
/iam/v2/account/databaseAccesses:
get:
tags:
- iam.v2.databaseGrants
summary: GetDatabaseGrants returns full list of grants for all account.
operationId: iamV2GetDatabaseGrants
parameters:
- description: 'When `before` is provided, the last item returned in the paginated data will be the item that is closest to,
but still before, the cursor in the unpaginated results list. (Analogous to the above, if there are no items in the
results list that fall before the cursor, the returned paginated data will be an empty array.).'
name: page.before
in: query
schema:
type: string
- description: Optional. User id.
name: target_user_id
in: query
schema:
type: string
- description: Optional. Database id.
name: database_id
in: query
schema:
type: string
- description: 'The `first` parameter indicates the number of results that the client would like to see in the response when
`after` is set or neither `after` or `before` is set.
Default: 25.'
name: page.first
in: query
schema:
type: integer
format: int32
- description: 'When `after` is provided, the returned paginated data will have as its first item the item that is
immediately after the cursor in the results list. (An exception is that, if there are no items in the results list
that fall after the cursor, the returned paginated data will be an empty array.).'
name: page.after
in: query
schema:
type: string
- description: 'The `last` parameter indicates the number of results that the client would like to see in the response
when `before` is set.
Default: 25.'
name: page.last
in: query
schema:
type: integer
format: int32
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/firebolt.iam.v2.GetDatabaseGrantsResponse'
default:
description: An unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
/iam/v2/account/databaseAccesses:grant:
post:
tags:
- iam.v2.databaseGrants
summary: GrantDatabaseRoleToUser gives new database role to a user
operationId: iamV2GrantDatabaseRoleToUser
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/firebolt.iam.v2.GrantDatabaseRoleToUserResponse'
default:
description: An unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/firebolt.iam.v2.GrantDatabaseRoleToUserRequest'
required: true
/iam/v2/account/databaseAccesses:revoke:
post:
tags:
- iam.v2.databaseGrants
summary: RevokeDatabaseRoleFromUser deletes database role from a user
operationId: iamV2RevokeDatabaseRoleFromUser
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/firebolt.iam.v2.RevokeDatabaseRoleFromUserResponse'
default:
description: An unexpected error response
content:
application/json:
schema:
$ref: '#/components/schemas/grpc.gateway.runtime.Error'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/firebolt.iam.v2.RevokeDatabaseRoleFromUserRequest'
required: true
components:
schemas:
grpc.gateway.runtime.Error:
type: object
properties:
code:
type: integer
format: int32
details:
type: array
items:
$ref: '#/components/schemas/google.protobuf.Any'
error:
type: string
message:
type: string
firebolt.shared.v1.PageDescriptor:
description: PageDescriptor represents pagination information in collection response.
type: object
properties:
has_next_page:
description: Whether next page is available.
type: boolean
format: boolean
has_previous_page:
description: Whether previous page is available.
type: boolean
format: boolean
page_size:
description: Number of items returned at this page.
type: integer
format: int64
total_size:
description: Total number of items matching the query.
type: integer
format: int64
firebolt.iam.v2.DatabaseGrantEdge:
description: DatabaseGrantEdge represents a single record in paginated list.
type: object
properties:
cursor:
description: Pagination cursor for this node.
type: string
node:
description: Node instance.
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrant'
firebolt.iam.v2.GrantDatabaseRoleToUserRequest:
type: object
properties:
database_id:
description: Required. Database id.
type: string
role:
description: Required. Role to assign.
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrantRole'
target_user_id:
description: Required. User id.
type: string
firebolt.iam.v2.DatabaseGrantID:
description: DatabaseGrant represents unique identifier of the record.
type: object
properties:
account_id:
description: ID of the account this record belongs to.
type: string
grant_id:
description: Required. Unique record ID.
type: string
firebolt.iam.v2.DatabaseGrantRole:
description: "DatabaseGrantRole is all possible roles for database grant.\n\n - DATABASE_GRANT_ROLE_READER: Read only access.\n - DATABASE_GRANT_ROLE_WRITER: Write + read access."
type: string
default: DATABASE_GRANT_ROLE_UNSPECIFIED
enum:
- DATABASE_GRANT_ROLE_UNSPECIFIED
- DATABASE_GRANT_ROLE_READER
- DATABASE_GRANT_ROLE_WRITER
firebolt.iam.v2.DatabaseGrant:
description: DatabaseGrant is a model to define user grant to database.
type: object
properties:
create_actor:
description: Output only. Resource name of the actor who created this record.
type: string
readOnly: true
create_time:
description: Output only. Time when this record was created.
type: string
format: date-time
readOnly: true
database_id:
description: Required. Database id.
type: string
id:
description: Output only. Record ID.
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrantID'
readOnly: true
role:
description: Required. Grant role.
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrantRole'
target_user_id:
description: Required. User id.
type: string
google.protobuf.Any:
description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := &pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": <string>,\n \"lastName\": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
type: object
properties:
type_url:
description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
type: string
value:
description: Must be a valid serialized protocol buffer of the above specified type.
type: string
format: byte
firebolt.iam.v2.GetDatabaseGrantsResponse:
type: object
properties:
edges:
description: List of found records.
type: array
items:
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrantEdge'
page:
description: Page descriptor.
$ref: '#/components/schemas/firebolt.shared.v1.PageDescriptor'
firebolt.iam.v2.GrantDatabaseRoleToUserResponse:
type: object
properties:
grant:
description: Created record.
$ref: '#/components/schemas/firebolt.iam.v2.DatabaseGrant'
firebolt.iam.v2.RevokeDatabaseRoleFromUserResponse:
type: object
firebolt.iam.v2.RevokeDatabaseRoleFromUserRequest:
type: object
properties:
database_id:
description: Required. Database id.
type: string
target_user_id:
description: Required. User id.
type: string
x-tagGroups:
- name: Getting Started
tags:
- auth.v1
- name: Identity & Access Management
tags:
- iam.v2.roles
- iam.v2.permissions
- iam.v2.policies
- iam.v2.databaseGrants
- iam.v2.accounts
- iam.v2.users
- iam.v2.accountMembers
- iam.v2.serviceAccounts
- iam.v2.actors
- name: Cloud Providers
tags:
- aws.v2.marketplace
- name: Compute Resources
tags:
- compute.v1.instanceTypes
- compute.v1.regions
- compute.v1.providers
- name: Databases & Engines
tags:
- core.v1.databases
- core.v1.engines
- core.v1.engineRevisions
- core.v1.bindings
- name: SQL Editor
tags:
- editor.v1.scripts
x-provenance:
method: harvested
publisher: Firebolt
source: https://api.app.firebolt.io/docs/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)