- Cloud Endpoints
Contact Us Start free
- Home
- Cloud Endpoints
- Documentation
- OpenAPI
OpenAPI | gRPC
Controlling who has access to an API is an integral part of development. Forexample, as you test your API, you might want to automate redeploying updatedCloud Endpoints configurations by using a service account that has thepermission to do so. By default, only the project owner can manage access to anAPI. This page shows you how to grant and revoke access to your API by using theGoogle Cloud console or the Google Cloud CLI.
Endpoints usesIdentity and Access Management roles to grant and revoke access at the API level. You can grant and revokeaccess to a user, service account, or to aGoogle Group.
Google Groups are a convenient way to grant or revoke access to a collection ofusers. You can grant or revoke access for a whole group at once, instead ofgranting or revoking access one at a time for individual users or serviceaccounts. You can also easily add members to and remove members from aGoogle Group instead of granting or revoking the IAM role foreach member.
Granting access
Revoking access
To revoke access to your API, remove the IAM role from the memberwho previously had the role.
What's next
Learn about:
- Creating a service account
- gcloud commands referenced on this page.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{ "type": "thumb-down", "id": "hardToUnderstand", "label":"Hard to understand" },{ "type": "thumb-down", "id": "incorrectInformationOrSampleCode", "label":"Incorrect information or sample code" },{ "type": "thumb-down", "id": "missingTheInformationSamplesINeed", "label":"Missing the information/samples I need" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]