Google

IAM Service Account Credentials API

Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling…

Identity & security#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling this API doesn't enable the IAM API.

Endpoints 5

projects.serviceAccounts

  • GETReturns the trust boundary info for a given service account./v1/:name/allowedLocationsReturns the trust boundary info for a given service account.
  • POSTGenerates an OAuth 2.0 access token for a service account./v1/:name:generateAccessTokenGenerates an OAuth 2.0 access token for a service account.
  • POSTGenerates an OpenID Connect ID token for a service account./v1/:name:generateIdTokenGenerates an OpenID Connect ID token for a service account.
  • POSTSigns a blob using a service account's system-managed private key./v1/:name:signBlobSigns a blob using a service account's system-managed private key.
  • POSTSigns a JWT using a service account's system-managed private key./v1/:name:signJwtSigns a JWT using a service account's system-managed private key.

API details

Base URL
https://iamcredentials.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter
Operations
5 operations on 5 pathsPOST 4GET 1
Main resources
projects.serviceAccounts 5
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the IAM Service Account Credentials API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the IAM Service Account Credentials API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Returns the trust boundary info for a given service account.” (GET /v1/:name/allowedLocations), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the IAM Service Account Credentials API?

Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling… It is listed under Identity & security and has 5 endpoints.

Who publishes the IAM Service Account Credentials API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the IAM Service Account Credentials API?

Requests go to https://iamcredentials.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the IAM Service Account Credentials API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.

How many endpoints does the IAM Service Account Credentials API have?

5 operations on 5 paths (4 POST, 1 GET). The largest groups are projects.serviceAccounts.

Is forking the IAM Service Account Credentials API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.