mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
482 lines
35 KiB
HTML
482 lines
35 KiB
HTML
<!DOCTYPE html>
|
|
<html class="writer-html5" lang="en" >
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="description" content="A complete library to interact with Iam (protocol v1)" /><link rel="canonical" href="http://byron.github.io/google-apis-rs/google-iam1-cli/" />
|
|
<link rel="shortcut icon" href="img/favicon.ico" />
|
|
<title>Iam v5.0.4+20240220</title>
|
|
<link rel="stylesheet" href="css/theme.css" />
|
|
<link rel="stylesheet" href="css/theme_extra.css" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
|
|
|
|
<script>
|
|
// Current page data
|
|
var mkdocs_page_name = "Home";
|
|
var mkdocs_page_input_path = "index.md";
|
|
var mkdocs_page_url = "/google-apis-rs/google-iam1-cli/";
|
|
</script>
|
|
|
|
<script src="js/jquery-3.6.0.min.js" defer></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="js/html5shiv.min.js"></script>
|
|
<![endif]-->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-scroll">
|
|
<div class="wy-side-nav-search">
|
|
<a href="." class="icon icon-home"> Iam v5.0.4+20240220
|
|
</a><div role="search">
|
|
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
|
<ul class="current">
|
|
<li class="toctree-l1 current"><a class="reference internal current" href=".">Home</a>
|
|
<ul class="current">
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Iam Policies</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="iam-policies_lint-policy/">Lint Policy</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="iam-policies_query-auditable-services/">Query Auditable Services</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Locations</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-create/">Workforce Pools Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-delete/">Workforce Pools Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-get/">Workforce Pools Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-get-iam-policy/">Workforce Pools Get Iam Policy</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-list/">Workforce Pools List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-operations-get/">Workforce Pools Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-patch/">Workforce Pools Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-create/">Workforce Pools Providers Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-delete/">Workforce Pools Providers Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-get/">Workforce Pools Providers Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-create/">Workforce Pools Providers Keys Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-delete/">Workforce Pools Providers Keys Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-get/">Workforce Pools Providers Keys Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-list/">Workforce Pools Providers Keys List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-operations-get/">Workforce Pools Providers Keys Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-keys-undelete/">Workforce Pools Providers Keys Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-list/">Workforce Pools Providers List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-operations-get/">Workforce Pools Providers Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-patch/">Workforce Pools Providers Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-providers-undelete/">Workforce Pools Providers Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-set-iam-policy/">Workforce Pools Set Iam Policy</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-subjects-delete/">Workforce Pools Subjects Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-subjects-operations-get/">Workforce Pools Subjects Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-subjects-undelete/">Workforce Pools Subjects Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-test-iam-permissions/">Workforce Pools Test Iam Permissions</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="locations_workforce-pools-undelete/">Workforce Pools Undelete</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Organizations</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-create/">Roles Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-delete/">Roles Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-get/">Roles Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-list/">Roles List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-patch/">Roles Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="organizations_roles-undelete/">Roles Undelete</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Permissions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="permissions_query-testable-permissions/">Query Testable Permissions</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Projects</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-create/">Locations Workload Identity Pools Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-delete/">Locations Workload Identity Pools Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-get/">Locations Workload Identity Pools Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-list/">Locations Workload Identity Pools List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-namespaces-managed-identities-operations-get/">Locations Workload Identity Pools Namespaces Managed Identities Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-namespaces-managed-identities-workload-sources-operations-get/">Locations Workload Identity Pools Namespaces Managed Identities Workload Sources Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-namespaces-operations-get/">Locations Workload Identity Pools Namespaces Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-operations-get/">Locations Workload Identity Pools Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-patch/">Locations Workload Identity Pools Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-create/">Locations Workload Identity Pools Providers Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-delete/">Locations Workload Identity Pools Providers Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-get/">Locations Workload Identity Pools Providers Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-create/">Locations Workload Identity Pools Providers Keys Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-delete/">Locations Workload Identity Pools Providers Keys Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-get/">Locations Workload Identity Pools Providers Keys Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-list/">Locations Workload Identity Pools Providers Keys List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-operations-get/">Locations Workload Identity Pools Providers Keys Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-keys-undelete/">Locations Workload Identity Pools Providers Keys Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-list/">Locations Workload Identity Pools Providers List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-operations-get/">Locations Workload Identity Pools Providers Operations Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-patch/">Locations Workload Identity Pools Providers Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-providers-undelete/">Locations Workload Identity Pools Providers Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_locations-workload-identity-pools-undelete/">Locations Workload Identity Pools Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-create/">Roles Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-delete/">Roles Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-get/">Roles Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-list/">Roles List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-patch/">Roles Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_roles-undelete/">Roles Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-create/">Service Accounts Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-delete/">Service Accounts Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-disable/">Service Accounts Disable</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-enable/">Service Accounts Enable</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-get/">Service Accounts Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-get-iam-policy/">Service Accounts Get Iam Policy</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-create/">Service Accounts Keys Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-delete/">Service Accounts Keys Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-disable/">Service Accounts Keys Disable</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-enable/">Service Accounts Keys Enable</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-get/">Service Accounts Keys Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-list/">Service Accounts Keys List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-keys-upload/">Service Accounts Keys Upload</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-list/">Service Accounts List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-patch/">Service Accounts Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-set-iam-policy/">Service Accounts Set Iam Policy</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-sign-blob/">Service Accounts Sign Blob</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-sign-jwt/">Service Accounts Sign Jwt</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-test-iam-permissions/">Service Accounts Test Iam Permissions</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-undelete/">Service Accounts Undelete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="projects_service-accounts-update/">Service Accounts Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Roles</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="roles_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="roles_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="roles_query-grantable-roles/">Query Grantable Roles</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href=".">Iam v5.0.4+20240220</a>
|
|
|
|
</nav>
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="." class="icon icon-home" alt="Docs"></a> »</li>
|
|
<li>Home</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/iam1-cli/edit/master/docs/index.md"
|
|
class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div class="section" itemprop="articleBody">
|
|
|
|
<!---
|
|
DO NOT EDIT !
|
|
This file was generated automatically from 'src/generator/templates/cli/README.md.mako'
|
|
DO NOT EDIT !
|
|
-->
|
|
<p>The <code>iam1</code> command-line interface <em>(CLI)</em> allows to use most features of the <em>Google Iam</em> service from the comfort of your terminal.</p>
|
|
<p>By default all output is printed to standard out, but flags can be set to direct it into a file independent of your shell's
|
|
capabilities. Errors will be printed to standard error, and cause the program's exit code to be non-zero.</p>
|
|
<p>If data-structures are requested, these will be returned as pretty-printed JSON, to be useful as input to other tools.</p>
|
|
<p>Everything else about the <em>Iam</em> API can be found at the
|
|
<a href="https://cloud.google.com/iam/">official documentation site</a>.</p>
|
|
<h1 id="installation-and-source-code">Installation and Source Code</h1>
|
|
<p>Install the command-line interface with cargo using:</p>
|
|
<pre><code class="language-bash">cargo install google-iam1-cli
|
|
</code></pre>
|
|
<p>Find the source code <a href="https://github.com/Byron/google-apis-rs/tree/main/gen/iam1-cli">on github</a>.</p>
|
|
<h1 id="usage">Usage</h1>
|
|
<p>This documentation was generated from the <em>Iam</em> API at revision <em>20240220</em>. The CLI is at version <em>5.0.4</em>.</p>
|
|
<pre><code class="language-bash">iam1 [options]
|
|
iam-policies
|
|
lint-policy (-r <kv>)... [-p <v>]... [-o <out>]
|
|
query-auditable-services (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations
|
|
workforce-pools-create <location> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-delete <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-get-iam-policy <resource> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-list <location> [-p <v>]... [-o <out>]
|
|
workforce-pools-operations-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-delete <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-delete <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-list <parent> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-operations-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-keys-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-list <parent> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-operations-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-providers-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-set-iam-policy <resource> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-subjects-delete <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-subjects-operations-get <name> [-p <v>]... [-o <out>]
|
|
workforce-pools-subjects-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-test-iam-permissions <resource> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
workforce-pools-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
organizations
|
|
roles-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles-delete <name> [-p <v>]... [-o <out>]
|
|
roles-get <name> [-p <v>]... [-o <out>]
|
|
roles-list <parent> [-p <v>]... [-o <out>]
|
|
roles-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
permissions
|
|
query-testable-permissions (-r <kv>)... [-p <v>]... [-o <out>]
|
|
projects
|
|
locations-workload-identity-pools-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-delete <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-list <parent> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-namespaces-managed-identities-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-namespaces-managed-identities-workload-sources-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-namespaces-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-delete <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-delete <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-list <parent> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-keys-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-list <parent> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-operations-get <name> [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-providers-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
locations-workload-identity-pools-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles-create <parent> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles-delete <name> [-p <v>]... [-o <out>]
|
|
roles-get <name> [-p <v>]... [-o <out>]
|
|
roles-list <parent> [-p <v>]... [-o <out>]
|
|
roles-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-create <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-delete <name> [-p <v>]... [-o <out>]
|
|
service-accounts-disable <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-enable <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-get <name> [-p <v>]... [-o <out>]
|
|
service-accounts-get-iam-policy <resource> [-p <v>]... [-o <out>]
|
|
service-accounts-keys-create <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-keys-delete <name> [-p <v>]... [-o <out>]
|
|
service-accounts-keys-disable <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-keys-enable <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-keys-get <name> [-p <v>]... [-o <out>]
|
|
service-accounts-keys-list <name> [-p <v>]... [-o <out>]
|
|
service-accounts-keys-upload <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-list <name> [-p <v>]... [-o <out>]
|
|
service-accounts-patch <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-set-iam-policy <resource> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-sign-blob <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-sign-jwt <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-test-iam-permissions <resource> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-undelete <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
service-accounts-update <name> (-r <kv>)... [-p <v>]... [-o <out>]
|
|
roles
|
|
get <name> [-p <v>]... [-o <out>]
|
|
list [-p <v>]... [-o <out>]
|
|
query-grantable-roles (-r <kv>)... [-p <v>]... [-o <out>]
|
|
iam1 --help
|
|
|
|
Configuration:
|
|
[--scope <url>]...
|
|
Specify the authentication a method should be executed in. Each scope
|
|
requires the user to grant this application permission to use it.
|
|
If unset, it defaults to the shortest scope url for a particular method.
|
|
--config-dir <folder>
|
|
A directory into which we will store our persistent data. Defaults to
|
|
a user-writable directory that we will create during the first invocation.
|
|
[default: ~/.google-service-cli]
|
|
|
|
</code></pre>
|
|
<h1 id="configuration">Configuration</h1>
|
|
<p>The program will store all persistent data in the <code>~/.google-service-cli</code> directory in <em>JSON</em> files prefixed with <code>iam1-</code>. You can change the directory used to store configuration with the <code>--config-dir</code> flag on a per-invocation basis.</p>
|
|
<p>More information about the various kinds of persistent data are given in the following paragraphs.</p>
|
|
<h1 id="authentication">Authentication</h1>
|
|
<p>Most APIs require a user to authenticate any request. If this is the case, the <a href="https://developers.google.com/+/api/oauth#scopes">scope</a> determines the
|
|
set of permissions granted. The granularity of these is usually no more than <em>read-only</em> or <em>full-access</em>.</p>
|
|
<p>If not set, the system will automatically select the smallest feasible scope, e.g. when invoking a
|
|
method that is read-only, it will ask only for a read-only scope.
|
|
You may use the <code>--scope</code> flag to specify a scope directly.
|
|
All applicable scopes are documented in the respective method's CLI documentation.</p>
|
|
<p>The first time a scope is used, the user is asked for permission. Follow the instructions given
|
|
by the CLI to grant permissions, or to decline.</p>
|
|
<p>If a scope was authenticated by the user, the respective information will be stored as <em>JSON</em> in the configuration
|
|
directory, e.g. <code>~/.google-service-cli/iam1-token-<scope-hash>.json</code>. No manual management of these tokens
|
|
is necessary.</p>
|
|
<p>To revoke granted authentication, please refer to the <a href="http://webapps.stackexchange.com/a/30849">official documentation</a>.</p>
|
|
<h1 id="application-secrets">Application Secrets</h1>
|
|
<p>In order to allow any application to use Google services, it will need to be registered using the
|
|
<a href="https://console.developers.google.com/">Google Developer Console</a>. APIs the application may use are then enabled for it
|
|
one by one. Most APIs can be used for free and have a daily quota.</p>
|
|
<p>To allow more comfortable usage of the CLI without forcing anyone to register an own application, the CLI
|
|
comes with a default application secret that is configured accordingly. This also means that heavy usage
|
|
all around the world may deplete the daily quota.</p>
|
|
<p>You can workaround this limitation by putting your own secrets file at this location:
|
|
<code>~/.google-service-cli/iam1-secret.json</code>, assuming that the required <em>iam</em> API
|
|
was enabled for it. Such a secret file can be downloaded in the <em>Google Developer Console</em> at
|
|
<em>APIs & auth -> Credentials -> Download JSON</em> and used as is.</p>
|
|
<p>Learn more about how to setup Google projects and enable APIs using the <a href="https://developers.google.com/console/help/new/">official documentation</a>.</p>
|
|
<h1 id="debugging">Debugging</h1>
|
|
<p>Even though the CLI does its best to provide usable error messages, sometimes it might be desirable to know
|
|
what exactly led to a particular issue. This is done by allowing all client-server communication to be
|
|
output to standard error <em>as-is</em>.</p>
|
|
<p>The <code>--debug</code> flag will print errors using the <code>Debug</code> representation to standard error.</p>
|
|
<p>You may consider redirecting standard error into a file for ease of use, e.g. <code>iam1 --debug <resource> <method> [options] 2>debug.txt</code>.</p>
|
|
|
|
</div>
|
|
</div><footer>
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
|
|
<a href="iam-policies_lint-policy/" class="btn btn-neutral float-right" title="Lint Policy">Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<!-- Copyright etc -->
|
|
<p>Copyright © 2015-2020, `Sebastian Thiel`</p>
|
|
</div>
|
|
|
|
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" aria-label="Versions">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<span>
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/iam1-cli" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
|
|
</span>
|
|
|
|
|
|
|
|
<span><a href="iam-policies_lint-policy/" style="color: #fcfcfc">Next »</a></span>
|
|
|
|
</span>
|
|
</div>
|
|
<script>var base_url = '.';</script>
|
|
<script src="js/theme_extra.js" defer></script>
|
|
<script src="js/theme.js" defer></script>
|
|
<script src="search/main.js" defer></script>
|
|
<script defer>
|
|
window.onload = function () {
|
|
SphinxRtdTheme.Navigation.enable(true);
|
|
};
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<!--
|
|
MkDocs version : 1.3.1
|
|
Build Date UTC : 2024-03-05 20:05:17.357269+00:00
|
|
-->
|