Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
API Gateway API-Zugriff – Übersicht
Auf dieser Seite werden die Möglichkeiten der API-Zugriffssteuerung beschrieben, die in API Gateway zur Verfügung stehen.
Übersicht
In API Gateway wird der Zugriff auf die API über Identity and Access Management (IAM) gesteuert. Sie können den Zugriff auf Projektebene und auf Dienstnutzerebene erteilen. Sie können zum Beispiel:
API-Nutzern Zugriff gewähren, damit sie die API in ihrem eigenenGoogle Cloud -Projekt aktivieren können
Hauptkonten erlauben, alle API-Gateway-Ressourcen anzuzeigen.
Hauptkonten erlauben, API-Gateway-Ressourcen zu erstellen, zu aktualisieren oder zu löschen.
Rollen, mit denen der Zugriff auf Dienste und Ressourcen gesteuert wird
Sie können Rollen im Bereich „Berechtigungen“ auf den Detailseiten API Gateway > APIs oder Gateways in der Google Cloud Console aufrufen und gewähren. Rollen können auch über die API oder die Google Cloud CLI gewährt werden.
Name der IAM-Rolle
Rollentitel
Beschreibung
roles/servicemanagement.serviceConsumer
Dienstnutzer
Berechtigungen für ein Google-Konto, eine Google-Gruppe oder ein Dienstkonto zum Aufrufen und Aktivieren der API im eigenen Projekt. Informationen zu dieser Rolle finden Sie unter Zugriffssteuerung für die Service Management API.
roles/apigateway.viewer
API Gateway-Betrachter
Lesezugriff auf ein API-Gateway und zugehörige Ressourcen. Diese Rolle umfasst Berechtigungen zum Abrufen und Auflisten von APIs, API-Konfigurationen, Gateways und Standorten.
roles/apigateway.admin
API Gateway-Administrator
Vollständiger Zugriff auf ein API-Gateway und zugehörige Ressourcen. Diese Rolle umfasst Berechtigungen zum Abrufen, Erstellen, Aktualisieren und Löschen von APIs, API-Konfigurationen, Gateways und Standorten.
API Gateway-Berechtigungen und -Rollen
In der folgenden Tabelle sind die Rollen auf Projektebene aufgeführt, die Zugriff auf API Gateway-Ressourcen gewähren, sowie die zugehörigen Berechtigungen:
Alle Berechtigungen, die in der Rolle API Gateway-Betrachter enthalten sind, plus:
apigateway.apiconfigs.create
apiapi.apiconfigs.delete apigateway.apiconfigs.setIamPolicy
apiapi.apiconfigs.update
apigateway.apis.create
apigateway.apis.delete
apigateway apis.setIamPolicy
api.apis.update
apigateway.gateways.create
apigateway.gateways.delete
apigateway.gateways. setIamPolicy
apigateway.gateways.update
apigateway.operations.cancel
apigateway.operations.delete
Benutzerdefinierte Rollen
Wenn einfache oder vordefinierte Rollen Ihren spezifischen Anforderungen nicht entsprechen, unterstützt API Gateway die Verwendung benutzerdefinierter Rollen. Mit IAM können Sie benutzerdefinierte Rollen für das API-Gateway erstellen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-03 (UTC)."],[[["\u003cp\u003eAPI Gateway uses Identity and Access Management (IAM) to control access to APIs, allowing you to grant access at both the project and service consumer levels.\u003c/p\u003e\n"],["\u003cp\u003eThe Service Consumer role permits users to view and enable an API within their own projects.\u003c/p\u003e\n"],["\u003cp\u003eThe API Gateway Viewer role provides read-only access to API gateways and their associated resources, while the API Gateway Admin role grants full access to manage these resources.\u003c/p\u003e\n"],["\u003cp\u003eCustom roles can be created via IAM for more granular control over API Gateway permissions, if the provided roles do not meet your specific needs.\u003c/p\u003e\n"]]],[],null,["# API Gateway API access overview\n===============================\n\nThis page describes the API access control options available to you in API Gateway.\n\nOverview\n--------\n\nAPI Gateway uses\n[Identity and Access Management (IAM)](/iam/docs)\nto control access to your API. You can grant access to your API at the project\nlevel and at the service consumer level. For example,\nyou can:\n\n- Grant access to your API users so they can enable your API in their own Google Cloud project.\n- Allow principals to view all API Gateway resources.\n- Allow principals to create, update, or delete API Gateway resources.\n\nRoles that control access to services and resources\n---------------------------------------------------\n\nYou can view and grant roles using the permissions panel on the **API Gateway** \\\u003e\n**APIs** or **Gateways** detail pages in the Google Cloud console. Roles can also be granted\nusing the API, or with the Google Cloud CLI.\n\n| **Note:** Although you can grant other roles at the service level, we recommend that you use the roles listed in the previous table to manage your API.\n\nAPI Gateway permissions and roles\n---------------------------------\n\nThe following table lists the project-level roles that grant access to API Gateway resources and their associated permissions:\n\n| **Note:** To view pages in the Google Cloud console, you must grant users the **API Gateway Viewer** role or a higher role at the project level.\n\nCustom roles\n------------\n\nIf basic or predefined roles do not meet your specific needs, API Gateway supports the use of custom roles. You can use IAM to create [custom roles](/iam/docs/creating-custom-roles) for API Gateway."]]