Class Instance
A Google Cloud Filestore instance.
To get more information about Instance, see:
Example Usage - Filestore Instance Basic
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var instance = new Gcp.Filestore.Instance("instance", new Gcp.Filestore.InstanceArgs
{
FileShares = new Gcp.Filestore.Inputs.InstanceFileSharesArgs
{
CapacityGb = 2660,
Name = "share1",
},
Networks =
{
new Gcp.Filestore.Inputs.InstanceNetworkArgs
{
Modes =
{
"MODE_IPV4",
},
Network = "default",
},
},
Tier = "PREMIUM",
Zone = "us-central1-b",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Filestore
Assembly: Pulumi.Gcp.dll
Syntax
public class Instance : CustomResource
Constructors
View SourceInstance(String, InstanceArgs, CustomResourceOptions)
Create a Instance resource with the given unique name, arguments, and options.
Declaration
public Instance(string name, InstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreateTime
Creation timestamp in RFC3339 text format.
Declaration
public Output<string> CreateTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
A description of the instance.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Etag
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FileShares
File system shares on the instance. For this version, only a single file share is supported. Structure is documented below.
Declaration
public Output<InstanceFileShares> FileShares { get; }
Property Value
| Type | Description |
|---|---|
| Output<InstanceFileShares> |
Labels
Resource labels to represent user-provided metadata.
Declaration
public Output<ImmutableDictionary<string, string>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Name
The name of the fileshare (16 characters or less)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Networks
VPC networks to which the instance is connected. For this version, only a single network is supported. Structure is documented below.
Declaration
public Output<ImmutableArray<InstanceNetwork>> Networks { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<InstanceNetwork>> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tier
The service tier of the instance.
Declaration
public Output<string> Tier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Zone
The name of the Filestore zone of the instance.
Declaration
public Output<string> Zone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, InstanceState, CustomResourceOptions)
Get an existing Instance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Instance Get(string name, Input<string> id, InstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| InstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Instance |