The APIs for Identity and Access Management (IAM) are built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.
However, the Google API Client Libraries provide better language integration, improved security, and support for authentication. The client libraries are available in a number of programming languages; they handle all communication with IAM.
Many Google Cloud services also offer Google Cloud Client Libraries, which you can use to manage the allow policies for each service's resources. The Google Cloud Client Libraries offer the same benefits as the Google API Client Libraries, along with a more idiomatic API for each programming language. To learn more, see Client libraries explained.
IAM v1 APIUse the IAM v1 API to manage custom roles, service accounts, and service account keys.
To grant and revoke access to a specific resource, use the getIamPolicy
and setIamPolicy
methods in that resource's API to update its allow policy. For a list of resource types that accept allow policies, see Resource types that accept allow policies.
To manage deny policies, use the IAM v2 API.
Install the client library C++To install the C++ client library, follow the instructions in Setting up a C++ development environment.
C#For more information, see Setting up a C# development environment.
install-package Google.Apis.Iam.v1Go
For more information, see Setting up a Go development environment.
go get google.golang.org/api/iam/v1Java
For more information, see Setting up a Java development environment.
If you are using Maven, add this to your pom.xml
file.
For more information, see Setting up a Node.js development environment.
npm install googleapisPHP
For more information, see Using PHP on Google Cloud.
Add the library as a dependency to your composer.json
file:
"require": { "google/apiclient": "^2.0" }
Alternatively, you can download the package locally.
PythonFor more information, see Setting up a Python development environment.
pip install --upgrade google-api-python-clientRuby
For more information, see Setting up a Ruby development environment.
gem install google-api-clientAdditional resources IAM v2 API
Use the IAM v2 API to manage deny policies.
To manage custom roles, service accounts, and service account keys, use the IAM v1 API.
Install the client library Additional resources Service Account Credentials APIUse the Service Account Credentials API to create short-lived, limited-privilege credentials for service accounts.
Install the client library C++To install the C++ client library, follow the instructions in Setting up a C++ development environment.
C#For more information, see Setting up a C# development environment.
install-package Google.Apis.IAMCredentials.v1Go
For more information, see Setting up a Go development environment.
go get google.golang.org/api/iamcredentials/v1Java
For more information, see Setting up a Java development environment.
If you are using Maven, add this to your pom.xml
file.
For more information, see Setting up a Node.js development environment.
npm install googleapisPHP
For more information, see Using PHP on Google Cloud.
Add the library as a dependency to your composer.json
file:
"require": { "google/apiclient": "^2.0" }
Alternatively, you can download the package locally.
PythonFor more information, see Setting up a Python development environment.
pip install --upgrade google-cloud-iamRuby
For more information, see Setting up a Ruby development environment.
gem install google-api-clientAdditional resources
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4