public sealed class CreateCryptoKeyRequest : IMessage<CreateCryptoKeyRequest>, IEquatable<CreateCryptoKeyRequest>, IDeepCloneable<CreateCryptoKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class CreateCryptoKeyRequest.
Request message for
[KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].
public bool SkipInitialVersionCreation { get; set; }
If set to true, the request will create a
[CryptoKey][google.cloud.kms.v1.CryptoKey] without any
[CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must
manually call
[CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
or
[ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]
before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eCreateCryptoKeyRequest\u003c/code\u003e class within the Google Cloud Key Management Service (KMS) v1 API for .NET, with the latest version being 3.16.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateCryptoKeyRequest\u003c/code\u003e class is used to construct a request to create a new \u003ccode\u003eCryptoKey\u003c/code\u003e within Google Cloud KMS, and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCreateCryptoKeyRequest\u003c/code\u003e include \u003ccode\u003eCryptoKey\u003c/code\u003e, \u003ccode\u003eCryptoKeyId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsKeyRingName\u003c/code\u003e, and \u003ccode\u003eSkipInitialVersionCreation\u003c/code\u003e, which define the details of the new cryptographic key and its relationship to other KMS resources.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple versions of the API, ranging from the latest (3.16.0) down to 2.2.0, allowing users to access the relevant API version documentation depending on their project's needs.\u003c/p\u003e\n"],["\u003cp\u003eYou can inherit from \u003ccode\u003eobject\u003c/code\u003e to get methods such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class CreateCryptoKeyRequest (3.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.CreateCryptoKeyRequest) \n\n public sealed class CreateCryptoKeyRequest : IMessage\u003cCreateCryptoKeyRequest\u003e, IEquatable\u003cCreateCryptoKeyRequest\u003e, IDeepCloneable\u003cCreateCryptoKeyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class CreateCryptoKeyRequest.\n\nRequest message for\n\\[KeyManagementService.CreateCryptoKey\\]\\[google.cloud.kms.v1.KeyManagementService.CreateCryptoKey\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateCryptoKeyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateCryptoKeyRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateCryptoKeyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateCryptoKeyRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateCryptoKeyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateCryptoKeyRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateCryptoKeyRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Kms.V1](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Kms.V1.dll\n\nConstructors\n------------\n\n### CreateCryptoKeyRequest()\n\n public CreateCryptoKeyRequest()\n\n### CreateCryptoKeyRequest(CreateCryptoKeyRequest)\n\n public CreateCryptoKeyRequest(CreateCryptoKeyRequest other)\n\nProperties\n----------\n\n### CryptoKey\n\n public CryptoKey CryptoKey { get; set; }\n\nRequired. A \\[CryptoKey\\]\\[google.cloud.kms.v1.CryptoKey\\] with initial field\nvalues.\n\n### CryptoKeyId\n\n public string CryptoKeyId { get; set; }\n\nRequired. It must be unique within a KeyRing and match the regular\nexpression `[a-zA-Z0-9_-]{1,63}`\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The \\[name\\]\\[google.cloud.kms.v1.KeyRing.name\\] of the KeyRing\nassociated with the \\[CryptoKeys\\]\\[google.cloud.kms.v1.CryptoKey\\].\n\n### ParentAsKeyRingName\n\n public KeyRingName ParentAsKeyRingName { get; set; }\n\n[KeyRingName](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.KeyRingName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateCryptoKeyRequest#Google_Cloud_Kms_V1_CreateCryptoKeyRequest_Parent) resource name property.\n\n### SkipInitialVersionCreation\n\n public bool SkipInitialVersionCreation { get; set; }\n\nIf set to true, the request will create a\n\\[CryptoKey\\]\\[google.cloud.kms.v1.CryptoKey\\] without any\n\\[CryptoKeyVersions\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\]. You must\nmanually call\n\\[CreateCryptoKeyVersion\\]\\[google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion\\]\nor\n\\[ImportCryptoKeyVersion\\]\\[google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion\\]\nbefore you can use this \\[CryptoKey\\]\\[google.cloud.kms.v1.CryptoKey\\]."]]