1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. netapp
  5. BackupPolicy
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.netapp.BackupPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    A backup policy is used to schedule backups at regular daily, weekly, or monthly intervals. Backup policies allow you to attach a backup schedule to a volume. The policy defines how many backups to retain at daily, weekly, or monthly intervals.

    To get more information about BackupPolicy, see:

    Example Usage

    Netapp Backup Policy Full

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const testBackupPolicyFull = new gcp.netapp.BackupPolicy("test_backup_policy_full", {
        name: "test-backup-policy-full",
        location: "us-central1",
        dailyBackupLimit: 2,
        weeklyBackupLimit: 1,
        monthlyBackupLimit: 1,
        description: "TF test backup schedule",
        enabled: true,
        labels: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    test_backup_policy_full = gcp.netapp.BackupPolicy("test_backup_policy_full",
        name="test-backup-policy-full",
        location="us-central1",
        daily_backup_limit=2,
        weekly_backup_limit=1,
        monthly_backup_limit=1,
        description="TF test backup schedule",
        enabled=True,
        labels={
            "foo": "bar",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/netapp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netapp.NewBackupPolicy(ctx, "test_backup_policy_full", &netapp.BackupPolicyArgs{
    			Name:               pulumi.String("test-backup-policy-full"),
    			Location:           pulumi.String("us-central1"),
    			DailyBackupLimit:   pulumi.Int(2),
    			WeeklyBackupLimit:  pulumi.Int(1),
    			MonthlyBackupLimit: pulumi.Int(1),
    			Description:        pulumi.String("TF test backup schedule"),
    			Enabled:            pulumi.Bool(true),
    			Labels: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var testBackupPolicyFull = new Gcp.Netapp.BackupPolicy("test_backup_policy_full", new()
        {
            Name = "test-backup-policy-full",
            Location = "us-central1",
            DailyBackupLimit = 2,
            WeeklyBackupLimit = 1,
            MonthlyBackupLimit = 1,
            Description = "TF test backup schedule",
            Enabled = true,
            Labels = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.netapp.BackupPolicy;
    import com.pulumi.gcp.netapp.BackupPolicyArgs;
    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 testBackupPolicyFull = new BackupPolicy("testBackupPolicyFull", BackupPolicyArgs.builder()
                .name("test-backup-policy-full")
                .location("us-central1")
                .dailyBackupLimit(2)
                .weeklyBackupLimit(1)
                .monthlyBackupLimit(1)
                .description("TF test backup schedule")
                .enabled(true)
                .labels(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    resources:
      testBackupPolicyFull:
        type: gcp:netapp:BackupPolicy
        name: test_backup_policy_full
        properties:
          name: test-backup-policy-full
          location: us-central1
          dailyBackupLimit: 2
          weeklyBackupLimit: 1
          monthlyBackupLimit: 1
          description: TF test backup schedule
          enabled: true
          labels:
            foo: bar
    

    Create BackupPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def BackupPolicy(resource_name: str,
                     args: BackupPolicyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     daily_backup_limit: Optional[int] = None,
                     location: Optional[str] = None,
                     monthly_backup_limit: Optional[int] = None,
                     weekly_backup_limit: Optional[int] = None,
                     description: Optional[str] = None,
                     enabled: Optional[bool] = None,
                     labels: Optional[Mapping[str, str]] = None,
                     name: Optional[str] = None,
                     project: Optional[str] = None)
    func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)
    public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
    public BackupPolicy(String name, BackupPolicyArgs args)
    public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:netapp:BackupPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BackupPolicyArgs
    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 BackupPolicyArgs
    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 BackupPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var backupPolicyResource = new Gcp.Netapp.BackupPolicy("backupPolicyResource", new()
    {
        DailyBackupLimit = 0,
        Location = "string",
        MonthlyBackupLimit = 0,
        WeeklyBackupLimit = 0,
        Description = "string",
        Enabled = false,
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Project = "string",
    });
    
    example, err := netapp.NewBackupPolicy(ctx, "backupPolicyResource", &netapp.BackupPolicyArgs{
    	DailyBackupLimit:   pulumi.Int(0),
    	Location:           pulumi.String("string"),
    	MonthlyBackupLimit: pulumi.Int(0),
    	WeeklyBackupLimit:  pulumi.Int(0),
    	Description:        pulumi.String("string"),
    	Enabled:            pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    })
    
    var backupPolicyResource = new BackupPolicy("backupPolicyResource", BackupPolicyArgs.builder()
        .dailyBackupLimit(0)
        .location("string")
        .monthlyBackupLimit(0)
        .weeklyBackupLimit(0)
        .description("string")
        .enabled(false)
        .labels(Map.of("string", "string"))
        .name("string")
        .project("string")
        .build());
    
    backup_policy_resource = gcp.netapp.BackupPolicy("backupPolicyResource",
        daily_backup_limit=0,
        location="string",
        monthly_backup_limit=0,
        weekly_backup_limit=0,
        description="string",
        enabled=False,
        labels={
            "string": "string",
        },
        name="string",
        project="string")
    
    const backupPolicyResource = new gcp.netapp.BackupPolicy("backupPolicyResource", {
        dailyBackupLimit: 0,
        location: "string",
        monthlyBackupLimit: 0,
        weeklyBackupLimit: 0,
        description: "string",
        enabled: false,
        labels: {
            string: "string",
        },
        name: "string",
        project: "string",
    });
    
    type: gcp:netapp:BackupPolicy
    properties:
        dailyBackupLimit: 0
        description: string
        enabled: false
        labels:
            string: string
        location: string
        monthlyBackupLimit: 0
        name: string
        project: string
        weeklyBackupLimit: 0
    

    BackupPolicy Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BackupPolicy resource accepts the following input properties:

    DailyBackupLimit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    Location string
    Name of the region for the policy to apply to.
    MonthlyBackupLimit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    WeeklyBackupLimit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    Description string
    An optional description of this resource.
    Enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    Labels Dictionary<string, string>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Name string
    The name of the backup policy. Needs to be unique per location.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DailyBackupLimit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    Location string
    Name of the region for the policy to apply to.
    MonthlyBackupLimit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    WeeklyBackupLimit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    Description string
    An optional description of this resource.
    Enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    Labels map[string]string

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Name string
    The name of the backup policy. Needs to be unique per location.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dailyBackupLimit Integer
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    location String
    Name of the region for the policy to apply to.
    monthlyBackupLimit Integer
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    weeklyBackupLimit Integer
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    description String
    An optional description of this resource.
    enabled Boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Map<String,String>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name String
    The name of the backup policy. Needs to be unique per location.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dailyBackupLimit number
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    location string
    Name of the region for the policy to apply to.
    monthlyBackupLimit number
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    weeklyBackupLimit number
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    description string
    An optional description of this resource.
    enabled boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels {[key: string]: string}

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name string
    The name of the backup policy. Needs to be unique per location.


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    daily_backup_limit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    location str
    Name of the region for the policy to apply to.
    monthly_backup_limit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    weekly_backup_limit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    description str
    An optional description of this resource.
    enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Mapping[str, str]

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name str
    The name of the backup policy. Needs to be unique per location.


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dailyBackupLimit Number
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    location String
    Name of the region for the policy to apply to.
    monthlyBackupLimit Number
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    weeklyBackupLimit Number
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    description String
    An optional description of this resource.
    enabled Boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Map<String>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    name String
    The name of the backup policy. Needs to be unique per location.


    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 BackupPolicy resource produces the following output properties:

    AssignedVolumeCount int
    The total number of volumes assigned by this backup policy.
    CreateTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    The state of the backup policy.
    AssignedVolumeCount int
    The total number of volumes assigned by this backup policy.
    CreateTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    The state of the backup policy.
    assignedVolumeCount Integer
    The total number of volumes assigned by this backup policy.
    createTime String
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    The state of the backup policy.
    assignedVolumeCount number
    The total number of volumes assigned by this backup policy.
    createTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    The state of the backup policy.
    assigned_volume_count int
    The total number of volumes assigned by this backup policy.
    create_time str
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    The state of the backup policy.
    assignedVolumeCount Number
    The total number of volumes assigned by this backup policy.
    createTime String
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    The state of the backup policy.

    Look up Existing BackupPolicy Resource

    Get an existing BackupPolicy 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?: BackupPolicyState, opts?: CustomResourceOptions): BackupPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assigned_volume_count: Optional[int] = None,
            create_time: Optional[str] = None,
            daily_backup_limit: Optional[int] = None,
            description: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            enabled: Optional[bool] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            monthly_backup_limit: Optional[int] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            state: Optional[str] = None,
            weekly_backup_limit: Optional[int] = None) -> BackupPolicy
    func GetBackupPolicy(ctx *Context, name string, id IDInput, state *BackupPolicyState, opts ...ResourceOption) (*BackupPolicy, error)
    public static BackupPolicy Get(string name, Input<string> id, BackupPolicyState? state, CustomResourceOptions? opts = null)
    public static BackupPolicy get(String name, Output<String> id, BackupPolicyState 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:
    AssignedVolumeCount int
    The total number of volumes assigned by this backup policy.
    CreateTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    DailyBackupLimit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    Description string
    An optional description of this resource.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    Labels Dictionary<string, string>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Location string
    Name of the region for the policy to apply to.
    MonthlyBackupLimit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    Name string
    The name of the backup policy. Needs to be unique per location.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    The state of the backup policy.
    WeeklyBackupLimit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    AssignedVolumeCount int
    The total number of volumes assigned by this backup policy.
    CreateTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    DailyBackupLimit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    Description string
    An optional description of this resource.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    Labels map[string]string

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    Location string
    Name of the region for the policy to apply to.
    MonthlyBackupLimit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    Name string
    The name of the backup policy. Needs to be unique per location.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    The state of the backup policy.
    WeeklyBackupLimit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    assignedVolumeCount Integer
    The total number of volumes assigned by this backup policy.
    createTime String
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    dailyBackupLimit Integer
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    description String
    An optional description of this resource.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    enabled Boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Map<String,String>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    location String
    Name of the region for the policy to apply to.
    monthlyBackupLimit Integer
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    name String
    The name of the backup policy. Needs to be unique per location.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    The state of the backup policy.
    weeklyBackupLimit Integer
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    assignedVolumeCount number
    The total number of volumes assigned by this backup policy.
    createTime string
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    dailyBackupLimit number
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    description string
    An optional description of this resource.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    enabled boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels {[key: string]: string}

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    location string
    Name of the region for the policy to apply to.
    monthlyBackupLimit number
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    name string
    The name of the backup policy. Needs to be unique per location.


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    The state of the backup policy.
    weeklyBackupLimit number
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    assigned_volume_count int
    The total number of volumes assigned by this backup policy.
    create_time str
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    daily_backup_limit int
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    description str
    An optional description of this resource.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    enabled bool
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Mapping[str, str]

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    location str
    Name of the region for the policy to apply to.
    monthly_backup_limit int
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    name str
    The name of the backup policy. Needs to be unique per location.


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    The state of the backup policy.
    weekly_backup_limit int
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    assignedVolumeCount Number
    The total number of volumes assigned by this backup policy.
    createTime String
    Create time of the backup policy. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
    dailyBackupLimit Number
    Number of daily backups to keep. Note that the minimum daily backup limit is 2.
    description String
    An optional description of this resource.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    enabled Boolean
    If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level.
    labels Map<String>

    Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    location String
    Name of the region for the policy to apply to.
    monthlyBackupLimit Number
    Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
    name String
    The name of the backup policy. Needs to be unique per location.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    The state of the backup policy.
    weeklyBackupLimit Number
    Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

    Import

    BackupPolicy can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/backupPolicies/{{name}}

    • {{project}}/{{location}}/{{name}}

    • {{location}}/{{name}}

    When using the pulumi import command, BackupPolicy can be imported using one of the formats above. For example:

    $ pulumi import gcp:netapp/backupPolicy:BackupPolicy default projects/{{project}}/locations/{{location}}/backupPolicies/{{name}}
    
    $ pulumi import gcp:netapp/backupPolicy:BackupPolicy default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:netapp/backupPolicy:BackupPolicy default {{location}}/{{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v8.9.3 published on Monday, Nov 18, 2024 by Pulumi