Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client 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.
Generated from protobuf message google.cloud.alloydb.v1.BatchCreateInstanceStatus
Namespace
Google \ Cloud \ AlloyDb \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ state
int
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: 1. ACTIVE, indicating that instances were created successfully 2. FAILED, indicating that a particular instance failed creation 3. 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.
↳ error_msg
string
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
↳ type
int
getState
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.
Returns
Type
Description
int
setState
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.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getErrorMsg
DEPRECATED - Use the error field instead.
Error, if any error occurred and is available, during instance creation.
Returns
Type
Description
string
setErrorMsg
DEPRECATED - Use the error field instead.
Error, if any error occurred and is available, during instance creation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getError
The RPC status of the instance creation operation. This field will be
present if an error happened during the instance creation.
[[["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."],[],[],null,["# Google Cloud AlloyDB for PostgreSQL V1 Client - Class BatchCreateInstanceStatus (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.BatchCreateInstanceStatus)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.BatchCreateInstanceStatus)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.BatchCreateInstanceStatus)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.BatchCreateInstanceStatus)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.BatchCreateInstanceStatus)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.BatchCreateInstanceStatus)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.BatchCreateInstanceStatus)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.BatchCreateInstanceStatus)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.BatchCreateInstanceStatus)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.BatchCreateInstanceStatus)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.BatchCreateInstanceStatus)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.BatchCreateInstanceStatus)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.BatchCreateInstanceStatus)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.BatchCreateInstanceStatus)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.BatchCreateInstanceStatus)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.BatchCreateInstanceStatus) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class BatchCreateInstanceStatus.\n\nMessage for current status of an instance in the BatchCreateInstances\noperation.\n\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 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.\n\nGenerated from protobuf message `google.cloud.alloydb.v1.BatchCreateInstanceStatus`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getState\n\nThe current state of an instance involved in the batch create operation.\n\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### setState\n\nThe current state of an instance involved in the batch create operation.\n\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### getErrorMsg\n\nDEPRECATED - Use the error field instead.\n\nError, if any error occurred and is available, during instance creation.\n\n### setErrorMsg\n\nDEPRECATED - Use the error field instead.\n\nError, if any error occurred and is available, during instance creation.\n\n### getError\n\nThe RPC status of the instance creation operation. This field will be\npresent if an error happened during the instance creation.\n\n### hasError\n\n### clearError\n\n### setError\n\nThe RPC status of the instance creation operation. This field will be\npresent if an error happened during the instance creation.\n\n### getType\n\nGenerated from protobuf field `.google.cloud.alloydb.v1.Instance.InstanceType type = 3;`\n\n### setType\n\nGenerated from protobuf field `.google.cloud.alloydb.v1.Instance.InstanceType type = 3;`"]]