Method: keyRings.create

Full name: projects.locations.keyRings.create

Create a newKeyRing in a given Project and Location.

HTTP request


POST https://cloudkms.googleapis.com/v1/{parent=projects/*/locations/*}/keyRings

The URLs usegRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the location associated with theKeyRings, in the formatprojects/*/locations/*.

Authorization requires the followingIAM permission on the specified resourceparent:

  • cloudkms.keyRings.create

Query parameters

Parameters
keyRingId

string

Required. It must be unique within a location and match the regular expression[a-zA-Z0-9_-]{1,63}

Request body

The request body contains an instance ofKeyRing.

Response body

If successful, the response body contains a newly created instance ofKeyRing.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloudkms
  • https://www.googleapis.com/auth/cloud-platform

For more information, see theAuthentication Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-11 UTC.