POST /v1/projects/{projectsId}/locations/{locationsId}/instances
Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).
Request
- Base URLhttps://file.googleapis.com
- AuthOAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
Path parameters
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Required. The name of the instance to create. The name must be unique for the specified project and location.
Request body
A Filestore instance.
Output only. The incremental increase or decrease in capacity, designated in some number of GB.
Output only. The time when the instance was created.
Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance's performance by using the 'performance_config' field.
Optional. Indicates whether the instance is protected against deletion.
Optional. The reason for enabling deletion protection.
The description of the instance (2048 characters or less).
Directory Services configuration for Kerberos-based authentication.
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
File system shares on the instance. For this version, only a single file share is supported.
KMS key name used for data encryption.
Resource labels to represent user provided metadata.
Output only. The maximum capacity of the instance in GB.
Output only. The minimum capacity of the instance in GB.
Output only. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance}.
VPC networks to which the instance is connected. For this version, only a single network is supported.
Used for setting the performance configuration. If the user doesn't specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance's capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively).
The enforced performance limits, calculated from the instance's performance configuration.
Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: NFS_V3.
Optional. The configuration used to replicate an instance.
Output only. Reserved for future use.
Output only. Reserved for future use.
Output only. The instance state.
Output only. Additional information about the instance state, if available.
Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment" : "production", "123456789013/costCenter" : "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
The service tier of the instance.
Response
Successful response
This resource represents a long-running operation that is the result of a network API call.
If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
Changes
No recorded changes to this operation across all 5 revisions of this API.