1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. filestore
  5. Backup
Google Cloud Classic v6.58.0 published on Tuesday, Jun 6, 2023 by Pulumi

gcp.filestore.Backup

Explore with Pulumi AI

gcp logo
Google Cloud Classic v6.58.0 published on Tuesday, Jun 6, 2023 by Pulumi

    A Google Cloud Filestore backup.

    To get more information about Backup, see:

    Example Usage

    Filestore Backup Basic

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var instance = new Gcp.Filestore.Instance("instance", new()
        {
            Location = "us-central1-b",
            Tier = "BASIC_SSD",
            FileShares = new Gcp.Filestore.Inputs.InstanceFileSharesArgs
            {
                CapacityGb = 2560,
                Name = "share1",
            },
            Networks = new[]
            {
                new Gcp.Filestore.Inputs.InstanceNetworkArgs
                {
                    Network = "default",
                    Modes = new[]
                    {
                        "MODE_IPV4",
                    },
                    ConnectMode = "DIRECT_PEERING",
                },
            },
        });
    
        var backup = new Gcp.Filestore.Backup("backup", new()
        {
            Location = "us-central1",
            SourceInstance = instance.Id,
            SourceFileShare = "share1",
            Description = "This is a filestore backup for the test instance",
            Labels = 
            {
                { "files", "label1" },
                { "other-label", "label2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/filestore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		instance, err := filestore.NewInstance(ctx, "instance", &filestore.InstanceArgs{
    			Location: pulumi.String("us-central1-b"),
    			Tier:     pulumi.String("BASIC_SSD"),
    			FileShares: &filestore.InstanceFileSharesArgs{
    				CapacityGb: pulumi.Int(2560),
    				Name:       pulumi.String("share1"),
    			},
    			Networks: filestore.InstanceNetworkArray{
    				&filestore.InstanceNetworkArgs{
    					Network: pulumi.String("default"),
    					Modes: pulumi.StringArray{
    						pulumi.String("MODE_IPV4"),
    					},
    					ConnectMode: pulumi.String("DIRECT_PEERING"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = filestore.NewBackup(ctx, "backup", &filestore.BackupArgs{
    			Location:        pulumi.String("us-central1"),
    			SourceInstance:  instance.ID(),
    			SourceFileShare: pulumi.String("share1"),
    			Description:     pulumi.String("This is a filestore backup for the test instance"),
    			Labels: pulumi.StringMap{
    				"files":       pulumi.String("label1"),
    				"other-label": pulumi.String("label2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.filestore.Instance;
    import com.pulumi.gcp.filestore.InstanceArgs;
    import com.pulumi.gcp.filestore.inputs.InstanceFileSharesArgs;
    import com.pulumi.gcp.filestore.inputs.InstanceNetworkArgs;
    import com.pulumi.gcp.filestore.Backup;
    import com.pulumi.gcp.filestore.BackupArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var instance = new Instance("instance", InstanceArgs.builder()        
                .location("us-central1-b")
                .tier("BASIC_SSD")
                .fileShares(InstanceFileSharesArgs.builder()
                    .capacityGb(2560)
                    .name("share1")
                    .build())
                .networks(InstanceNetworkArgs.builder()
                    .network("default")
                    .modes("MODE_IPV4")
                    .connectMode("DIRECT_PEERING")
                    .build())
                .build());
    
            var backup = new Backup("backup", BackupArgs.builder()        
                .location("us-central1")
                .sourceInstance(instance.id())
                .sourceFileShare("share1")
                .description("This is a filestore backup for the test instance")
                .labels(Map.ofEntries(
                    Map.entry("files", "label1"),
                    Map.entry("other-label", "label2")
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    instance = gcp.filestore.Instance("instance",
        location="us-central1-b",
        tier="BASIC_SSD",
        file_shares=gcp.filestore.InstanceFileSharesArgs(
            capacity_gb=2560,
            name="share1",
        ),
        networks=[gcp.filestore.InstanceNetworkArgs(
            network="default",
            modes=["MODE_IPV4"],
            connect_mode="DIRECT_PEERING",
        )])
    backup = gcp.filestore.Backup("backup",
        location="us-central1",
        source_instance=instance.id,
        source_file_share="share1",
        description="This is a filestore backup for the test instance",
        labels={
            "files": "label1",
            "other-label": "label2",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const instance = new gcp.filestore.Instance("instance", {
        location: "us-central1-b",
        tier: "BASIC_SSD",
        fileShares: {
            capacityGb: 2560,
            name: "share1",
        },
        networks: [{
            network: "default",
            modes: ["MODE_IPV4"],
            connectMode: "DIRECT_PEERING",
        }],
    });
    const backup = new gcp.filestore.Backup("backup", {
        location: "us-central1",
        sourceInstance: instance.id,
        sourceFileShare: "share1",
        description: "This is a filestore backup for the test instance",
        labels: {
            files: "label1",
            "other-label": "label2",
        },
    });
    
    resources:
      instance:
        type: gcp:filestore:Instance
        properties:
          location: us-central1-b
          tier: BASIC_SSD
          fileShares:
            capacityGb: 2560
            name: share1
          networks:
            - network: default
              modes:
                - MODE_IPV4
              connectMode: DIRECT_PEERING
      backup:
        type: gcp:filestore:Backup
        properties:
          location: us-central1
          sourceInstance: ${instance.id}
          sourceFileShare: share1
          description: This is a filestore backup for the test instance
          labels:
            files: label1
            other-label: label2
    

    Create Backup Resource

    new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
    @overload
    def Backup(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               description: Optional[str] = None,
               labels: Optional[Mapping[str, str]] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               project: Optional[str] = None,
               source_file_share: Optional[str] = None,
               source_instance: Optional[str] = None)
    @overload
    def Backup(resource_name: str,
               args: BackupArgs,
               opts: Optional[ResourceOptions] = None)
    func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)
    public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
    public Backup(String name, BackupArgs args)
    public Backup(String name, BackupArgs args, CustomResourceOptions options)
    
    type: gcp:filestore:Backup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Backup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Backup resource accepts the following input properties:

    Location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    SourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    SourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    Description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    Labels Dictionary<string, string>

    Resource labels to represent user-provided metadata.

    Name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    SourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    SourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    Description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    Labels map[string]string

    Resource labels to represent user-provided metadata.

    Name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location String

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    sourceFileShare String

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance String

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    description String

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    labels Map<String,String>

    Resource labels to represent user-provided metadata.

    name String

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    sourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    labels {[key: string]: string}

    Resource labels to represent user-provided metadata.

    name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location str

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    source_file_share str

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    source_instance str

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    description str

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    labels Mapping[str, str]

    Resource labels to represent user-provided metadata.

    name str

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location String

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    sourceFileShare String

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance String

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    description String

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    labels Map<String>

    Resource labels to represent user-provided metadata.

    name String

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:

    CapacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    CreateTime string

    The time when the snapshot was created in RFC3339 text format.

    DownloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    Id string

    The provider-assigned unique ID for this managed resource.

    KmsKeyName string

    KMS key name used for data encryption.

    SourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    State string

    The backup state.

    StorageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    CapacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    CreateTime string

    The time when the snapshot was created in RFC3339 text format.

    DownloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    Id string

    The provider-assigned unique ID for this managed resource.

    KmsKeyName string

    KMS key name used for data encryption.

    SourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    State string

    The backup state.

    StorageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb String

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime String

    The time when the snapshot was created in RFC3339 text format.

    downloadBytes String

    Amount of bytes that will be downloaded if the backup is restored.

    id String

    The provider-assigned unique ID for this managed resource.

    kmsKeyName String

    KMS key name used for data encryption.

    sourceInstanceTier String

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state String

    The backup state.

    storageBytes String

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime string

    The time when the snapshot was created in RFC3339 text format.

    downloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    id string

    The provider-assigned unique ID for this managed resource.

    kmsKeyName string

    KMS key name used for data encryption.

    sourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state string

    The backup state.

    storageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacity_gb str

    The amount of bytes needed to allocate a full copy of the snapshot content.

    create_time str

    The time when the snapshot was created in RFC3339 text format.

    download_bytes str

    Amount of bytes that will be downloaded if the backup is restored.

    id str

    The provider-assigned unique ID for this managed resource.

    kms_key_name str

    KMS key name used for data encryption.

    source_instance_tier str

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state str

    The backup state.

    storage_bytes str

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb String

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime String

    The time when the snapshot was created in RFC3339 text format.

    downloadBytes String

    Amount of bytes that will be downloaded if the backup is restored.

    id String

    The provider-assigned unique ID for this managed resource.

    kmsKeyName String

    KMS key name used for data encryption.

    sourceInstanceTier String

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state String

    The backup state.

    storageBytes String

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    Look up Existing Backup Resource

    Get an existing Backup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BackupState, opts?: CustomResourceOptions): Backup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity_gb: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            download_bytes: Optional[str] = None,
            kms_key_name: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            source_file_share: Optional[str] = None,
            source_instance: Optional[str] = None,
            source_instance_tier: Optional[str] = None,
            state: Optional[str] = None,
            storage_bytes: Optional[str] = None) -> Backup
    func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
    public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
    public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CapacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    CreateTime string

    The time when the snapshot was created in RFC3339 text format.

    Description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    DownloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    KmsKeyName string

    KMS key name used for data encryption.

    Labels Dictionary<string, string>

    Resource labels to represent user-provided metadata.

    Location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    Name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    SourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    SourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    State string

    The backup state.

    StorageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    CapacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    CreateTime string

    The time when the snapshot was created in RFC3339 text format.

    Description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    DownloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    KmsKeyName string

    KMS key name used for data encryption.

    Labels map[string]string

    Resource labels to represent user-provided metadata.

    Location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    Name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    SourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    SourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    State string

    The backup state.

    StorageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb String

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime String

    The time when the snapshot was created in RFC3339 text format.

    description String

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    downloadBytes String

    Amount of bytes that will be downloaded if the backup is restored.

    kmsKeyName String

    KMS key name used for data encryption.

    labels Map<String,String>

    Resource labels to represent user-provided metadata.

    location String

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    name String

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sourceFileShare String

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance String

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    sourceInstanceTier String

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state String

    The backup state.

    storageBytes String

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb string

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime string

    The time when the snapshot was created in RFC3339 text format.

    description string

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    downloadBytes string

    Amount of bytes that will be downloaded if the backup is restored.

    kmsKeyName string

    KMS key name used for data encryption.

    labels {[key: string]: string}

    Resource labels to represent user-provided metadata.

    location string

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    name string

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sourceFileShare string

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance string

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    sourceInstanceTier string

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state string

    The backup state.

    storageBytes string

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacity_gb str

    The amount of bytes needed to allocate a full copy of the snapshot content.

    create_time str

    The time when the snapshot was created in RFC3339 text format.

    description str

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    download_bytes str

    Amount of bytes that will be downloaded if the backup is restored.

    kms_key_name str

    KMS key name used for data encryption.

    labels Mapping[str, str]

    Resource labels to represent user-provided metadata.

    location str

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    name str

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    source_file_share str

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    source_instance str

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    source_instance_tier str

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state str

    The backup state.

    storage_bytes str

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    capacityGb String

    The amount of bytes needed to allocate a full copy of the snapshot content.

    createTime String

    The time when the snapshot was created in RFC3339 text format.

    description String

    A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

    downloadBytes String

    Amount of bytes that will be downloaded if the backup is restored.

    kmsKeyName String

    KMS key name used for data encryption.

    labels Map<String>

    Resource labels to represent user-provided metadata.

    location String

    The name of the location of the instance. This can be a region for ENTERPRISE tier instances.


    name String

    The resource name of the backup. The name must be unique within the specified instance. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sourceFileShare String

    Name of the file share in the source Cloud Filestore instance that the backup is created from.

    sourceInstance String

    The resource name of the source Cloud Filestore instance, in the format projects/{projectId}/locations/{locationId}/instances/{instanceId}, used to create this backup.

    sourceInstanceTier String

    The service tier of the source Cloud Filestore instance that this backup is created from.

    state String

    The backup state.

    storageBytes String

    The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion.

    Import

    Backup can be imported using any of these accepted formats

     $ pulumi import gcp:filestore/backup:Backup default projects/{{project}}/locations/{{location}}/backups/{{name}}
    
     $ pulumi import gcp:filestore/backup:Backup default {{project}}/{{location}}/{{name}}
    
     $ pulumi import gcp:filestore/backup:Backup default {{location}}/{{name}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v6.58.0 published on Tuesday, Jun 6, 2023 by Pulumi