- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Creates an instance.
HTTP request
POST https://file.googleapis.com/v1beta1/{parent=projects/*/locations/*}/instances
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The instance's project and location, in the format projects/{projectId}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example us-west1-b. |
Query parameters
Parameters | |
---|---|
instanceId |
Required. The ID of the instance to create. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. |
Request body
The request body contains an instance of Instance
.
Response body
If successful, the response body contains a newly created instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.