Creates an instance and begins preparing it to begin serving. The returned long-running operation can be used to track the progress of preparing the new instance. The instance name is assigned by the caller. If the named instance already exists,instances.createreturnsALREADY_EXISTS.
Immediately upon completion of this request:
The instance is readable via the API, with all requested attributes but no allocated resources. Its state isCREATING.
Until completion of the returned operation:
Cancelling the operation renders the instance immediately unreadable via the API.
The instance can be deleted.
All other attempts to modify the instance are rejected.
Upon completion of the returned operation:
Billing for all successfully-allocated resources begins (some types may have lower than the requested levels).
Databases can be created in the instance.
The instance's allocated resource levels are readable via the API.
The instance's state becomesREADY.
The returned long-running operation will have a name of the format<instance_name>/operations/<operationId>and can be used to track creation of the instance. The metadata field type isCreateInstanceMetadata. The response field type isInstance, if successful.
[[["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-06-18 UTC."],[],[],null,["# Method: projects.instances.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates an instance and begins preparing it to begin serving. The returned long-running operation can be used to track the progress of preparing the new instance. The instance name is assigned by the caller. If the named instance already exists, `instances.create` returns `ALREADY_EXISTS`.\n\nImmediately upon completion of this request:\n\n- The instance is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`.\n\nUntil completion of the returned operation:\n\n- Cancelling the operation renders the instance immediately unreadable via the API.\n- The instance can be deleted.\n- All other attempts to modify the instance are rejected.\n\nUpon completion of the returned operation:\n\n- Billing for all successfully-allocated resources begins (some types may have lower than the requested levels).\n- Databases can be created in the instance.\n- The instance's allocated resource levels are readable via the API.\n- The instance's state becomes `READY`.\n\nThe returned long-running operation will have a name of the format `\u003cinstance_name\u003e/operations/\u003coperationId\u003e` and can be used to track creation of the instance. The metadata field type is [CreateInstanceMetadata](/spanner/docs/reference/rest/v1/CreateInstanceMetadata). The response field type is [Instance](/spanner/docs/reference/rest/v1/projects.instances#Instance), if successful.\n\n### HTTP request\n\nChoose a location: \nglobal europe-west8 me-central2 us-central1 us-central2 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4 us-west8 us-east7 \n\n\u003cbr /\u003e\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/spanner/docs/reference/rest/v1/projects.instanceConfigs.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/spanner.admin`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]