public sealed class BatchCreateInstanceStatus : IMessage<BatchCreateInstanceStatus>, IEquatable<BatchCreateInstanceStatus>, IDeepCloneable<BatchCreateInstanceStatus>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1beta API class BatchCreateInstanceStatus.
Message for current status of an instance in the BatchCreateInstances
operation.
For example, lets say a BatchCreateInstances workflow has 4 instances,
Instance1 through Instance4. Lets also assume that 2 instances succeeded
but the third failed to create and the 4th was never picked up for creation
because of failure of the previous one. Then, resulting states would look
something like:
Instance1 = ROLLED_BACK
Instance2 = ROLLED_BACK
Instance3 = FAILED
Instance4 = FAILED
However, while the operation is running, the instance might be in other
states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states
/ do not get further updated once the operation is done.
public BatchCreateInstanceStatus.Types.State State { get; set; }
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
ACTIVE, indicating that instances were created successfully
FAILED, indicating that a particular instance failed creation
ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
[[["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\u003eThis documentation details the \u003ccode\u003eBatchCreateInstanceStatus\u003c/code\u003e class within the AlloyDB v1beta API, outlining its role in tracking the status of instances during batch creation operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchCreateInstanceStatus\u003c/code\u003e class can represent various states for each instance, including \u003ccode\u003eACTIVE\u003c/code\u003e, \u003ccode\u003eFAILED\u003c/code\u003e, \u003ccode\u003eROLLED_BACK\u003c/code\u003e, \u003ccode\u003ePENDING_CREATE\u003c/code\u003e, \u003ccode\u003eDELETING\u003c/code\u003e, and \u003ccode\u003eCREATING\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eError\u003c/code\u003e (to indicate if an error occurred) and \u003ccode\u003eState\u003c/code\u003e (to determine the instance's current status in the batch operation), replacing the deprecated \u003ccode\u003eErrorMsg\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eType\u003c/code\u003e property reflects the type of the instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from an \u003ccode\u003eobject\u003c/code\u003e class and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1beta API - Class BatchCreateInstanceStatus (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.BatchCreateInstanceStatus)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.BatchCreateInstanceStatus) \n\n public sealed class BatchCreateInstanceStatus : IMessage\u003cBatchCreateInstanceStatus\u003e, IEquatable\u003cBatchCreateInstanceStatus\u003e, IDeepCloneable\u003cBatchCreateInstanceStatus\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1beta API class BatchCreateInstanceStatus.\n\nMessage for current status of an instance in the BatchCreateInstances\noperation.\nFor example, lets say a BatchCreateInstances workflow has 4 instances,\nInstance1 through Instance4. Lets also assume that 2 instances succeeded\nbut the third failed to create and the 4th was never picked up for creation\nbecause of failure of the previous one. Then, resulting states would look\nsomething like:\n\n1. Instance1 = ROLLED_BACK\n2. Instance2 = ROLLED_BACK\n3. Instance3 = FAILED\n4. Instance4 = FAILED\n\nHowever, while the operation is running, the instance might be in other\nstates including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states\n/ do not get further updated once the operation is done. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchCreateInstanceStatus \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchCreateInstanceStatus](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.BatchCreateInstanceStatus), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchCreateInstanceStatus](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.BatchCreateInstanceStatus), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchCreateInstanceStatus](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.BatchCreateInstanceStatus), [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.AlloyDb.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.dll\n\nConstructors\n------------\n\n### BatchCreateInstanceStatus()\n\n public BatchCreateInstanceStatus()\n\n### BatchCreateInstanceStatus(BatchCreateInstanceStatus)\n\n public BatchCreateInstanceStatus(BatchCreateInstanceStatus other)\n\nProperties\n----------\n\n### Error\n\n public Status Error { get; set; }\n\nThe RPC status of the instance creation operation. This field will be\npresent if an error happened during the instance creation.\n\n### ErrorMsg\n\n public string ErrorMsg { get; set; }\n\nDEPRECATED - Use the error field instead.\nError, if any error occurred and is available, during instance creation.\n\n### State\n\n public BatchCreateInstanceStatus.Types.State State { get; set; }\n\nThe current state of an instance involved in the batch create operation.\nOnce the operation is complete, the final state of the instances in the\nLRO can be one of:\n\n1. ACTIVE, indicating that instances were created successfully\n2. FAILED, indicating that a particular instance failed creation\n3. ROLLED_BACK indicating that although the instance was created successfully, it had to be rolled back and deleted due to failure in other steps of the workflow.\n\n### Type\n\n public Instance.Types.InstanceType Type { get; set; }"]]