Show / Hide Table of Contents

Class Instance

A Google Cloud Filestore instance.

To get more information about Instance, see:

  • API documentation
  • How-to Guides
  • Official Documentation
  • Use with Kubernetes
  • Copying Data In/Out

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Instance
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Filestore
Assembly: Pulumi.Gcp.dll
Syntax
public class Instance : CustomResource

Constructors

View Source

Instance(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 Source

CreateTime

Creation timestamp in RFC3339 text format.

Declaration
public Output<string> CreateTime { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

A description of the instance.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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>>
View Source

Name

The name of the fileshare (16 characters or less)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>
View Source

Tier

The service tier of the instance.

Declaration
public Output<string> Tier { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.