public sealed class CreateInstanceRequest : IMessage<CreateInstanceRequest>, IEquatable<CreateInstanceRequest>, IDeepCloneable<CreateInstanceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Memorystore v1 API class CreateInstanceRequest.
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateInstanceRequest\u003c/code\u003e class is used to create a request for a new Memorystore instance in the Google Cloud Memorystore v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class requires specifying the parent resource location, the instance ID, and the instance details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstanceId\u003c/code\u003e must adhere to specific formatting rules, including a length between 4-63 characters, and unique within the specified location.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eRequestId\u003c/code\u003e can be included to prevent accidental duplicate instance creation, and this must be a UUID.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e for message handling, equality checks, and object cloning.\u003c/p\u003e\n"]]],[],null,["# Memorystore v1 API - Class CreateInstanceRequest (1.0.0-beta03)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta03 (latest)](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CreateInstanceRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/1.0.0-beta02/Google.Cloud.Memorystore.V1.CreateInstanceRequest) \n\n public sealed class CreateInstanceRequest : IMessage\u003cCreateInstanceRequest\u003e, IEquatable\u003cCreateInstanceRequest\u003e, IDeepCloneable\u003cCreateInstanceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Memorystore v1 API class CreateInstanceRequest.\n\nRequest message for \\[CreateInstance\\]\\[\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateInstanceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CreateInstanceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CreateInstanceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CreateInstanceRequest), [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.Memorystore.V1](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Memorystore.V1.dll\n\nConstructors\n------------\n\n### CreateInstanceRequest()\n\n public CreateInstanceRequest()\n\n### CreateInstanceRequest(CreateInstanceRequest)\n\n public CreateInstanceRequest(CreateInstanceRequest other)\n\nProperties\n----------\n\n### Instance\n\n public Instance Instance { get; set; }\n\nRequired. The instance to create.\n\n### InstanceId\n\n public string InstanceId { get; set; }\n\nRequired. The ID to use for the instance, which will become the final\ncomponent of the instance's resource name.\n\nThis value is subject to the following restrictions:\n\n- Must be 4-63 characters in length\n- Must begin with a letter or digit\n- Must contain only lowercase letters, digits, and hyphens\n- Must not end with a hyphen\n- Must be unique within a location\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource where this instance will be created.\nFormat: projects/{project}/locations/{location}\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Memorystore.V1/latest/Google.Cloud.Memorystore.V1.CreateInstanceRequest#Google_Cloud_Memorystore_V1_CreateInstanceRequest_Parent) resource name property.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server will know to\nignore the request if it has already been completed. The server will\nguarantee that for at least 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and the\nrequest times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000)."]]