ibm.getIsBackupPolicy
Explore with Pulumi AI
Provides a read-only data source for BackupPolicy. For more information, about backup policy in your IBM Cloud VPC, see Backup policy.
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.getIsBackupPolicy({
    identifier: ibm_is_backup_policy.example.id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_backup_policy(identifier=ibm_is_backup_policy["example"]["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.LookupIsBackupPolicy(ctx, &ibm.LookupIsBackupPolicyArgs{
			Identifier: pulumi.StringRef(ibm_is_backup_policy.Example.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.GetIsBackupPolicy.Invoke(new()
    {
        Identifier = ibm_is_backup_policy.Example.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.GetIsBackupPolicyArgs;
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.getIsBackupPolicy(GetIsBackupPolicyArgs.builder()
            .identifier(ibm_is_backup_policy.example().id())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: ibm:getIsBackupPolicy
      arguments:
        identifier: ${ibm_is_backup_policy.example.id}
Using getIsBackupPolicy
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 getIsBackupPolicy(args: GetIsBackupPolicyArgs, opts?: InvokeOptions): Promise<GetIsBackupPolicyResult>
function getIsBackupPolicyOutput(args: GetIsBackupPolicyOutputArgs, opts?: InvokeOptions): Output<GetIsBackupPolicyResult>def get_is_backup_policy(id: Optional[str] = None,
                         identifier: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetIsBackupPolicyResult
def get_is_backup_policy_output(id: Optional[pulumi.Input[str]] = None,
                         identifier: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetIsBackupPolicyResult]func LookupIsBackupPolicy(ctx *Context, args *LookupIsBackupPolicyArgs, opts ...InvokeOption) (*LookupIsBackupPolicyResult, error)
func LookupIsBackupPolicyOutput(ctx *Context, args *LookupIsBackupPolicyOutputArgs, opts ...InvokeOption) LookupIsBackupPolicyResultOutput> Note: This function is named LookupIsBackupPolicy in the Go SDK.
public static class GetIsBackupPolicy 
{
    public static Task<GetIsBackupPolicyResult> InvokeAsync(GetIsBackupPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetIsBackupPolicyResult> Invoke(GetIsBackupPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsBackupPolicyResult> getIsBackupPolicy(GetIsBackupPolicyArgs args, InvokeOptions options)
public static Output<GetIsBackupPolicyResult> getIsBackupPolicy(GetIsBackupPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getIsBackupPolicy:getIsBackupPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
 - (String) The unique identifier for this enterprise or account.
 - Identifier string
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - Name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
- Id string
 - (String) The unique identifier for this enterprise or account.
 - Identifier string
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - Name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
- id String
 - (String) The unique identifier for this enterprise or account.
 - identifier String
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - name String
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
- id string
 - (String) The unique identifier for this enterprise or account.
 - identifier string
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
- id str
 - (String) The unique identifier for this enterprise or account.
 - identifier str
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - name str
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
- id String
 - (String) The unique identifier for this enterprise or account.
 - identifier String
 - The backup policy identifier, 
identifierandnameare mutually exclusive. - name String
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. 
getIsBackupPolicy Result
The following output properties are available:
- Created
At string - (String) The date and time that the backup policy was created.
 - Crn string
 - (String) The CRN for this enterprise.
 - Health
Reasons List<GetIs Backup Policy Health Reason>  - (List) The reasons for the current health_state (if any).
 - Health
State string - (String) The health of this resource.
 - Href string
 - (String) The URL for this resource group.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Included
Contents List<string> - Last
Job stringCompleted At  - (String) he date and time that the most recent job for this backup policy completed.
 - Lifecycle
State string - (String) The lifecycle state of the backup policy.
 - Match
Resource stringType  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - Match
Resource List<string>Types  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- List<string>
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - Name string
 - (String) The user-defined name for this resource group.
 - Plans
List<Get
Is Backup Policy Plan>  - (List) The plans for the backup policy.
 - Resource
Groups List<GetIs Backup Policy Resource Group>  - (List) The resource group object, for this backup policy.
 - Resource
Type string - (String) The resource type.
 - Scopes
List<Get
Is Backup Policy Scope>  - (List) If present, the scope for this backup policy.
 - Identifier string
 
- Created
At string - (String) The date and time that the backup policy was created.
 - Crn string
 - (String) The CRN for this enterprise.
 - Health
Reasons []GetIs Backup Policy Health Reason  - (List) The reasons for the current health_state (if any).
 - Health
State string - (String) The health of this resource.
 - Href string
 - (String) The URL for this resource group.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Included
Contents []string - Last
Job stringCompleted At  - (String) he date and time that the most recent job for this backup policy completed.
 - Lifecycle
State string - (String) The lifecycle state of the backup policy.
 - Match
Resource stringType  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - Match
Resource []stringTypes  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- []string
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - Name string
 - (String) The user-defined name for this resource group.
 - Plans
[]Get
Is Backup Policy Plan Type  - (List) The plans for the backup policy.
 - Resource
Groups []GetIs Backup Policy Resource Group  - (List) The resource group object, for this backup policy.
 - Resource
Type string - (String) The resource type.
 - Scopes
[]Get
Is Backup Policy Scope  - (List) If present, the scope for this backup policy.
 - Identifier string
 
- created
At String - (String) The date and time that the backup policy was created.
 - crn String
 - (String) The CRN for this enterprise.
 - health
Reasons List<GetIs Backup Policy Health Reason>  - (List) The reasons for the current health_state (if any).
 - health
State String - (String) The health of this resource.
 - href String
 - (String) The URL for this resource group.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - included
Contents List<String> - last
Job StringCompleted At  - (String) he date and time that the most recent job for this backup policy completed.
 - lifecycle
State String - (String) The lifecycle state of the backup policy.
 - match
Resource StringType  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - match
Resource List<String>Types  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- List<String>
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - name String
 - (String) The user-defined name for this resource group.
 - plans
List<Get
Is Backup Policy Plan>  - (List) The plans for the backup policy.
 - resource
Groups List<GetIs Backup Policy Resource Group>  - (List) The resource group object, for this backup policy.
 - resource
Type String - (String) The resource type.
 - scopes
List<Get
Is Backup Policy Scope>  - (List) If present, the scope for this backup policy.
 - identifier String
 
- created
At string - (String) The date and time that the backup policy was created.
 - crn string
 - (String) The CRN for this enterprise.
 - health
Reasons GetIs Backup Policy Health Reason[]  - (List) The reasons for the current health_state (if any).
 - health
State string - (String) The health of this resource.
 - href string
 - (String) The URL for this resource group.
 - id string
 - (String) The unique identifier for this enterprise or account.
 - included
Contents string[] - last
Job stringCompleted At  - (String) he date and time that the most recent job for this backup policy completed.
 - lifecycle
State string - (String) The lifecycle state of the backup policy.
 - match
Resource stringType  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - match
Resource string[]Types  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- string[]
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - name string
 - (String) The user-defined name for this resource group.
 - plans
Get
Is Backup Policy Plan[]  - (List) The plans for the backup policy.
 - resource
Groups GetIs Backup Policy Resource Group[]  - (List) The resource group object, for this backup policy.
 - resource
Type string - (String) The resource type.
 - scopes
Get
Is Backup Policy Scope[]  - (List) If present, the scope for this backup policy.
 - identifier string
 
- created_
at str - (String) The date and time that the backup policy was created.
 - crn str
 - (String) The CRN for this enterprise.
 - health_
reasons Sequence[GetIs Backup Policy Health Reason]  - (List) The reasons for the current health_state (if any).
 - health_
state str - (String) The health of this resource.
 - href str
 - (String) The URL for this resource group.
 - id str
 - (String) The unique identifier for this enterprise or account.
 - included_
contents Sequence[str] - last_
job_ strcompleted_ at  - (String) he date and time that the most recent job for this backup policy completed.
 - lifecycle_
state str - (String) The lifecycle state of the backup policy.
 - match_
resource_ strtype  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - match_
resource_ Sequence[str]types  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- Sequence[str]
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - name str
 - (String) The user-defined name for this resource group.
 - plans
Sequence[Get
Is Backup Policy Plan]  - (List) The plans for the backup policy.
 - resource_
groups Sequence[GetIs Backup Policy Resource Group]  - (List) The resource group object, for this backup policy.
 - resource_
type str - (String) The resource type.
 - scopes
Sequence[Get
Is Backup Policy Scope]  - (List) If present, the scope for this backup policy.
 - identifier str
 
- created
At String - (String) The date and time that the backup policy was created.
 - crn String
 - (String) The CRN for this enterprise.
 - health
Reasons List<Property Map> - (List) The reasons for the current health_state (if any).
 - health
State String - (String) The health of this resource.
 - href String
 - (String) The URL for this resource group.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - included
Contents List<String> - last
Job StringCompleted At  - (String) he date and time that the most recent job for this backup policy completed.
 - lifecycle
State String - (String) The lifecycle state of the backup policy.
 - match
Resource StringType  - (Optional, String) The resource type this backup policy will apply to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
 - match
Resource List<String>Types  (List) A resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy.
Note
match_resource_typesis deprecated. Please usematch_resource_typeinstead.- List<String>
 - (List) The user tags this backup policy applies to. Resources that have both a matching user tag and a matching type will be subject to the backup policy.
 - name String
 - (String) The user-defined name for this resource group.
 - plans List<Property Map>
 - (List) The plans for the backup policy.
 - resource
Groups List<Property Map> - (List) The resource group object, for this backup policy.
 - resource
Type String - (String) The resource type.
 - scopes List<Property Map>
 - (List) If present, the scope for this backup policy.
 - identifier String
 
Supporting Types
GetIsBackupPolicyHealthReason     
GetIsBackupPolicyPlan    
- Deleteds
List<Get
Is Backup Policy Plan Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - Href string
 - (String) The URL for this resource group.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - Resource
Type string - (String) The resource type.
 
- Deleteds
[]Get
Is Backup Policy Plan Deleted  - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - Href string
 - (String) The URL for this resource group.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - Resource
Type string - (String) The resource type.
 
- deleteds
List<Get
Is Backup Policy Plan Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - href String
 - (String) The URL for this resource group.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - name String
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - resource
Type String - (String) The resource type.
 
- deleteds
Get
Is Backup Policy Plan Deleted[]  - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - href string
 - (String) The URL for this resource group.
 - id string
 - (String) The unique identifier for this enterprise or account.
 - name string
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - resource
Type string - (String) The resource type.
 
- deleteds
Sequence[Get
Is Backup Policy Plan Deleted]  - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - href str
 - (String) The URL for this resource group.
 - id str
 - (String) The unique identifier for this enterprise or account.
 - name str
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - resource_
type str - (String) The resource type.
 
- deleteds List<Property Map>
 - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information.
 - href String
 - (String) The URL for this resource group.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - name String
 - The unique user-defined name for backup policy, 
identifierandnameare mutually exclusive. - resource
Type String - (String) The resource type.
 
GetIsBackupPolicyPlanDeleted     
- More
Info string - (String) Link to documentation about deleted resources.
 
- More
Info string - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
- more
Info string - (String) Link to documentation about deleted resources.
 
- more_
info str - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
GetIsBackupPolicyResourceGroup     
GetIsBackupPolicyScope    
- Crn string
 - (String) The CRN for this enterprise.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Resource
Type string - (String) The resource type.
 
- Crn string
 - (String) The CRN for this enterprise.
 - Id string
 - (String) The unique identifier for this enterprise or account.
 - Resource
Type string - (String) The resource type.
 
- crn String
 - (String) The CRN for this enterprise.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - resource
Type String - (String) The resource type.
 
- crn string
 - (String) The CRN for this enterprise.
 - id string
 - (String) The unique identifier for this enterprise or account.
 - resource
Type string - (String) The resource type.
 
- crn str
 - (String) The CRN for this enterprise.
 - id str
 - (String) The unique identifier for this enterprise or account.
 - resource_
type str - (String) The resource type.
 
- crn String
 - (String) The CRN for this enterprise.
 - id String
 - (String) The unique identifier for this enterprise or account.
 - resource
Type String - (String) The resource type.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.