Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Cloud Key Management Service hat sowohl herkömmliche REST/HTTP- als auch gRPC-Schnittstellen. Wenn Sie nicht über unsere Clientbibliotheken auf die Cloud Key Management Service API zugreifen möchten, können Sie eigene Clientbibliotheken schreiben, die deren REST/HTTP- oder gRPC-API-Oberfläche verwenden. Wir empfehlen diesen Ansatz nur, wenn Ihre Programmiersprache oder andere Anforderungen von den bereitgestellten Clientbibliotheken nicht erfüllt werden.
gRPC API
Sie können Ihre eigenen gRPC-Clientbibliotheken in jeder von gRPC unterstützten Sprache für die Cloud Key Management Service API aus der .proto-Dienstdefinition generieren. Verwenden Sie dazu diese Ressourcen:
gRPC-Dokumentation: Alles, was Sie zum Generieren und Verwenden Ihres eigenen gRPC-Clientcodes benötigen.
RPC API-Referenz: Sprachunabhängige Übersicht über die RPC-Oberfläche.
REST/HTTP API
Es gibt mehrere Möglichkeiten, mit der REST-Schnittstelle eines Dienstes zu interagieren.
Verwenden Sie zum Erstellen eigener Clients die folgenden Ressourcen:
API Discovery Service: Zeigt maschinenlesbare Metadaten zur REST/HTTP API-Oberfläche an, die zum Erstellen von Clientbibliotheken, Tools und Plug-ins nützlich sind.
Cloud KMS hat globale und regionale Dienstendpunkte. Der globale REST/HTTP-Endpunkt ist https://cloudkms.googleapis.com und der globale gRPC-Endpunkt ist cloudkms.googleapis.com. Der globale Endpunkt leitet Anfragen an einen regionalen Dienst am Standort weiter, der durch den Ressourcennamen angegeben wird.
Die regionalen REST/HTTP-Endpunkte sind https://<region>-cloudkms.googleapis.com und die regionalen gRPC-Endpunkte sind <region>-cloudkms.googleapis.com, wobei <region> durch alle unterstützten regionalen, dual-regionale oder multiregionale Cloud KMS-Standorte. Diese Endpunkte sind nach Standort isoliert. Das bedeutet, dass jeder Endpunkt Anfragen an einen regionalen Dienst an dem durch den Endpunktnamen angegebenen Standort weiterleitet. Wenn der durch den Ressourcennamen angegebene Standort nicht mit dem vom Endpunkt angegebenen Standort übereinstimmt, schlägt die Anfrage fehl.
[[["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-08-18 (UTC)."],[],[],null,["# Service APIs Overview\n\nCloud Key Management Service has both traditional REST/HTTP and\n[gRPC](http://grpc.io) interfaces. If you don't want to use our\n[client libraries](/kms/docs/reference/libraries) to access the\nCloud Key Management Service API, you have the option of writing your own client libraries that\nuse its REST/HTTP or gRPC API surface. We recommend this approach only if your\nprogramming language or other needs are not met by the provided client\nlibraries.\n\ngRPC API\n--------\n\nYou can generate your own gRPC client libraries in any gRPC-supported language\nfor the Cloud Key Management Service API from its .proto service definition using these resources:\n\n- [Using gRPC with Cloud KMS](/kms/docs/grpc)\n- [Cloud KMS service definition](https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/service.proto)\n- [gRPC documentation](http://www.grpc.io/docs/): Everything you need to generate and use your own gRPC client code.\n- [RPC API Reference](/kms/docs/reference/rpc): Language-independent overview of the RPC surface.\n\nREST/HTTP API\n-------------\n\nThere are a number of options for interacting with a service's REST interface.\nTo create your own clients, use the following resources:\n\n- [REST API Reference](/kms/docs/reference/rest)\n- [Guidelines for working with Google HTTP APIs](https://cloud.google.com/apis/docs/http)\n- [API Discovery Service](https://developers.google.com/discovery/v1/getting_started): Exposes machine readable metadata about the REST/HTTP API surface, useful for creating client libraries, tools, and plugins.\n- [Directory of client samples](https://developers.google.com/discovery/libraries) built with REST/HTTP APIs and the Google API Discovery Service.\n\nService Endpoints\n-----------------\n\nCloud KMS has global and regional service endpoints. The global\nREST/HTTP endpoint is `https://cloudkms.googleapis.com` and the\nglobal gRPC endpoint is `cloudkms.googleapis.com`. The global\nendpoint routes requests to a regional service in the\n[location](/kms/docs/locations) specified by the resource name.\n\nThe regional REST/HTTP endpoints are\n`https://`**\u003cregion\u003e**`-cloudkms.googleapis.com` and the\nregional gRPC endpoints are\n**\u003cregion\u003e**`-cloudkms.googleapis.com`, substituting\n**\u003cregion\u003e** for any of the supported regional,\ndual-regional, or multi-regional\n[Cloud KMS locations](/kms/docs/locations). These endpoints are isolated by\nlocation, meaning each endpoint routes requests to a regional service in the\nlocation specified by the endpoint name. If the location specified by the\nresource name doesn't match the location specified by the endpoint, the request\nwill fail."]]