1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsBackupPolicyPlans
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsBackupPolicyPlans

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for BackupPolicyPlanCollection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsBackupPolicyPlans({
        backupPolicyId: ibm_is_backup_policy.example.id,
        name: "example-backup-policy-plan",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_backup_policy_plans(backup_policy_id=ibm_is_backup_policy["example"]["id"],
        name="example-backup-policy-plan")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIsBackupPolicyPlans(ctx, &ibm.GetIsBackupPolicyPlansArgs{
    			BackupPolicyId: ibm_is_backup_policy.Example.Id,
    			Name:           pulumi.StringRef("example-backup-policy-plan"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ibm.GetIsBackupPolicyPlans.Invoke(new()
        {
            BackupPolicyId = ibm_is_backup_policy.Example.Id,
            Name = "example-backup-policy-plan",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsBackupPolicyPlansArgs;
    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) {
            final var example = IbmFunctions.getIsBackupPolicyPlans(GetIsBackupPolicyPlansArgs.builder()
                .backupPolicyId(ibm_is_backup_policy.example().id())
                .name("example-backup-policy-plan")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsBackupPolicyPlans
          arguments:
            backupPolicyId: ${ibm_is_backup_policy.example.id}
            name: example-backup-policy-plan
    

    ->Note: Backup Policy Jobs are getting enhanced, will be available soon.

    Using getIsBackupPolicyPlans

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIsBackupPolicyPlans(args: GetIsBackupPolicyPlansArgs, opts?: InvokeOptions): Promise<GetIsBackupPolicyPlansResult>
    function getIsBackupPolicyPlansOutput(args: GetIsBackupPolicyPlansOutputArgs, opts?: InvokeOptions): Output<GetIsBackupPolicyPlansResult>
    def get_is_backup_policy_plans(backup_policy_id: Optional[str] = None,
                                   id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetIsBackupPolicyPlansResult
    def get_is_backup_policy_plans_output(backup_policy_id: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetIsBackupPolicyPlansResult]
    func GetIsBackupPolicyPlans(ctx *Context, args *GetIsBackupPolicyPlansArgs, opts ...InvokeOption) (*GetIsBackupPolicyPlansResult, error)
    func GetIsBackupPolicyPlansOutput(ctx *Context, args *GetIsBackupPolicyPlansOutputArgs, opts ...InvokeOption) GetIsBackupPolicyPlansResultOutput

    > Note: This function is named GetIsBackupPolicyPlans in the Go SDK.

    public static class GetIsBackupPolicyPlans 
    {
        public static Task<GetIsBackupPolicyPlansResult> InvokeAsync(GetIsBackupPolicyPlansArgs args, InvokeOptions? opts = null)
        public static Output<GetIsBackupPolicyPlansResult> Invoke(GetIsBackupPolicyPlansInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsBackupPolicyPlansResult> getIsBackupPolicyPlans(GetIsBackupPolicyPlansArgs args, InvokeOptions options)
    public static Output<GetIsBackupPolicyPlansResult> getIsBackupPolicyPlans(GetIsBackupPolicyPlansArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsBackupPolicyPlans:getIsBackupPolicyPlans
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BackupPolicyId string
    The backup policy identifier.
    Id string
    (String) The unique identifier for this backup policy plan.
    Name string
    The unique user-defined name for this backup policy plan.
    BackupPolicyId string
    The backup policy identifier.
    Id string
    (String) The unique identifier for this backup policy plan.
    Name string
    The unique user-defined name for this backup policy plan.
    backupPolicyId String
    The backup policy identifier.
    id String
    (String) The unique identifier for this backup policy plan.
    name String
    The unique user-defined name for this backup policy plan.
    backupPolicyId string
    The backup policy identifier.
    id string
    (String) The unique identifier for this backup policy plan.
    name string
    The unique user-defined name for this backup policy plan.
    backup_policy_id str
    The backup policy identifier.
    id str
    (String) The unique identifier for this backup policy plan.
    name str
    The unique user-defined name for this backup policy plan.
    backupPolicyId String
    The backup policy identifier.
    id String
    (String) The unique identifier for this backup policy plan.
    name String
    The unique user-defined name for this backup policy plan.

    getIsBackupPolicyPlans Result

    The following output properties are available:

    BackupPolicyId string
    Id string
    (String) The unique identifier for this backup policy plan.
    Plans List<GetIsBackupPolicyPlansPlan>
    (List) Collection of backup policy plans.
    Name string
    (String) The unique user-defined name for this backup policy plan.
    BackupPolicyId string
    Id string
    (String) The unique identifier for this backup policy plan.
    Plans []GetIsBackupPolicyPlansPlan
    (List) Collection of backup policy plans.
    Name string
    (String) The unique user-defined name for this backup policy plan.
    backupPolicyId String
    id String
    (String) The unique identifier for this backup policy plan.
    plans List<GetIsBackupPolicyPlansPlan>
    (List) Collection of backup policy plans.
    name String
    (String) The unique user-defined name for this backup policy plan.
    backupPolicyId string
    id string
    (String) The unique identifier for this backup policy plan.
    plans GetIsBackupPolicyPlansPlan[]
    (List) Collection of backup policy plans.
    name string
    (String) The unique user-defined name for this backup policy plan.
    backup_policy_id str
    id str
    (String) The unique identifier for this backup policy plan.
    plans Sequence[GetIsBackupPolicyPlansPlan]
    (List) Collection of backup policy plans.
    name str
    (String) The unique user-defined name for this backup policy plan.
    backupPolicyId String
    id String
    (String) The unique identifier for this backup policy plan.
    plans List<Property Map>
    (List) Collection of backup policy plans.
    name String
    (String) The unique user-defined name for this backup policy plan.

    Supporting Types

    GetIsBackupPolicyPlansPlan

    Active bool
    (Boolean) Indicates whether the plan is active.
    AttachUserTags List<string>
    (List) User tags to attach to each resource created by this plan.
    ClonePolicies List<GetIsBackupPolicyPlansPlanClonePolicy>
    (List)
    CopyUserTags bool
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    CreatedAt string
    (String) The date and time that the backup policy plan was created.
    CronSpec string
    (String) The cron specification for the backup schedule.
    DeletionTriggers List<GetIsBackupPolicyPlansPlanDeletionTrigger>
    (List) deletion_trigger block has the following structure:
    Href string
    (String) The URL for this backup policy plan.
    Id string
    (String) The unique identifier for this backup policy plan.
    LifecycleState string
    (String) The lifecycle state of this backup policy plan.
    Name string
    The unique user-defined name for this backup policy plan.
    RemoteRegionPolicies List<GetIsBackupPolicyPlansPlanRemoteRegionPolicy>
    (List) Policies for creating remote copies of this backup.
    ResourceType string
    (String) The type of resource referenced.
    Active bool
    (Boolean) Indicates whether the plan is active.
    AttachUserTags []string
    (List) User tags to attach to each resource created by this plan.
    ClonePolicies []GetIsBackupPolicyPlansPlanClonePolicy
    (List)
    CopyUserTags bool
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    CreatedAt string
    (String) The date and time that the backup policy plan was created.
    CronSpec string
    (String) The cron specification for the backup schedule.
    DeletionTriggers []GetIsBackupPolicyPlansPlanDeletionTrigger
    (List) deletion_trigger block has the following structure:
    Href string
    (String) The URL for this backup policy plan.
    Id string
    (String) The unique identifier for this backup policy plan.
    LifecycleState string
    (String) The lifecycle state of this backup policy plan.
    Name string
    The unique user-defined name for this backup policy plan.
    RemoteRegionPolicies []GetIsBackupPolicyPlansPlanRemoteRegionPolicy
    (List) Policies for creating remote copies of this backup.
    ResourceType string
    (String) The type of resource referenced.
    active Boolean
    (Boolean) Indicates whether the plan is active.
    attachUserTags List<String>
    (List) User tags to attach to each resource created by this plan.
    clonePolicies List<GetIsBackupPolicyPlansPlanClonePolicy>
    (List)
    copyUserTags Boolean
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    createdAt String
    (String) The date and time that the backup policy plan was created.
    cronSpec String
    (String) The cron specification for the backup schedule.
    deletionTriggers List<GetIsBackupPolicyPlansPlanDeletionTrigger>
    (List) deletion_trigger block has the following structure:
    href String
    (String) The URL for this backup policy plan.
    id String
    (String) The unique identifier for this backup policy plan.
    lifecycleState String
    (String) The lifecycle state of this backup policy plan.
    name String
    The unique user-defined name for this backup policy plan.
    remoteRegionPolicies List<GetIsBackupPolicyPlansPlanRemoteRegionPolicy>
    (List) Policies for creating remote copies of this backup.
    resourceType String
    (String) The type of resource referenced.
    active boolean
    (Boolean) Indicates whether the plan is active.
    attachUserTags string[]
    (List) User tags to attach to each resource created by this plan.
    clonePolicies GetIsBackupPolicyPlansPlanClonePolicy[]
    (List)
    copyUserTags boolean
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    createdAt string
    (String) The date and time that the backup policy plan was created.
    cronSpec string
    (String) The cron specification for the backup schedule.
    deletionTriggers GetIsBackupPolicyPlansPlanDeletionTrigger[]
    (List) deletion_trigger block has the following structure:
    href string
    (String) The URL for this backup policy plan.
    id string
    (String) The unique identifier for this backup policy plan.
    lifecycleState string
    (String) The lifecycle state of this backup policy plan.
    name string
    The unique user-defined name for this backup policy plan.
    remoteRegionPolicies GetIsBackupPolicyPlansPlanRemoteRegionPolicy[]
    (List) Policies for creating remote copies of this backup.
    resourceType string
    (String) The type of resource referenced.
    active bool
    (Boolean) Indicates whether the plan is active.
    attach_user_tags Sequence[str]
    (List) User tags to attach to each resource created by this plan.
    clone_policies Sequence[GetIsBackupPolicyPlansPlanClonePolicy]
    (List)
    copy_user_tags bool
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    created_at str
    (String) The date and time that the backup policy plan was created.
    cron_spec str
    (String) The cron specification for the backup schedule.
    deletion_triggers Sequence[GetIsBackupPolicyPlansPlanDeletionTrigger]
    (List) deletion_trigger block has the following structure:
    href str
    (String) The URL for this backup policy plan.
    id str
    (String) The unique identifier for this backup policy plan.
    lifecycle_state str
    (String) The lifecycle state of this backup policy plan.
    name str
    The unique user-defined name for this backup policy plan.
    remote_region_policies Sequence[GetIsBackupPolicyPlansPlanRemoteRegionPolicy]
    (List) Policies for creating remote copies of this backup.
    resource_type str
    (String) The type of resource referenced.
    active Boolean
    (Boolean) Indicates whether the plan is active.
    attachUserTags List<String>
    (List) User tags to attach to each resource created by this plan.
    clonePolicies List<Property Map>
    (List)
    copyUserTags Boolean
    (Boolean) Indicates whether to copy the source's user tags to the created resource.
    createdAt String
    (String) The date and time that the backup policy plan was created.
    cronSpec String
    (String) The cron specification for the backup schedule.
    deletionTriggers List<Property Map>
    (List) deletion_trigger block has the following structure:
    href String
    (String) The URL for this backup policy plan.
    id String
    (String) The unique identifier for this backup policy plan.
    lifecycleState String
    (String) The lifecycle state of this backup policy plan.
    name String
    The unique user-defined name for this backup policy plan.
    remoteRegionPolicies List<Property Map>
    (List) Policies for creating remote copies of this backup.
    resourceType String
    (String) The type of resource referenced.

    GetIsBackupPolicyPlansPlanClonePolicy

    MaxSnapshots double
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    Zones List<string>
    (List) The zone list this backup policy plan will create snapshot clones in.
    MaxSnapshots float64
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    Zones []string
    (List) The zone list this backup policy plan will create snapshot clones in.
    maxSnapshots Double
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    zones List<String>
    (List) The zone list this backup policy plan will create snapshot clones in.
    maxSnapshots number
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    zones string[]
    (List) The zone list this backup policy plan will create snapshot clones in.
    max_snapshots float
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    zones Sequence[str]
    (List) The zone list this backup policy plan will create snapshot clones in.
    maxSnapshots Number
    (Integer) The maximum number of recent snapshots (per source) that will keep clones.
    zones List<String>
    (List) The zone list this backup policy plan will create snapshot clones in.

    GetIsBackupPolicyPlansPlanDeletionTrigger

    DeleteAfter double
    (Integer) The maximum number of days to keep each backup after creation.
    DeleteOverCount double
    (Integer) The maximum number of recent remote copies to keep in this region.
    DeleteAfter float64
    (Integer) The maximum number of days to keep each backup after creation.
    DeleteOverCount float64
    (Integer) The maximum number of recent remote copies to keep in this region.
    deleteAfter Double
    (Integer) The maximum number of days to keep each backup after creation.
    deleteOverCount Double
    (Integer) The maximum number of recent remote copies to keep in this region.
    deleteAfter number
    (Integer) The maximum number of days to keep each backup after creation.
    deleteOverCount number
    (Integer) The maximum number of recent remote copies to keep in this region.
    delete_after float
    (Integer) The maximum number of days to keep each backup after creation.
    delete_over_count float
    (Integer) The maximum number of recent remote copies to keep in this region.
    deleteAfter Number
    (Integer) The maximum number of days to keep each backup after creation.
    deleteOverCount Number
    (Integer) The maximum number of recent remote copies to keep in this region.

    GetIsBackupPolicyPlansPlanRemoteRegionPolicy

    DeleteOverCount double
    (Integer) The maximum number of recent remote copies to keep in this region.
    EncryptionKey string
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    Region string
    (String) The globally unique name for this region.
    DeleteOverCount float64
    (Integer) The maximum number of recent remote copies to keep in this region.
    EncryptionKey string
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    Region string
    (String) The globally unique name for this region.
    deleteOverCount Double
    (Integer) The maximum number of recent remote copies to keep in this region.
    encryptionKey String
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    region String
    (String) The globally unique name for this region.
    deleteOverCount number
    (Integer) The maximum number of recent remote copies to keep in this region.
    encryptionKey string
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    region string
    (String) The globally unique name for this region.
    delete_over_count float
    (Integer) The maximum number of recent remote copies to keep in this region.
    encryption_key str
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    region str
    (String) The globally unique name for this region.
    deleteOverCount Number
    (Integer) The maximum number of recent remote copies to keep in this region.
    encryptionKey String
    (String) The root key to use to rewrap the data encryption key for the snapshot. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource.
    region String
    (String) The globally unique name for this region.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud