ibm.IsBackupPolicy
Explore with Pulumi AI
Provides a resource for BackupPolicy. This allows BackupPolicy to be created, updated and deleted. 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 = new ibm.IsBackupPolicy("example", {matchUserTags: ["tag1"]});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsBackupPolicy("example", match_user_tags=["tag1"])
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.NewIsBackupPolicy(ctx, "example", &ibm.IsBackupPolicyArgs{
MatchUserTags: pulumi.StringArray{
pulumi.String("tag1"),
},
})
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 = new Ibm.IsBackupPolicy("example", new()
{
MatchUserTags = new[]
{
"tag1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsBackupPolicy;
import com.pulumi.ibm.IsBackupPolicyArgs;
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 example = new IsBackupPolicy("example", IsBackupPolicyArgs.builder()
.matchUserTags("tag1")
.build());
}
}
resources:
example:
type: ibm:IsBackupPolicy
properties:
matchUserTags:
- tag1
Enterprise Baas)
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const ent_baas_example1 = new ibm.IsBackupPolicy("ent-baas-example1", {
matchUserTags: ["tag1"],
scope: {
crn: "crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63",
},
});
import pulumi
import pulumi_ibm as ibm
ent_baas_example1 = ibm.IsBackupPolicy("ent-baas-example1",
match_user_tags=["tag1"],
scope={
"crn": "crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63",
})
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.NewIsBackupPolicy(ctx, "ent-baas-example1", &ibm.IsBackupPolicyArgs{
MatchUserTags: pulumi.StringArray{
pulumi.String("tag1"),
},
Scope: &ibm.IsBackupPolicyScopeArgs{
Crn: pulumi.String("crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63"),
},
})
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 ent_baas_example1 = new Ibm.IsBackupPolicy("ent-baas-example1", new()
{
MatchUserTags = new[]
{
"tag1",
},
Scope = new Ibm.Inputs.IsBackupPolicyScopeArgs
{
Crn = "crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsBackupPolicy;
import com.pulumi.ibm.IsBackupPolicyArgs;
import com.pulumi.ibm.inputs.IsBackupPolicyScopeArgs;
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 ent_baas_example1 = new IsBackupPolicy("ent-baas-example1", IsBackupPolicyArgs.builder()
.matchUserTags("tag1")
.scope(IsBackupPolicyScopeArgs.builder()
.crn("crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63")
.build())
.build());
}
}
resources:
ent-baas-example1:
type: ibm:IsBackupPolicy
properties:
matchUserTags:
- tag1
scope:
crn: crn:v1:bluemix:public:is:us-south:a/123456::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63
Create IsBackupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsBackupPolicy(name: string, args: IsBackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def IsBackupPolicy(resource_name: str,
args: IsBackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsBackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
match_user_tags: Optional[Sequence[str]] = None,
included_contents: Optional[Sequence[str]] = None,
is_backup_policy_id: Optional[str] = None,
match_resource_type: Optional[str] = None,
match_resource_types: Optional[Sequence[str]] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
scope: Optional[IsBackupPolicyScopeArgs] = None)
func NewIsBackupPolicy(ctx *Context, name string, args IsBackupPolicyArgs, opts ...ResourceOption) (*IsBackupPolicy, error)
public IsBackupPolicy(string name, IsBackupPolicyArgs args, CustomResourceOptions? opts = null)
public IsBackupPolicy(String name, IsBackupPolicyArgs args)
public IsBackupPolicy(String name, IsBackupPolicyArgs args, CustomResourceOptions options)
type: ibm:IsBackupPolicy
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 IsBackupPolicyArgs
- 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 IsBackupPolicyArgs
- 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 IsBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsBackupPolicyArgs
- 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 isBackupPolicyResource = new Ibm.IsBackupPolicy("isBackupPolicyResource", new()
{
MatchUserTags = new[]
{
"string",
},
IncludedContents = new[]
{
"string",
},
IsBackupPolicyId = "string",
MatchResourceType = "string",
Name = "string",
ResourceGroup = "string",
Scope = new Ibm.Inputs.IsBackupPolicyScopeArgs
{
Crn = "string",
Id = "string",
ResourceType = "string",
},
});
example, err := ibm.NewIsBackupPolicy(ctx, "isBackupPolicyResource", &ibm.IsBackupPolicyArgs{
MatchUserTags: pulumi.StringArray{
pulumi.String("string"),
},
IncludedContents: pulumi.StringArray{
pulumi.String("string"),
},
IsBackupPolicyId: pulumi.String("string"),
MatchResourceType: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Scope: &ibm.IsBackupPolicyScopeArgs{
Crn: pulumi.String("string"),
Id: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
})
var isBackupPolicyResource = new IsBackupPolicy("isBackupPolicyResource", IsBackupPolicyArgs.builder()
.matchUserTags("string")
.includedContents("string")
.isBackupPolicyId("string")
.matchResourceType("string")
.name("string")
.resourceGroup("string")
.scope(IsBackupPolicyScopeArgs.builder()
.crn("string")
.id("string")
.resourceType("string")
.build())
.build());
is_backup_policy_resource = ibm.IsBackupPolicy("isBackupPolicyResource",
match_user_tags=["string"],
included_contents=["string"],
is_backup_policy_id="string",
match_resource_type="string",
name="string",
resource_group="string",
scope={
"crn": "string",
"id": "string",
"resource_type": "string",
})
const isBackupPolicyResource = new ibm.IsBackupPolicy("isBackupPolicyResource", {
matchUserTags: ["string"],
includedContents: ["string"],
isBackupPolicyId: "string",
matchResourceType: "string",
name: "string",
resourceGroup: "string",
scope: {
crn: "string",
id: "string",
resourceType: "string",
},
});
type: ibm:IsBackupPolicy
properties:
includedContents:
- string
isBackupPolicyId: string
matchResourceType: string
matchUserTags:
- string
name: string
resourceGroup: string
scope:
crn: string
id: string
resourceType: string
IsBackupPolicy 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 IsBackupPolicy resource accepts the following input properties:
- List<string>
- 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.
- Included
Contents List<string> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- Is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- Match
Resource stringType - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - Match
Resource List<string>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- Name string
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- Resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- Scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
- []string
- 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.
- Included
Contents []string The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- Is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- Match
Resource stringType - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - Match
Resource []stringTypes 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- Name string
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- Resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- Scope
Is
Backup Policy Scope Args - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
- List<String>
- 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.
- included
Contents List<String> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup StringPolicy Id - (String) The unique identifier for this enterprise.
- match
Resource StringType - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource List<String>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- name String
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group String The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
- string[]
- 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.
- included
Contents string[] The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- match
Resource stringType - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource string[]Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- name string
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
- Sequence[str]
- 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.
- included_
contents Sequence[str] The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is_
backup_ strpolicy_ id - (String) The unique identifier for this enterprise.
- match_
resource_ strtype - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match_
resource_ Sequence[str]types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- name str
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource_
group str The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- scope
Is
Backup Policy Scope Args - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
- List<String>
- 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.
- included
Contents List<String> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup StringPolicy Id - (String) The unique identifier for this enterprise.
- match
Resource StringType - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource List<String>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- name String
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group String The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- scope Property Map
- If present, the scope for this backup policy.
Nested
scope
blocks have the following structure:
Outputs
All input properties are implicitly available as output properties. Additionally, the IsBackupPolicy resource produces the following output properties:
- 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<IsBackup 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 backup policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Job stringCompleted At - (String) The date and time that the most recent job for this backup policy completed.
- Lifecycle
State string - (String) The lifecycle state of the backup policy.
- Resource
Type string - (String) The resource type.
- Version string
- Version of the BackupPolicy.
- Created
At string - (String) The date and time that the backup policy was created.
- Crn string
- (String) The CRN for this enterprise.
- Health
Reasons []IsBackup 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 backup policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Job stringCompleted At - (String) The date and time that the most recent job for this backup policy completed.
- Lifecycle
State string - (String) The lifecycle state of the backup policy.
- Resource
Type string - (String) The resource type.
- Version string
- Version of the BackupPolicy.
- 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<IsBackup 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 backup policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Job StringCompleted At - (String) The date and time that the most recent job for this backup policy completed.
- lifecycle
State String - (String) The lifecycle state of the backup policy.
- resource
Type String - (String) The resource type.
- version String
- Version of the BackupPolicy.
- created
At string - (String) The date and time that the backup policy was created.
- crn string
- (String) The CRN for this enterprise.
- health
Reasons IsBackup 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 backup policy.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Job stringCompleted At - (String) The date and time that the most recent job for this backup policy completed.
- lifecycle
State string - (String) The lifecycle state of the backup policy.
- resource
Type string - (String) The resource type.
- version string
- Version of the BackupPolicy.
- 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[IsBackup 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 backup policy.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
job_ strcompleted_ at - (String) The date and time that the most recent job for this backup policy completed.
- lifecycle_
state str - (String) The lifecycle state of the backup policy.
- resource_
type str - (String) The resource type.
- version str
- Version of the BackupPolicy.
- 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 backup policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Job StringCompleted At - (String) The date and time that the most recent job for this backup policy completed.
- lifecycle
State String - (String) The lifecycle state of the backup policy.
- resource
Type String - (String) The resource type.
- version String
- Version of the BackupPolicy.
Look up Existing IsBackupPolicy Resource
Get an existing IsBackupPolicy 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?: IsBackupPolicyState, opts?: CustomResourceOptions): IsBackupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
crn: Optional[str] = None,
health_reasons: Optional[Sequence[IsBackupPolicyHealthReasonArgs]] = None,
health_state: Optional[str] = None,
href: Optional[str] = None,
included_contents: Optional[Sequence[str]] = None,
is_backup_policy_id: Optional[str] = None,
last_job_completed_at: Optional[str] = None,
lifecycle_state: Optional[str] = None,
match_resource_type: Optional[str] = None,
match_resource_types: Optional[Sequence[str]] = None,
match_user_tags: Optional[Sequence[str]] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
resource_type: Optional[str] = None,
scope: Optional[IsBackupPolicyScopeArgs] = None,
version: Optional[str] = None) -> IsBackupPolicy
func GetIsBackupPolicy(ctx *Context, name string, id IDInput, state *IsBackupPolicyState, opts ...ResourceOption) (*IsBackupPolicy, error)
public static IsBackupPolicy Get(string name, Input<string> id, IsBackupPolicyState? state, CustomResourceOptions? opts = null)
public static IsBackupPolicy get(String name, Output<String> id, IsBackupPolicyState state, CustomResourceOptions options)
resources: _: type: ibm:IsBackupPolicy get: id: ${id}
- 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.
- 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<IsBackup 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 backup policy.
- Included
Contents List<string> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- Is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- Last
Job stringCompleted At - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - Match
Resource List<string>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- List<string>
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- Resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- Resource
Type string - (String) The resource type.
- Scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - Version string
- Version of the BackupPolicy.
- Created
At string - (String) The date and time that the backup policy was created.
- Crn string
- (String) The CRN for this enterprise.
- Health
Reasons []IsBackup Policy Health Reason Args - (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 backup policy.
- Included
Contents []string The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- Is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- Last
Job stringCompleted At - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - Match
Resource []stringTypes 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- []string
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- Resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- Resource
Type string - (String) The resource type.
- Scope
Is
Backup Policy Scope Args - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - Version string
- Version of the BackupPolicy.
- 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<IsBackup 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 backup policy.
- included
Contents List<String> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup StringPolicy Id - (String) The unique identifier for this enterprise.
- last
Job StringCompleted At - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource List<String>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- List<String>
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group String The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- resource
Type String - (String) The resource type.
- scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - version String
- Version of the BackupPolicy.
- created
At string - (String) The date and time that the backup policy was created.
- crn string
- (String) The CRN for this enterprise.
- health
Reasons IsBackup 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 backup policy.
- included
Contents string[] The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup stringPolicy Id - (String) The unique identifier for this enterprise.
- last
Job stringCompleted At - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource string[]Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- string[]
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group string The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- resource
Type string - (String) The resource type.
- scope
Is
Backup Policy Scope - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - version string
- Version of the BackupPolicy.
- 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[IsBackup Policy Health Reason Args] - (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 backup policy.
- included_
contents Sequence[str] The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is_
backup_ strpolicy_ id - (String) The unique identifier for this enterprise.
- last_
job_ strcompleted_ at - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match_
resource_ Sequence[str]types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- Sequence[str]
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource_
group str The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- resource_
type str - (String) The resource type.
- scope
Is
Backup Policy Scope Args - If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - version str
- Version of the BackupPolicy.
- 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 backup policy.
- included
Contents List<String> The included content for backups created using this policy. Allowed values are
boot_volume
,data_volumes
.Note
boot_volume
: Include the instance's boot volume.data_volumes
: Include the instance's data volumes.- is
Backup StringPolicy Id - (String) The unique identifier for this enterprise.
- last
Job StringCompleted At - (String) The 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 - 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. The default value is
["volume"]
. Allowed values arevolume
,instance
,share
. - match
Resource List<String>Types 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. The default value is
["volume"]
.Note
match_resource_types
is deprecated. Please usematch_resource_type
instead.- List<String>
- 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
- The user-defined name for this backup policy. Names must be unique within the region this backup policy resides in.
- resource
Group String The resource group id, to use. If unspecified, the account's default resource group is used.
Nested scheme for
resource_group
:- resource
Type String - (String) The resource type.
- scope Property Map
- If present, the scope for this backup policy.
Nested
scope
blocks have the following structure: - version String
- Version of the BackupPolicy.
Supporting Types
IsBackupPolicyHealthReason, IsBackupPolicyHealthReasonArgs
IsBackupPolicyScope, IsBackupPolicyScopeArgs
- Crn string
- The CRN for this enterprise.
- Id string
- (String) The unique identifier for this enterprise.
- Resource
Type string - (String) The resource type.
- Crn string
- The CRN for this enterprise.
- Id string
- (String) The unique identifier for this enterprise.
- Resource
Type string - (String) The resource type.
- crn String
- The CRN for this enterprise.
- id String
- (String) The unique identifier for this enterprise.
- resource
Type String - (String) The resource type.
- crn string
- The CRN for this enterprise.
- id string
- (String) The unique identifier for this enterprise.
- resource
Type string - (String) The resource type.
- crn str
- The CRN for this enterprise.
- id str
- (String) The unique identifier for this enterprise.
- resource_
type str - (String) The resource type.
- crn String
- The CRN for this enterprise.
- id String
- (String) The unique identifier for this enterprise.
- resource
Type String - (String) The resource type.
Import
You can import the ibm_is_backup_policy
resource by using id
. The unique identifier for this backup policy.
Syntax
$ pulumi import ibm:index/isBackupPolicy:IsBackupPolicy is_backup_policy <id>
Example
$ pulumi import ibm:index/isBackupPolicy:IsBackupPolicy is_backup_policy 0fe9e5d8-0a4d-4818-96ec-e99708644a58
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.