ibm.getIsBackupPolicyPlan
Explore with Pulumi AI
Provides a read-only data source for BackupPolicyPlan. 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.getIsBackupPolicyPlan({
backupPolicyId: ibm_is_backup_policy.example.id,
identifier: ibm_is_backup_policy_plan.example.backup_policy_plan_id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_backup_policy_plan(backup_policy_id=ibm_is_backup_policy["example"]["id"],
identifier=ibm_is_backup_policy_plan["example"]["backup_policy_plan_id"])
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.LookupIsBackupPolicyPlan(ctx, &ibm.LookupIsBackupPolicyPlanArgs{
BackupPolicyId: ibm_is_backup_policy.Example.Id,
Identifier: pulumi.StringRef(ibm_is_backup_policy_plan.Example.Backup_policy_plan_id),
}, 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.GetIsBackupPolicyPlan.Invoke(new()
{
BackupPolicyId = ibm_is_backup_policy.Example.Id,
Identifier = ibm_is_backup_policy_plan.Example.Backup_policy_plan_id,
});
});
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.GetIsBackupPolicyPlanArgs;
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.getIsBackupPolicyPlan(GetIsBackupPolicyPlanArgs.builder()
.backupPolicyId(ibm_is_backup_policy.example().id())
.identifier(ibm_is_backup_policy_plan.example().backup_policy_plan_id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsBackupPolicyPlan
arguments:
backupPolicyId: ${ibm_is_backup_policy.example.id}
identifier: ${ibm_is_backup_policy_plan.example.backup_policy_plan_id}
->Note: Backup Policy Jobs are getting enhanced, will be available soon.
Using getIsBackupPolicyPlan
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 getIsBackupPolicyPlan(args: GetIsBackupPolicyPlanArgs, opts?: InvokeOptions): Promise<GetIsBackupPolicyPlanResult>
function getIsBackupPolicyPlanOutput(args: GetIsBackupPolicyPlanOutputArgs, opts?: InvokeOptions): Output<GetIsBackupPolicyPlanResult>
def get_is_backup_policy_plan(backup_policy_id: Optional[str] = None,
id: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBackupPolicyPlanResult
def get_is_backup_policy_plan_output(backup_policy_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBackupPolicyPlanResult]
func LookupIsBackupPolicyPlan(ctx *Context, args *LookupIsBackupPolicyPlanArgs, opts ...InvokeOption) (*LookupIsBackupPolicyPlanResult, error)
func LookupIsBackupPolicyPlanOutput(ctx *Context, args *LookupIsBackupPolicyPlanOutputArgs, opts ...InvokeOption) LookupIsBackupPolicyPlanResultOutput
> Note: This function is named LookupIsBackupPolicyPlan
in the Go SDK.
public static class GetIsBackupPolicyPlan
{
public static Task<GetIsBackupPolicyPlanResult> InvokeAsync(GetIsBackupPolicyPlanArgs args, InvokeOptions? opts = null)
public static Output<GetIsBackupPolicyPlanResult> Invoke(GetIsBackupPolicyPlanInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBackupPolicyPlanResult> getIsBackupPolicyPlan(GetIsBackupPolicyPlanArgs args, InvokeOptions options)
public static Output<GetIsBackupPolicyPlanResult> getIsBackupPolicyPlan(GetIsBackupPolicyPlanArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBackupPolicyPlan:getIsBackupPolicyPlan
arguments:
# arguments dictionary
The following arguments are supported:
- Backup
Policy stringId - The backup policy identifier.
- Id string
- The unique identifier of the BackupPolicyPlan.
- Identifier string
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - Name string
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
- Backup
Policy stringId - The backup policy identifier.
- Id string
- The unique identifier of the BackupPolicyPlan.
- Identifier string
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - Name string
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
- backup
Policy StringId - The backup policy identifier.
- id String
- The unique identifier of the BackupPolicyPlan.
- identifier String
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - name String
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
- backup
Policy stringId - The backup policy identifier.
- id string
- The unique identifier of the BackupPolicyPlan.
- identifier string
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - name string
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
- backup_
policy_ strid - The backup policy identifier.
- id str
- The unique identifier of the BackupPolicyPlan.
- identifier str
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - name str
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
- backup
Policy StringId - The backup policy identifier.
- id String
- The unique identifier of the BackupPolicyPlan.
- identifier String
- The backup policy plan identifier,
identifier
andname
are mutually exclusive. - name String
- The unique user-defined name for backup policy,
identifier
andname
are mutually exclusive.
getIsBackupPolicyPlan Result
The following output properties are available:
- Active bool
- (Boolean) Indicates whether the plan is active.
- List<string>
- (List) User tags to attach to each resource created by this plan.
- Backup
Policy stringId - Clone
Policies List<GetIs Backup Policy Plan Clone Policy> - (List)
- bool
- (Boolean) Indicates whether to copy the source's user tags to the created resource.
- Created
At string - (String) The date and time that the backup policy plan was created.
- Cron
Spec string - (String) The cron specification for the backup schedule.
- Deletion
Triggers List<GetIs Backup Policy Plan Deletion Trigger> - (List)
deletion_trigger
block has the following structure: - Href string
- (String) The URL for this backup policy plan.
- Id string
- The unique identifier of the BackupPolicyPlan.
- Lifecycle
State string - (String) The lifecycle state of this backup policy plan.
- Name string
- Remote
Region List<GetPolicies Is Backup Policy Plan Remote Region Policy> - (Optional, List) Backup policy plan cross region rule.
- Resource
Type string - (String) The type of resource referenced.
- Identifier string
- Active bool
- (Boolean) Indicates whether the plan is active.
- []string
- (List) User tags to attach to each resource created by this plan.
- Backup
Policy stringId - Clone
Policies []GetIs Backup Policy Plan Clone Policy - (List)
- bool
- (Boolean) Indicates whether to copy the source's user tags to the created resource.
- Created
At string - (String) The date and time that the backup policy plan was created.
- Cron
Spec string - (String) The cron specification for the backup schedule.
- Deletion
Triggers []GetIs Backup Policy Plan Deletion Trigger - (List)
deletion_trigger
block has the following structure: - Href string
- (String) The URL for this backup policy plan.
- Id string
- The unique identifier of the BackupPolicyPlan.
- Lifecycle
State string - (String) The lifecycle state of this backup policy plan.
- Name string
- Remote
Region []GetPolicies Is Backup Policy Plan Remote Region Policy - (Optional, List) Backup policy plan cross region rule.
- Resource
Type string - (String) The type of resource referenced.
- Identifier string
- active Boolean
- (Boolean) Indicates whether the plan is active.
- List<String>
- (List) User tags to attach to each resource created by this plan.
- backup
Policy StringId - clone
Policies List<GetIs Backup Policy Plan Clone Policy> - (List)
- Boolean
- (Boolean) Indicates whether to copy the source's user tags to the created resource.
- created
At String - (String) The date and time that the backup policy plan was created.
- cron
Spec String - (String) The cron specification for the backup schedule.
- deletion
Triggers List<GetIs Backup Policy Plan Deletion Trigger> - (List)
deletion_trigger
block has the following structure: - href String
- (String) The URL for this backup policy plan.
- id String
- The unique identifier of the BackupPolicyPlan.
- lifecycle
State String - (String) The lifecycle state of this backup policy plan.
- name String
- remote
Region List<GetPolicies Is Backup Policy Plan Remote Region Policy> - (Optional, List) Backup policy plan cross region rule.
- resource
Type String - (String) The type of resource referenced.
- identifier String
- active boolean
- (Boolean) Indicates whether the plan is active.
- string[]
- (List) User tags to attach to each resource created by this plan.
- backup
Policy stringId - clone
Policies GetIs Backup Policy Plan Clone Policy[] - (List)
- boolean
- (Boolean) Indicates whether to copy the source's user tags to the created resource.
- created
At string - (String) The date and time that the backup policy plan was created.
- cron
Spec string - (String) The cron specification for the backup schedule.
- deletion
Triggers GetIs Backup Policy Plan Deletion Trigger[] - (List)
deletion_trigger
block has the following structure: - href string
- (String) The URL for this backup policy plan.
- id string
- The unique identifier of the BackupPolicyPlan.
- lifecycle
State string - (String) The lifecycle state of this backup policy plan.
- name string
- remote
Region GetPolicies Is Backup Policy Plan Remote Region Policy[] - (Optional, List) Backup policy plan cross region rule.
- resource
Type string - (String) The type of resource referenced.
- identifier string
- active bool
- (Boolean) Indicates whether the plan is active.
- Sequence[str]
- (List) User tags to attach to each resource created by this plan.
- backup_
policy_ strid - clone_
policies Sequence[GetIs Backup Policy Plan Clone Policy] - (List)
- 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[GetIs Backup Policy Plan Deletion Trigger] - (List)
deletion_trigger
block has the following structure: - href str
- (String) The URL for this backup policy plan.
- id str
- The unique identifier of the BackupPolicyPlan.
- lifecycle_
state str - (String) The lifecycle state of this backup policy plan.
- name str
- remote_
region_ Sequence[Getpolicies Is Backup Policy Plan Remote Region Policy] - (Optional, List) Backup policy plan cross region rule.
- resource_
type str - (String) The type of resource referenced.
- identifier str
- active Boolean
- (Boolean) Indicates whether the plan is active.
- List<String>
- (List) User tags to attach to each resource created by this plan.
- backup
Policy StringId - clone
Policies List<Property Map> - (List)
- Boolean
- (Boolean) Indicates whether to copy the source's user tags to the created resource.
- created
At String - (String) The date and time that the backup policy plan was created.
- cron
Spec String - (String) The cron specification for the backup schedule.
- deletion
Triggers List<Property Map> - (List)
deletion_trigger
block has the following structure: - href String
- (String) The URL for this backup policy plan.
- id String
- The unique identifier of the BackupPolicyPlan.
- lifecycle
State String - (String) The lifecycle state of this backup policy plan.
- name String
- remote
Region List<Property Map>Policies - (Optional, List) Backup policy plan cross region rule.
- resource
Type String - (String) The type of resource referenced.
- identifier String
Supporting Types
GetIsBackupPolicyPlanClonePolicy
- Max
Snapshots 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.
- Max
Snapshots 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.
- max
Snapshots 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.
- max
Snapshots 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.
- max
Snapshots 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.
GetIsBackupPolicyPlanDeletionTrigger
- Delete
After double - (Integer) The maximum number of days to keep each backup after creation.
- Delete
Over doubleCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- Delete
After float64 - (Integer) The maximum number of days to keep each backup after creation.
- Delete
Over float64Count - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- delete
After Double - (Integer) The maximum number of days to keep each backup after creation.
- delete
Over DoubleCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- delete
After number - (Integer) The maximum number of days to keep each backup after creation.
- delete
Over numberCount - (Optional, 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_ floatcount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- delete
After Number - (Integer) The maximum number of days to keep each backup after creation.
- delete
Over NumberCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
GetIsBackupPolicyPlanRemoteRegionPolicy
- Delete
Over doubleCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- Encryption
Key string - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - Region string
- (Required, String) Identifies a region by a unique property. The globally unique name for this region.
- Delete
Over float64Count - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- Encryption
Key string - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - Region string
- (Required, String) Identifies a region by a unique property. The globally unique name for this region.
- delete
Over DoubleCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- encryption
Key String - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - region String
- (Required, String) Identifies a region by a unique property. The globally unique name for this region.
- delete
Over numberCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- encryption
Key string - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - region string
- (Required, String) Identifies a region by a unique property. The globally unique name for this region.
- delete_
over_ floatcount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- encryption_
key str - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - region str
- (Required, String) Identifies a region by a unique property. The globally unique name for this region.
- delete
Over NumberCount - (Optional, Integer) The maximum number of recent remote copies to keep in this region.
- encryption
Key String - (Optional, String) The root key to use to rewrap the data encryption key for the snapshot.If unspecified, the source's
encryption_key
will be used.The specified key may be in a different account, subject to IAM policies. The CRN of the Key Protect Root Key or Hyper Protect Crypto Services Root Key for this resource. - region String
- (Required, String) Identifies a region by a unique property. 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.