gcp.filestore.Backup
Explore with Pulumi AI
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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- Source
Instance 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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- Source
Instance 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.
- String
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance 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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance 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.
- 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.
- String
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance 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:
- Capacity
Gb string The amount of bytes needed to allocate a full copy of the snapshot content.
- Create
Time string The time when the snapshot was created in RFC3339 text format.
- Download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- Id string
The provider-assigned unique ID for this managed resource.
- Kms
Key stringName KMS key name used for data encryption.
- Source
Instance stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- State string
The backup state.
- Storage
Bytes 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 string The amount of bytes needed to allocate a full copy of the snapshot content.
- Create
Time string The time when the snapshot was created in RFC3339 text format.
- Download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- Id string
The provider-assigned unique ID for this managed resource.
- Kms
Key stringName KMS key name used for data encryption.
- Source
Instance stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- State string
The backup state.
- Storage
Bytes 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 String The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time String The time when the snapshot was created in RFC3339 text format.
- download
Bytes String Amount of bytes that will be downloaded if the backup is restored.
- id String
The provider-assigned unique ID for this managed resource.
- kms
Key StringName KMS key name used for data encryption.
- source
Instance StringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state String
The backup state.
- storage
Bytes 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 string The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time string The time when the snapshot was created in RFC3339 text format.
- download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- id string
The provider-assigned unique ID for this managed resource.
- kms
Key stringName KMS key name used for data encryption.
- source
Instance stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state string
The backup state.
- storage
Bytes 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_ strname KMS key name used for data encryption.
- source_
instance_ strtier 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.
- capacity
Gb String The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time String The time when the snapshot was created in RFC3339 text format.
- download
Bytes String Amount of bytes that will be downloaded if the backup is restored.
- id String
The provider-assigned unique ID for this managed resource.
- kms
Key StringName KMS key name used for data encryption.
- source
Instance StringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state String
The backup state.
- storage
Bytes 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.
- Capacity
Gb string The amount of bytes needed to allocate a full copy of the snapshot content.
- Create
Time 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.
- Download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- Kms
Key stringName 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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- Source
Instance string 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 stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- State string
The backup state.
- Storage
Bytes 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 string The amount of bytes needed to allocate a full copy of the snapshot content.
- Create
Time 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.
- Download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- Kms
Key stringName 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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- Source
Instance string 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 stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- State string
The backup state.
- Storage
Bytes 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 String The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time 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.
- download
Bytes String Amount of bytes that will be downloaded if the backup is restored.
- kms
Key StringName 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.
- String
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance String 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 StringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state String
The backup state.
- storage
Bytes 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 string The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time 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.
- download
Bytes string Amount of bytes that will be downloaded if the backup is restored.
- kms
Key stringName 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.
- string
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance string 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 stringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state string
The backup state.
- storage
Bytes 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_ strname 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.
- 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_ strtier 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.
- capacity
Gb String The amount of bytes needed to allocate a full copy of the snapshot content.
- create
Time 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.
- download
Bytes String Amount of bytes that will be downloaded if the backup is restored.
- kms
Key StringName 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.
- String
Name of the file share in the source Cloud Filestore instance that the backup is created from.
- source
Instance String 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 StringTier The service tier of the source Cloud Filestore instance that this backup is created from.
- state String
The backup state.
- storage
Bytes 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.