ibm.getIsBackupPolicies
Explore with Pulumi AI
Provides a read-only data source for BackupPolicyCollection. 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.getIsBackupPolicies({});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_backup_policies()
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.GetIsBackupPolicies(ctx, &ibm.GetIsBackupPoliciesArgs{}, 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.GetIsBackupPolicies.Invoke();
});
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.GetIsBackupPoliciesArgs;
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.getIsBackupPolicies();
}
}
variables:
example:
fn::invoke:
function: ibm:getIsBackupPolicies
arguments: {}
Using getIsBackupPolicies
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 getIsBackupPolicies(args: GetIsBackupPoliciesArgs, opts?: InvokeOptions): Promise<GetIsBackupPoliciesResult>
function getIsBackupPoliciesOutput(args: GetIsBackupPoliciesOutputArgs, opts?: InvokeOptions): Output<GetIsBackupPoliciesResult>
def get_is_backup_policies(id: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
tag: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsBackupPoliciesResult
def get_is_backup_policies_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsBackupPoliciesResult]
func GetIsBackupPolicies(ctx *Context, args *GetIsBackupPoliciesArgs, opts ...InvokeOption) (*GetIsBackupPoliciesResult, error)
func GetIsBackupPoliciesOutput(ctx *Context, args *GetIsBackupPoliciesOutputArgs, opts ...InvokeOption) GetIsBackupPoliciesResultOutput
> Note: This function is named GetIsBackupPolicies
in the Go SDK.
public static class GetIsBackupPolicies
{
public static Task<GetIsBackupPoliciesResult> InvokeAsync(GetIsBackupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetIsBackupPoliciesResult> Invoke(GetIsBackupPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsBackupPoliciesResult> getIsBackupPolicies(GetIsBackupPoliciesArgs args, InvokeOptions options)
public static Output<GetIsBackupPoliciesResult> getIsBackupPolicies(GetIsBackupPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsBackupPolicies:getIsBackupPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- (String) The unique identifier for this enterprise or account.
- Name string
- Filters the collection to resources with the exact specified name.
- Resource
Group string - Filters the collection to resources in the resource group with the specified identifier.
- Tag string
- Filters the collection to resources with the exact tag value.
- Id string
- (String) The unique identifier for this enterprise or account.
- Name string
- Filters the collection to resources with the exact specified name.
- Resource
Group string - Filters the collection to resources in the resource group with the specified identifier.
- Tag string
- Filters the collection to resources with the exact tag value.
- id String
- (String) The unique identifier for this enterprise or account.
- name String
- Filters the collection to resources with the exact specified name.
- resource
Group String - Filters the collection to resources in the resource group with the specified identifier.
- tag String
- Filters the collection to resources with the exact tag value.
- id string
- (String) The unique identifier for this enterprise or account.
- name string
- Filters the collection to resources with the exact specified name.
- resource
Group string - Filters the collection to resources in the resource group with the specified identifier.
- tag string
- Filters the collection to resources with the exact tag value.
- id str
- (String) The unique identifier for this enterprise or account.
- name str
- Filters the collection to resources with the exact specified name.
- resource_
group str - Filters the collection to resources in the resource group with the specified identifier.
- tag str
- Filters the collection to resources with the exact tag value.
- id String
- (String) The unique identifier for this enterprise or account.
- name String
- Filters the collection to resources with the exact specified name.
- resource
Group String - Filters the collection to resources in the resource group with the specified identifier.
- tag String
- Filters the collection to resources with the exact tag value.
getIsBackupPolicies Result
The following output properties are available:
- Backup
Policies List<GetIs Backup Policies Backup Policy> - (List) Collection of backup policies.
- Id string
- (String) The unique identifier for this enterprise or account.
- Name string
- (String) The user-defined name for this resource group.
- Resource
Group string - (List) The resource group object, for this backup policy.
- Tag string
- Backup
Policies []GetIs Backup Policies Backup Policy - (List) Collection of backup policies.
- Id string
- (String) The unique identifier for this enterprise or account.
- Name string
- (String) The user-defined name for this resource group.
- Resource
Group string - (List) The resource group object, for this backup policy.
- Tag string
- backup
Policies List<GetIs Backup Policies Backup Policy> - (List) Collection of backup policies.
- id String
- (String) The unique identifier for this enterprise or account.
- name String
- (String) The user-defined name for this resource group.
- resource
Group String - (List) The resource group object, for this backup policy.
- tag String
- backup
Policies GetIs Backup Policies Backup Policy[] - (List) Collection of backup policies.
- id string
- (String) The unique identifier for this enterprise or account.
- name string
- (String) The user-defined name for this resource group.
- resource
Group string - (List) The resource group object, for this backup policy.
- tag string
- backup_
policies Sequence[GetIs Backup Policies Backup Policy] - (List) Collection of backup policies.
- id str
- (String) The unique identifier for this enterprise or account.
- name str
- (String) The user-defined name for this resource group.
- resource_
group str - (List) The resource group object, for this backup policy.
- tag str
- backup
Policies List<Property Map> - (List) Collection of backup policies.
- id String
- (String) The unique identifier for this enterprise or account.
- name String
- (String) The user-defined name for this resource group.
- resource
Group String - (List) The resource group object, for this backup policy.
- tag String
Supporting Types
GetIsBackupPoliciesBackupPolicy
- 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 Policies 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> - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- 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
- Filters the collection to resources with the exact specified name.
- Plans
List<Get
Is Backup Policies Backup Policy Plan> - (List) The plans for the backup policy.
- Resource
Groups List<GetIs Backup Policies Backup Policy Resource Group> - Filters the collection to resources in the resource group with the specified identifier.
- Resource
Type string - (String) The resource type.
- Scopes
List<Get
Is Backup Policies Backup Policy Scope> - (List) If present, the scope for this backup policy.
- 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 Policies 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 - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- []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
- Filters the collection to resources with the exact specified name.
- Plans
[]Get
Is Backup Policies Backup Policy Plan - (List) The plans for the backup policy.
- Resource
Groups []GetIs Backup Policies Backup Policy Resource Group - Filters the collection to resources in the resource group with the specified identifier.
- Resource
Type string - (String) The resource type.
- Scopes
[]Get
Is Backup Policies Backup Policy Scope - (List) If present, the scope for this backup policy.
- 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 Policies 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> - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- 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
- Filters the collection to resources with the exact specified name.
- plans
List<Get
Is Backup Policies Backup Policy Plan> - (List) The plans for the backup policy.
- resource
Groups List<GetIs Backup Policies Backup Policy Resource Group> - Filters the collection to resources in the resource group with the specified identifier.
- resource
Type String - (String) The resource type.
- scopes
List<Get
Is Backup Policies Backup Policy Scope> - (List) If present, the scope for this backup policy.
- 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 Policies 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[] - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- 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
- Filters the collection to resources with the exact specified name.
- plans
Get
Is Backup Policies Backup Policy Plan[] - (List) The plans for the backup policy.
- resource
Groups GetIs Backup Policies Backup Policy Resource Group[] - Filters the collection to resources in the resource group with the specified identifier.
- resource
Type string - (String) The resource type.
- scopes
Get
Is Backup Policies Backup Policy Scope[] - (List) If present, the scope for this backup policy.
- 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 Policies 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] - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- 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
- Filters the collection to resources with the exact specified name.
- plans
Sequence[Get
Is Backup Policies Backup Policy Plan] - (List) The plans for the backup policy.
- resource_
groups Sequence[GetIs Backup Policies Backup Policy Resource Group] - Filters the collection to resources in the resource group with the specified identifier.
- resource_
type str - (String) The resource type.
- scopes
Sequence[Get
Is Backup Policies Backup Policy Scope] - (List) If present, the scope for this backup policy.
- 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> - (Optional, List) The included content for backups created using this policy.
- 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_types
is deprecated. Please usematch_resource_type
instead.- 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
- Filters the collection to resources with the exact specified name.
- plans List<Property Map>
- (List) The plans for the backup policy.
- resource
Groups List<Property Map> - Filters the collection to resources in the resource group with the specified identifier.
- resource
Type String - (String) The resource type.
- scopes List<Property Map>
- (List) If present, the scope for this backup policy.
GetIsBackupPoliciesBackupPolicyHealthReason
GetIsBackupPoliciesBackupPolicyPlan
- Deleteds
List<Get
Is Backup Policies 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
- Filters the collection to resources with the exact specified name.
- Resource
Type string - (String) The resource type.
- Deleteds
[]Get
Is Backup Policies 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
- Filters the collection to resources with the exact specified name.
- Resource
Type string - (String) The resource type.
- deleteds
List<Get
Is Backup Policies 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
- Filters the collection to resources with the exact specified name.
- resource
Type String - (String) The resource type.
- deleteds
Get
Is Backup Policies 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
- Filters the collection to resources with the exact specified name.
- resource
Type string - (String) The resource type.
- deleteds
Sequence[Get
Is Backup Policies 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
- Filters the collection to resources with the exact specified name.
- 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
- Filters the collection to resources with the exact specified name.
- resource
Type String - (String) The resource type.
GetIsBackupPoliciesBackupPolicyPlanDeleted
- 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.
GetIsBackupPoliciesBackupPolicyResourceGroup
GetIsBackupPoliciesBackupPolicyScope
- 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
ibm
Terraform Provider.