BackupInstance Resource
Uses Azure REST API version 2025-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-01.
Other available API versions: 2023-01-01, 2023-04-01-preview, 2023-05-01, 2023-06-01-preview, 2023-08-01-preview, 2023-11-01, 2023-12-01, 2024-02-01-preview, 2024-03-01, 2024-04-01, 2025-02-01, 2025-07-01, 2025-09-01, 2026-03-01, 2026-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native dataprotection [ApiVersion]. See the version guide for details.
Example Usage
Create BackupInstance
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backupInstance = new AzureNative.DataProtection.BackupInstance("backupInstance", new()
{
BackupInstanceName = "testInstance1",
Properties = new AzureNative.DataProtection.Inputs.BackupInstanceArgs
{
DataSourceInfo = new AzureNative.DataProtection.Inputs.DatasourceArgs
{
DatasourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ObjectType = "Datasource",
ResourceID = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
ResourceLocation = "",
ResourceName = "testdb",
ResourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ResourceUri = "",
},
DataSourceSetInfo = new AzureNative.DataProtection.Inputs.DatasourceSetArgs
{
DatasourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ObjectType = "DatasourceSet",
ResourceID = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
ResourceLocation = "",
ResourceName = "viveksipgtest",
ResourceType = "Microsoft.DBforPostgreSQL/servers",
ResourceUri = "",
},
DatasourceAuthCredentials = new AzureNative.DataProtection.Inputs.SecretStoreBasedAuthCredentialsArgs
{
ObjectType = "SecretStoreBasedAuthCredentials",
SecretStoreResource = new AzureNative.DataProtection.Inputs.SecretStoreResourceArgs
{
SecretStoreType = AzureNative.DataProtection.SecretStoreType.AzureKeyVault,
Uri = "https://samplevault.vault.azure.net/secrets/credentials",
},
},
FriendlyName = "harshitbi2",
IdentityDetails = new AzureNative.DataProtection.Inputs.IdentityDetailsArgs
{
UseSystemAssignedIdentity = false,
UserAssignedIdentityArmUrl = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami",
},
ObjectType = "BackupInstance",
PolicyInfo = new AzureNative.DataProtection.Inputs.PolicyInfoArgs
{
PolicyId = "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
PolicyParameters = new AzureNative.DataProtection.Inputs.PolicyParametersArgs
{
DataStoreParametersList =
{
new AzureNative.DataProtection.Inputs.AzureOperationalStoreParametersArgs
{
DataStoreType = AzureNative.DataProtection.DataStoreTypes.OperationalStore,
ObjectType = "AzureOperationalStoreParameters",
ResourceGroupId = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
},
},
},
},
ValidationType = AzureNative.DataProtection.ValidationType.ShallowValidation,
},
ResourceGroupName = "000pikumar",
Tags =
{
{ "key1", "val1" },
},
VaultName = "PratikPrivatePreviewVault1",
});
});
package main
import (
dataprotection "github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataprotection.NewBackupInstance(ctx, "backupInstance", &dataprotection.BackupInstanceArgs{
BackupInstanceName: pulumi.String("testInstance1"),
Properties: &dataprotection.BackupInstanceTypeArgs{
DataSourceInfo: &dataprotection.DatasourceArgs{
DatasourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: pulumi.String("Datasource"),
ResourceID: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
ResourceLocation: pulumi.String(""),
ResourceName: pulumi.String("testdb"),
ResourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ResourceUri: pulumi.String(""),
},
DataSourceSetInfo: &dataprotection.DatasourceSetArgs{
DatasourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: pulumi.String("DatasourceSet"),
ResourceID: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"),
ResourceLocation: pulumi.String(""),
ResourceName: pulumi.String("viveksipgtest"),
ResourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers"),
ResourceUri: pulumi.String(""),
},
DatasourceAuthCredentials: &dataprotection.SecretStoreBasedAuthCredentialsArgs{
ObjectType: pulumi.String("SecretStoreBasedAuthCredentials"),
SecretStoreResource: &dataprotection.SecretStoreResourceArgs{
SecretStoreType: pulumi.String(dataprotection.SecretStoreTypeAzureKeyVault),
Uri: pulumi.String("https://samplevault.vault.azure.net/secrets/credentials"),
},
},
FriendlyName: pulumi.String("harshitbi2"),
IdentityDetails: &dataprotection.IdentityDetailsArgs{
UseSystemAssignedIdentity: pulumi.Bool(false),
UserAssignedIdentityArmUrl: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami"),
},
ObjectType: pulumi.String("BackupInstance"),
PolicyInfo: &dataprotection.PolicyInfoArgs{
PolicyId: pulumi.String("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"),
PolicyParameters: &dataprotection.PolicyParametersArgs{
DataStoreParametersList: dataprotection.AzureOperationalStoreParametersArray{
&dataprotection.AzureOperationalStoreParametersArgs{
DataStoreType: pulumi.String(dataprotection.DataStoreTypesOperationalStore),
ObjectType: pulumi.String("AzureOperationalStoreParameters"),
ResourceGroupId: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest"),
},
},
},
},
ValidationType: pulumi.String(dataprotection.ValidationTypeShallowValidation),
},
ResourceGroupName: pulumi.String("000pikumar"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
},
VaultName: pulumi.String("PratikPrivatePreviewVault1"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dataprotection_backup_instance" "backupInstance" {
lifecycle {
create_before_destroy = true
}
backup_instance_name = "testInstance1"
properties = {
data_source_info = {
datasource_type = "Microsoft.DBforPostgreSQL/servers/databases"
object_type = "Datasource"
resource_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"
resource_location = ""
resource_name = "testdb"
resource_type = "Microsoft.DBforPostgreSQL/servers/databases"
resource_uri = ""
}
data_source_set_info = {
datasource_type = "Microsoft.DBforPostgreSQL/servers/databases"
object_type = "DatasourceSet"
resource_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"
resource_location = ""
resource_name = "viveksipgtest"
resource_type = "Microsoft.DBforPostgreSQL/servers"
resource_uri = ""
}
datasource_auth_credentials = {
object_type = "SecretStoreBasedAuthCredentials"
secret_store_resource = {
secret_store_type = "AzureKeyVault"
uri = "https://samplevault.vault.azure.net/secrets/credentials"
}
}
friendly_name = "harshitbi2"
identity_details = {
use_system_assigned_identity = false
user_assigned_identity_arm_url = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami"
}
object_type = "BackupInstance"
policy_info = {
policy_id = "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"
policy_parameters = {
data_store_parameters_list = [{
data_store_type = "OperationalStore"
object_type = "AzureOperationalStoreParameters"
resource_group_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest"
}]
}
}
validation_type = "ShallowValidation"
}
resource_group_name = "000pikumar"
tags = {
"key1" = "val1"
}
vault_name = "PratikPrivatePreviewVault1"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupInstance;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs;
import com.pulumi.azurenative.dataprotection.inputs.SecretStoreBasedAuthCredentialsArgs;
import com.pulumi.azurenative.dataprotection.inputs.SecretStoreResourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.IdentityDetailsArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyInfoArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyParametersArgs;
import com.pulumi.azurenative.dataprotection.inputs.AzureOperationalStoreParametersArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 backupInstance = new BackupInstance("backupInstance", BackupInstanceArgs.builder()
.backupInstanceName("testInstance1")
.properties(com.pulumi.azurenative.dataprotection.inputs.BackupInstanceArgs.builder()
.dataSourceInfo(DatasourceArgs.builder()
.datasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.objectType("Datasource")
.resourceID("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.resourceLocation("")
.resourceName("testdb")
.resourceType("Microsoft.DBforPostgreSQL/servers/databases")
.resourceUri("")
.build())
.dataSourceSetInfo(DatasourceSetArgs.builder()
.datasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.objectType("DatasourceSet")
.resourceID("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
.resourceLocation("")
.resourceName("viveksipgtest")
.resourceType("Microsoft.DBforPostgreSQL/servers")
.resourceUri("")
.build())
.datasourceAuthCredentials(SecretStoreBasedAuthCredentialsArgs.builder()
.secretStoreResource(SecretStoreResourceArgs.builder()
.secretStoreType("AzureKeyVault")
.uri("https://samplevault.vault.azure.net/secrets/credentials")
.build())
.build())
.friendlyName("harshitbi2")
.identityDetails(IdentityDetailsArgs.builder()
.useSystemAssignedIdentity(false)
.userAssignedIdentityArmUrl("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami")
.build())
.objectType("BackupInstance")
.policyInfo(PolicyInfoArgs.builder()
.policyId("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1")
.policyParameters(PolicyParametersArgs.builder()
.dataStoreParametersList(AzureOperationalStoreParametersArgs.builder()
.dataStoreType("OperationalStore")
.resourceGroupId("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest")
.build())
.build())
.build())
.validationType("ShallowValidation")
.build())
.resourceGroupName("000pikumar")
.tags(Map.of("key1", "val1"))
.vaultName("PratikPrivatePreviewVault1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const backupInstance = new azure_native.dataprotection.BackupInstance("backupInstance", {
backupInstanceName: "testInstance1",
properties: {
dataSourceInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "Datasource",
resourceID: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
resourceLocation: "",
resourceName: "testdb",
resourceType: "Microsoft.DBforPostgreSQL/servers/databases",
resourceUri: "",
},
dataSourceSetInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "DatasourceSet",
resourceID: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
resourceLocation: "",
resourceName: "viveksipgtest",
resourceType: "Microsoft.DBforPostgreSQL/servers",
resourceUri: "",
},
datasourceAuthCredentials: {
objectType: "SecretStoreBasedAuthCredentials",
secretStoreResource: {
secretStoreType: azure_native.dataprotection.SecretStoreType.AzureKeyVault,
uri: "https://samplevault.vault.azure.net/secrets/credentials",
},
},
friendlyName: "harshitbi2",
identityDetails: {
useSystemAssignedIdentity: false,
userAssignedIdentityArmUrl: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami",
},
objectType: "BackupInstance",
policyInfo: {
policyId: "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
policyParameters: {
dataStoreParametersList: [{
dataStoreType: azure_native.dataprotection.DataStoreTypes.OperationalStore,
objectType: "AzureOperationalStoreParameters",
resourceGroupId: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
}],
},
},
validationType: azure_native.dataprotection.ValidationType.ShallowValidation,
},
resourceGroupName: "000pikumar",
tags: {
key1: "val1",
},
vaultName: "PratikPrivatePreviewVault1",
});
import pulumi
import pulumi_azure_native as azure_native
backup_instance = azure_native.dataprotection.BackupInstance("backupInstance",
backup_instance_name="testInstance1",
properties={
"data_source_info": {
"datasource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"object_type": "Datasource",
"resource_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
"resource_location": "",
"resource_name": "testdb",
"resource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"resource_uri": "",
},
"data_source_set_info": {
"datasource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"object_type": "DatasourceSet",
"resource_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resource_location": "",
"resource_name": "viveksipgtest",
"resource_type": "Microsoft.DBforPostgreSQL/servers",
"resource_uri": "",
},
"datasource_auth_credentials": {
"object_type": "SecretStoreBasedAuthCredentials",
"secret_store_resource": {
"secret_store_type": azure_native.dataprotection.SecretStoreType.AZURE_KEY_VAULT,
"uri": "https://samplevault.vault.azure.net/secrets/credentials",
},
},
"friendly_name": "harshitbi2",
"identity_details": {
"use_system_assigned_identity": False,
"user_assigned_identity_arm_url": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami",
},
"object_type": "BackupInstance",
"policy_info": {
"policy_id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
"policy_parameters": {
"data_store_parameters_list": [{
"data_store_type": azure_native.dataprotection.DataStoreTypes.OPERATIONAL_STORE,
"object_type": "AzureOperationalStoreParameters",
"resource_group_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
}],
},
},
"validation_type": azure_native.dataprotection.ValidationType.SHALLOW_VALIDATION,
},
resource_group_name="000pikumar",
tags={
"key1": "val1",
},
vault_name="PratikPrivatePreviewVault1")
resources:
backupInstance:
type: azure-native:dataprotection:BackupInstance
properties:
backupInstanceName: testInstance1
properties:
dataSourceInfo:
datasourceType: Microsoft.DBforPostgreSQL/servers/databases
objectType: Datasource
resourceID: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb
resourceLocation: ""
resourceName: testdb
resourceType: Microsoft.DBforPostgreSQL/servers/databases
resourceUri: ""
dataSourceSetInfo:
datasourceType: Microsoft.DBforPostgreSQL/servers/databases
objectType: DatasourceSet
resourceID: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest
resourceLocation: ""
resourceName: viveksipgtest
resourceType: Microsoft.DBforPostgreSQL/servers
resourceUri: ""
datasourceAuthCredentials:
objectType: SecretStoreBasedAuthCredentials
secretStoreResource:
secretStoreType: AzureKeyVault
uri: https://samplevault.vault.azure.net/secrets/credentials
friendlyName: harshitbi2
identityDetails:
useSystemAssignedIdentity: false
userAssignedIdentityArmUrl: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami
objectType: BackupInstance
policyInfo:
policyId: /subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1
policyParameters:
dataStoreParametersList:
- dataStoreType: OperationalStore
objectType: AzureOperationalStoreParameters
resourceGroupId: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest
validationType: ShallowValidation
resourceGroupName: 000pikumar
tags:
key1: val1
vaultName: PratikPrivatePreviewVault1
Create BackupInstance With KubernetesClusterBackupDatasourceParameters
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backupInstance = new AzureNative.DataProtection.BackupInstance("backupInstance", new()
{
BackupInstanceName = "aksbi",
Properties = new AzureNative.DataProtection.Inputs.BackupInstanceArgs
{
DataSourceInfo = new AzureNative.DataProtection.Inputs.DatasourceArgs
{
DatasourceType = "Microsoft.ContainerService/managedclusters",
ObjectType = "Datasource",
ResourceID = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
ResourceLocation = "eastus2euap",
ResourceName = "akscluster",
ResourceType = "Microsoft.ContainerService/managedclusters",
ResourceUri = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
DataSourceSetInfo = new AzureNative.DataProtection.Inputs.DatasourceSetArgs
{
DatasourceType = "Microsoft.ContainerService/managedclusters",
ObjectType = "DatasourceSet",
ResourceID = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
ResourceLocation = "eastus2euap",
ResourceName = "akscluster",
ResourceType = "Microsoft.ContainerService/managedclusters",
ResourceUri = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
FriendlyName = "aksbi",
ObjectType = "BackupInstance",
PolicyInfo = new AzureNative.DataProtection.Inputs.PolicyInfoArgs
{
PolicyId = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy",
PolicyParameters = new AzureNative.DataProtection.Inputs.PolicyParametersArgs
{
BackupDatasourceParametersList = new[]
{
new AzureNative.DataProtection.Inputs.KubernetesClusterBackupDatasourceParametersArgs
{
ExcludedNamespaces = new[]
{
"kube-system",
},
ExcludedResourceTypes = new[]
{
"v1/Secret",
},
IncludeClusterScopeResources = true,
IncludedNamespaces = new[]
{
"test",
},
IncludedResourceTypes = new() { },
IncludedVolumeTypes =
{
AzureNative.DataProtection.AKSVolumeTypes.AzureDisk,
AzureNative.DataProtection.AKSVolumeTypes.AzureFileShareSMB,
},
LabelSelectors = new() { },
ObjectType = "KubernetesClusterBackupDatasourceParameters",
SnapshotVolumes = true,
},
},
DataStoreParametersList =
{
new AzureNative.DataProtection.Inputs.AzureOperationalStoreParametersArgs
{
DataStoreType = AzureNative.DataProtection.DataStoreTypes.OperationalStore,
ObjectType = "AzureOperationalStoreParameters",
ResourceGroupId = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg",
},
},
},
},
},
ResourceGroupName = "aksrg",
Tags =
{
{ "key1", "val1" },
},
VaultName = "aksvault",
});
});
package main
import (
dataprotection "github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataprotection.NewBackupInstance(ctx, "backupInstance", &dataprotection.BackupInstanceArgs{
BackupInstanceName: pulumi.String("aksbi"),
Properties: &dataprotection.BackupInstanceTypeArgs{
DataSourceInfo: &dataprotection.DatasourceArgs{
DatasourceType: pulumi.String("Microsoft.ContainerService/managedclusters"),
ObjectType: pulumi.String("Datasource"),
ResourceID: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"),
ResourceLocation: pulumi.String("eastus2euap"),
ResourceName: pulumi.String("akscluster"),
ResourceType: pulumi.String("Microsoft.ContainerService/managedclusters"),
ResourceUri: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"),
},
DataSourceSetInfo: &dataprotection.DatasourceSetArgs{
DatasourceType: pulumi.String("Microsoft.ContainerService/managedclusters"),
ObjectType: pulumi.String("DatasourceSet"),
ResourceID: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"),
ResourceLocation: pulumi.String("eastus2euap"),
ResourceName: pulumi.String("akscluster"),
ResourceType: pulumi.String("Microsoft.ContainerService/managedclusters"),
ResourceUri: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"),
},
FriendlyName: pulumi.String("aksbi"),
ObjectType: pulumi.String("BackupInstance"),
PolicyInfo: &dataprotection.PolicyInfoArgs{
PolicyId: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy"),
PolicyParameters: &dataprotection.PolicyParametersArgs{
BackupDatasourceParametersList: pulumi.Array{
&dataprotection.KubernetesClusterBackupDatasourceParametersArgs{
ExcludedNamespaces: pulumi.StringArray{
pulumi.String("kube-system"),
},
ExcludedResourceTypes: pulumi.StringArray{
pulumi.String("v1/Secret"),
},
IncludeClusterScopeResources: pulumi.Bool(true),
IncludedNamespaces: pulumi.StringArray{
pulumi.String("test"),
},
IncludedResourceTypes: pulumi.StringArray{},
IncludedVolumeTypes: pulumi.StringArray{
pulumi.String(dataprotection.AKSVolumeTypesAzureDisk),
pulumi.String(dataprotection.AKSVolumeTypesAzureFileShareSMB),
},
LabelSelectors: pulumi.StringArray{},
ObjectType: pulumi.String("KubernetesClusterBackupDatasourceParameters"),
SnapshotVolumes: pulumi.Bool(true),
},
},
DataStoreParametersList: dataprotection.AzureOperationalStoreParametersArray{
&dataprotection.AzureOperationalStoreParametersArgs{
DataStoreType: pulumi.String(dataprotection.DataStoreTypesOperationalStore),
ObjectType: pulumi.String("AzureOperationalStoreParameters"),
ResourceGroupId: pulumi.String("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg"),
},
},
},
},
},
ResourceGroupName: pulumi.String("aksrg"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
},
VaultName: pulumi.String("aksvault"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dataprotection_backup_instance" "backupInstance" {
lifecycle {
create_before_destroy = true
}
backup_instance_name = "aksbi"
properties = {
data_source_info = {
datasource_type = "Microsoft.ContainerService/managedclusters"
object_type = "Datasource"
resource_id = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"
resource_location = "eastus2euap"
resource_name = "akscluster"
resource_type = "Microsoft.ContainerService/managedclusters"
resource_uri = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"
}
data_source_set_info = {
datasource_type = "Microsoft.ContainerService/managedclusters"
object_type = "DatasourceSet"
resource_id = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"
resource_location = "eastus2euap"
resource_name = "akscluster"
resource_type = "Microsoft.ContainerService/managedclusters"
resource_uri = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster"
}
friendly_name = "aksbi"
object_type = "BackupInstance"
policy_info = {
policy_id = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy"
policy_parameters = {
backup_datasource_parameters_list = [{
excluded_namespaces = ["kube-system"]
excluded_resource_types = ["v1/Secret"]
include_cluster_scope_resources = true
included_namespaces = ["test"]
included_resource_types = []
included_volume_types = ["AzureDisk", "AzureFileShareSMB"]
label_selectors = []
object_type = "KubernetesClusterBackupDatasourceParameters"
snapshot_volumes = true
}]
data_store_parameters_list = [{
data_store_type = "OperationalStore"
object_type = "AzureOperationalStoreParameters"
resource_group_id = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg"
}]
}
}
}
resource_group_name = "aksrg"
tags = {
"key1" = "val1"
}
vault_name = "aksvault"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupInstance;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyInfoArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyParametersArgs;
import com.pulumi.azurenative.dataprotection.inputs.BlobBackupDatasourceParametersArgs;
import com.pulumi.azurenative.dataprotection.inputs.KubernetesClusterBackupDatasourceParametersArgs;
import com.pulumi.azurenative.dataprotection.inputs.AzureOperationalStoreParametersArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 backupInstance = new BackupInstance("backupInstance", BackupInstanceArgs.builder()
.backupInstanceName("aksbi")
.properties(com.pulumi.azurenative.dataprotection.inputs.BackupInstanceArgs.builder()
.dataSourceInfo(DatasourceArgs.builder()
.datasourceType("Microsoft.ContainerService/managedclusters")
.objectType("Datasource")
.resourceID("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster")
.resourceLocation("eastus2euap")
.resourceName("akscluster")
.resourceType("Microsoft.ContainerService/managedclusters")
.resourceUri("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster")
.build())
.dataSourceSetInfo(DatasourceSetArgs.builder()
.datasourceType("Microsoft.ContainerService/managedclusters")
.objectType("DatasourceSet")
.resourceID("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster")
.resourceLocation("eastus2euap")
.resourceName("akscluster")
.resourceType("Microsoft.ContainerService/managedclusters")
.resourceUri("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster")
.build())
.friendlyName("aksbi")
.objectType("BackupInstance")
.policyInfo(PolicyInfoArgs.builder()
.policyId("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy")
.policyParameters(PolicyParametersArgs.builder()
.backupDatasourceParametersList(KubernetesClusterBackupDatasourceParametersArgs.builder()
.excludedNamespaces("kube-system")
.excludedResourceTypes("v1/Secret")
.includeClusterScopeResources(true)
.includedNamespaces("test")
.includedResourceTypes()
.includedVolumeTypes(
"AzureDisk",
"AzureFileShareSMB")
.labelSelectors()
.snapshotVolumes(true)
.build())
.dataStoreParametersList(AzureOperationalStoreParametersArgs.builder()
.dataStoreType("OperationalStore")
.resourceGroupId("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg")
.build())
.build())
.build())
.build())
.resourceGroupName("aksrg")
.tags(Map.of("key1", "val1"))
.vaultName("aksvault")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const backupInstance = new azure_native.dataprotection.BackupInstance("backupInstance", {
backupInstanceName: "aksbi",
properties: {
dataSourceInfo: {
datasourceType: "Microsoft.ContainerService/managedclusters",
objectType: "Datasource",
resourceID: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
resourceLocation: "eastus2euap",
resourceName: "akscluster",
resourceType: "Microsoft.ContainerService/managedclusters",
resourceUri: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
dataSourceSetInfo: {
datasourceType: "Microsoft.ContainerService/managedclusters",
objectType: "DatasourceSet",
resourceID: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
resourceLocation: "eastus2euap",
resourceName: "akscluster",
resourceType: "Microsoft.ContainerService/managedclusters",
resourceUri: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
friendlyName: "aksbi",
objectType: "BackupInstance",
policyInfo: {
policyId: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy",
policyParameters: {
backupDatasourceParametersList: [{
excludedNamespaces: ["kube-system"],
excludedResourceTypes: ["v1/Secret"],
includeClusterScopeResources: true,
includedNamespaces: ["test"],
includedResourceTypes: [],
includedVolumeTypes: [
azure_native.dataprotection.AKSVolumeTypes.AzureDisk,
azure_native.dataprotection.AKSVolumeTypes.AzureFileShareSMB,
],
labelSelectors: [],
objectType: "KubernetesClusterBackupDatasourceParameters",
snapshotVolumes: true,
}],
dataStoreParametersList: [{
dataStoreType: azure_native.dataprotection.DataStoreTypes.OperationalStore,
objectType: "AzureOperationalStoreParameters",
resourceGroupId: "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg",
}],
},
},
},
resourceGroupName: "aksrg",
tags: {
key1: "val1",
},
vaultName: "aksvault",
});
import pulumi
import pulumi_azure_native as azure_native
backup_instance = azure_native.dataprotection.BackupInstance("backupInstance",
backup_instance_name="aksbi",
properties={
"data_source_info": {
"datasource_type": "Microsoft.ContainerService/managedclusters",
"object_type": "Datasource",
"resource_id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
"resource_location": "eastus2euap",
"resource_name": "akscluster",
"resource_type": "Microsoft.ContainerService/managedclusters",
"resource_uri": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
"data_source_set_info": {
"datasource_type": "Microsoft.ContainerService/managedclusters",
"object_type": "DatasourceSet",
"resource_id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
"resource_location": "eastus2euap",
"resource_name": "akscluster",
"resource_type": "Microsoft.ContainerService/managedclusters",
"resource_uri": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster",
},
"friendly_name": "aksbi",
"object_type": "BackupInstance",
"policy_info": {
"policy_id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy",
"policy_parameters": {
"backup_datasource_parameters_list": [{
"excluded_namespaces": ["kube-system"],
"excluded_resource_types": ["v1/Secret"],
"include_cluster_scope_resources": True,
"included_namespaces": ["test"],
"included_resource_types": [],
"included_volume_types": [
azure_native.dataprotection.AKSVolumeTypes.AZURE_DISK,
azure_native.dataprotection.AKSVolumeTypes.AZURE_FILE_SHARE_SMB,
],
"label_selectors": [],
"object_type": "KubernetesClusterBackupDatasourceParameters",
"snapshot_volumes": True,
}],
"data_store_parameters_list": [{
"data_store_type": azure_native.dataprotection.DataStoreTypes.OPERATIONAL_STORE,
"object_type": "AzureOperationalStoreParameters",
"resource_group_id": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg",
}],
},
},
},
resource_group_name="aksrg",
tags={
"key1": "val1",
},
vault_name="aksvault")
resources:
backupInstance:
type: azure-native:dataprotection:BackupInstance
properties:
backupInstanceName: aksbi
properties:
dataSourceInfo:
datasourceType: Microsoft.ContainerService/managedclusters
objectType: Datasource
resourceID: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster
resourceLocation: eastus2euap
resourceName: akscluster
resourceType: Microsoft.ContainerService/managedclusters
resourceUri: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster
dataSourceSetInfo:
datasourceType: Microsoft.ContainerService/managedclusters
objectType: DatasourceSet
resourceID: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster
resourceLocation: eastus2euap
resourceName: akscluster
resourceType: Microsoft.ContainerService/managedclusters
resourceUri: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.ContainerService/managedClusters/akscluster
friendlyName: aksbi
objectType: BackupInstance
policyInfo:
policyId: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg/providers/Microsoft.DataProtection/BackupVaults/aksvault/backupPolicies/akspolicy
policyParameters:
backupDatasourceParametersList:
- excludedNamespaces:
- kube-system
excludedResourceTypes:
- v1/Secret
includeClusterScopeResources: true
includedNamespaces:
- test
includedResourceTypes: []
includedVolumeTypes:
- AzureDisk
- AzureFileShareSMB
labelSelectors: []
objectType: KubernetesClusterBackupDatasourceParameters
snapshotVolumes: true
dataStoreParametersList:
- dataStoreType: OperationalStore
objectType: AzureOperationalStoreParameters
resourceGroupId: /subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksrg
resourceGroupName: aksrg
tags:
key1: val1
vaultName: aksvault
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backupInstance = new AzureNative.DataProtection.BackupInstance("backupInstance", new()
{
BackupInstanceName = "testInstance1",
Properties = new AzureNative.DataProtection.Inputs.BackupInstanceArgs
{
DataSourceInfo = new AzureNative.DataProtection.Inputs.DatasourceArgs
{
DatasourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ObjectType = "Datasource",
ResourceID = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
ResourceLocation = "",
ResourceName = "testdb",
ResourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ResourceUri = "",
},
DataSourceSetInfo = new AzureNative.DataProtection.Inputs.DatasourceSetArgs
{
DatasourceType = "Microsoft.DBforPostgreSQL/servers/databases",
ObjectType = "DatasourceSet",
ResourceID = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
ResourceLocation = "",
ResourceName = "viveksipgtest",
ResourceType = "Microsoft.DBforPostgreSQL/servers",
ResourceUri = "",
},
DatasourceAuthCredentials = new AzureNative.DataProtection.Inputs.SecretStoreBasedAuthCredentialsArgs
{
ObjectType = "SecretStoreBasedAuthCredentials",
SecretStoreResource = new AzureNative.DataProtection.Inputs.SecretStoreResourceArgs
{
SecretStoreType = AzureNative.DataProtection.SecretStoreType.AzureKeyVault,
Uri = "https://samplevault.vault.azure.net/secrets/credentials",
},
},
FriendlyName = "harshitbi2",
ObjectType = "BackupInstance",
PolicyInfo = new AzureNative.DataProtection.Inputs.PolicyInfoArgs
{
PolicyId = "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
PolicyParameters = new AzureNative.DataProtection.Inputs.PolicyParametersArgs
{
DataStoreParametersList =
{
new AzureNative.DataProtection.Inputs.AzureOperationalStoreParametersArgs
{
DataStoreType = AzureNative.DataProtection.DataStoreTypes.OperationalStore,
ObjectType = "AzureOperationalStoreParameters",
ResourceGroupId = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
},
},
},
},
ResourceGuardOperationRequests = new[]
{
"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default",
},
ValidationType = AzureNative.DataProtection.ValidationType.ShallowValidation,
},
ResourceGroupName = "000pikumar",
Tags =
{
{ "key1", "val1" },
},
VaultName = "PratikPrivatePreviewVault1",
});
});
package main
import (
dataprotection "github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataprotection.NewBackupInstance(ctx, "backupInstance", &dataprotection.BackupInstanceArgs{
BackupInstanceName: pulumi.String("testInstance1"),
Properties: &dataprotection.BackupInstanceTypeArgs{
DataSourceInfo: &dataprotection.DatasourceArgs{
DatasourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: pulumi.String("Datasource"),
ResourceID: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"),
ResourceLocation: pulumi.String(""),
ResourceName: pulumi.String("testdb"),
ResourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ResourceUri: pulumi.String(""),
},
DataSourceSetInfo: &dataprotection.DatasourceSetArgs{
DatasourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers/databases"),
ObjectType: pulumi.String("DatasourceSet"),
ResourceID: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"),
ResourceLocation: pulumi.String(""),
ResourceName: pulumi.String("viveksipgtest"),
ResourceType: pulumi.String("Microsoft.DBforPostgreSQL/servers"),
ResourceUri: pulumi.String(""),
},
DatasourceAuthCredentials: &dataprotection.SecretStoreBasedAuthCredentialsArgs{
ObjectType: pulumi.String("SecretStoreBasedAuthCredentials"),
SecretStoreResource: &dataprotection.SecretStoreResourceArgs{
SecretStoreType: pulumi.String(dataprotection.SecretStoreTypeAzureKeyVault),
Uri: pulumi.String("https://samplevault.vault.azure.net/secrets/credentials"),
},
},
FriendlyName: pulumi.String("harshitbi2"),
ObjectType: pulumi.String("BackupInstance"),
PolicyInfo: &dataprotection.PolicyInfoArgs{
PolicyId: pulumi.String("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"),
PolicyParameters: &dataprotection.PolicyParametersArgs{
DataStoreParametersList: dataprotection.AzureOperationalStoreParametersArray{
&dataprotection.AzureOperationalStoreParametersArgs{
DataStoreType: pulumi.String(dataprotection.DataStoreTypesOperationalStore),
ObjectType: pulumi.String("AzureOperationalStoreParameters"),
ResourceGroupId: pulumi.String("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest"),
},
},
},
},
ResourceGuardOperationRequests: pulumi.StringArray{
pulumi.String("/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default"),
},
ValidationType: pulumi.String(dataprotection.ValidationTypeShallowValidation),
},
ResourceGroupName: pulumi.String("000pikumar"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
},
VaultName: pulumi.String("PratikPrivatePreviewVault1"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dataprotection_backup_instance" "backupInstance" {
lifecycle {
create_before_destroy = true
}
backup_instance_name = "testInstance1"
properties = {
data_source_info = {
datasource_type = "Microsoft.DBforPostgreSQL/servers/databases"
object_type = "Datasource"
resource_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"
resource_location = ""
resource_name = "testdb"
resource_type = "Microsoft.DBforPostgreSQL/servers/databases"
resource_uri = ""
}
data_source_set_info = {
datasource_type = "Microsoft.DBforPostgreSQL/servers/databases"
object_type = "DatasourceSet"
resource_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"
resource_location = ""
resource_name = "viveksipgtest"
resource_type = "Microsoft.DBforPostgreSQL/servers"
resource_uri = ""
}
datasource_auth_credentials = {
object_type = "SecretStoreBasedAuthCredentials"
secret_store_resource = {
secret_store_type = "AzureKeyVault"
uri = "https://samplevault.vault.azure.net/secrets/credentials"
}
}
friendly_name = "harshitbi2"
object_type = "BackupInstance"
policy_info = {
policy_id = "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"
policy_parameters = {
data_store_parameters_list = [{
data_store_type = "OperationalStore"
object_type = "AzureOperationalStoreParameters"
resource_group_id = "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest"
}]
}
}
resource_guard_operation_requests = ["/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default"]
validation_type = "ShallowValidation"
}
resource_group_name = "000pikumar"
tags = {
"key1" = "val1"
}
vault_name = "PratikPrivatePreviewVault1"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupInstance;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs;
import com.pulumi.azurenative.dataprotection.inputs.SecretStoreBasedAuthCredentialsArgs;
import com.pulumi.azurenative.dataprotection.inputs.SecretStoreResourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyInfoArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyParametersArgs;
import com.pulumi.azurenative.dataprotection.inputs.AzureOperationalStoreParametersArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 backupInstance = new BackupInstance("backupInstance", BackupInstanceArgs.builder()
.backupInstanceName("testInstance1")
.properties(com.pulumi.azurenative.dataprotection.inputs.BackupInstanceArgs.builder()
.dataSourceInfo(DatasourceArgs.builder()
.datasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.objectType("Datasource")
.resourceID("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.resourceLocation("")
.resourceName("testdb")
.resourceType("Microsoft.DBforPostgreSQL/servers/databases")
.resourceUri("")
.build())
.dataSourceSetInfo(DatasourceSetArgs.builder()
.datasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.objectType("DatasourceSet")
.resourceID("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
.resourceLocation("")
.resourceName("viveksipgtest")
.resourceType("Microsoft.DBforPostgreSQL/servers")
.resourceUri("")
.build())
.datasourceAuthCredentials(SecretStoreBasedAuthCredentialsArgs.builder()
.secretStoreResource(SecretStoreResourceArgs.builder()
.secretStoreType("AzureKeyVault")
.uri("https://samplevault.vault.azure.net/secrets/credentials")
.build())
.build())
.friendlyName("harshitbi2")
.objectType("BackupInstance")
.policyInfo(PolicyInfoArgs.builder()
.policyId("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1")
.policyParameters(PolicyParametersArgs.builder()
.dataStoreParametersList(AzureOperationalStoreParametersArgs.builder()
.dataStoreType("OperationalStore")
.resourceGroupId("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest")
.build())
.build())
.build())
.resourceGuardOperationRequests("/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default")
.validationType("ShallowValidation")
.build())
.resourceGroupName("000pikumar")
.tags(Map.of("key1", "val1"))
.vaultName("PratikPrivatePreviewVault1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const backupInstance = new azure_native.dataprotection.BackupInstance("backupInstance", {
backupInstanceName: "testInstance1",
properties: {
dataSourceInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "Datasource",
resourceID: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
resourceLocation: "",
resourceName: "testdb",
resourceType: "Microsoft.DBforPostgreSQL/servers/databases",
resourceUri: "",
},
dataSourceSetInfo: {
datasourceType: "Microsoft.DBforPostgreSQL/servers/databases",
objectType: "DatasourceSet",
resourceID: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
resourceLocation: "",
resourceName: "viveksipgtest",
resourceType: "Microsoft.DBforPostgreSQL/servers",
resourceUri: "",
},
datasourceAuthCredentials: {
objectType: "SecretStoreBasedAuthCredentials",
secretStoreResource: {
secretStoreType: azure_native.dataprotection.SecretStoreType.AzureKeyVault,
uri: "https://samplevault.vault.azure.net/secrets/credentials",
},
},
friendlyName: "harshitbi2",
objectType: "BackupInstance",
policyInfo: {
policyId: "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
policyParameters: {
dataStoreParametersList: [{
dataStoreType: azure_native.dataprotection.DataStoreTypes.OperationalStore,
objectType: "AzureOperationalStoreParameters",
resourceGroupId: "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
}],
},
},
resourceGuardOperationRequests: ["/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default"],
validationType: azure_native.dataprotection.ValidationType.ShallowValidation,
},
resourceGroupName: "000pikumar",
tags: {
key1: "val1",
},
vaultName: "PratikPrivatePreviewVault1",
});
import pulumi
import pulumi_azure_native as azure_native
backup_instance = azure_native.dataprotection.BackupInstance("backupInstance",
backup_instance_name="testInstance1",
properties={
"data_source_info": {
"datasource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"object_type": "Datasource",
"resource_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb",
"resource_location": "",
"resource_name": "testdb",
"resource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"resource_uri": "",
},
"data_source_set_info": {
"datasource_type": "Microsoft.DBforPostgreSQL/servers/databases",
"object_type": "DatasourceSet",
"resource_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest",
"resource_location": "",
"resource_name": "viveksipgtest",
"resource_type": "Microsoft.DBforPostgreSQL/servers",
"resource_uri": "",
},
"datasource_auth_credentials": {
"object_type": "SecretStoreBasedAuthCredentials",
"secret_store_resource": {
"secret_store_type": azure_native.dataprotection.SecretStoreType.AZURE_KEY_VAULT,
"uri": "https://samplevault.vault.azure.net/secrets/credentials",
},
},
"friendly_name": "harshitbi2",
"object_type": "BackupInstance",
"policy_info": {
"policy_id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1",
"policy_parameters": {
"data_store_parameters_list": [{
"data_store_type": azure_native.dataprotection.DataStoreTypes.OPERATIONAL_STORE,
"object_type": "AzureOperationalStoreParameters",
"resource_group_id": "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest",
}],
},
},
"resource_guard_operation_requests": ["/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default"],
"validation_type": azure_native.dataprotection.ValidationType.SHALLOW_VALIDATION,
},
resource_group_name="000pikumar",
tags={
"key1": "val1",
},
vault_name="PratikPrivatePreviewVault1")
resources:
backupInstance:
type: azure-native:dataprotection:BackupInstance
properties:
backupInstanceName: testInstance1
properties:
dataSourceInfo:
datasourceType: Microsoft.DBforPostgreSQL/servers/databases
objectType: Datasource
resourceID: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb
resourceLocation: ""
resourceName: testdb
resourceType: Microsoft.DBforPostgreSQL/servers/databases
resourceUri: ""
dataSourceSetInfo:
datasourceType: Microsoft.DBforPostgreSQL/servers/databases
objectType: DatasourceSet
resourceID: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest
resourceLocation: ""
resourceName: viveksipgtest
resourceType: Microsoft.DBforPostgreSQL/servers
resourceUri: ""
datasourceAuthCredentials:
objectType: SecretStoreBasedAuthCredentials
secretStoreResource:
secretStoreType: AzureKeyVault
uri: https://samplevault.vault.azure.net/secrets/credentials
friendlyName: harshitbi2
objectType: BackupInstance
policyInfo:
policyId: /subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/Backupvaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1
policyParameters:
dataStoreParametersList:
- dataStoreType: OperationalStore
objectType: AzureOperationalStoreParameters
resourceGroupId: /subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest
resourceGuardOperationRequests:
- /subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/dppModifyPolicy/default
validationType: ShallowValidation
resourceGroupName: 000pikumar
tags:
key1: val1
vaultName: PratikPrivatePreviewVault1
Create BackupInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def BackupInstance(resource_name: str,
args: BackupInstanceInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
vault_name: Optional[str] = None,
backup_instance_name: Optional[str] = None,
properties: Optional[BackupInstanceArgs] = None,
tags: Optional[Mapping[str, str]] = None)
type: azure-native:dataprotection:BackupInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_dataprotection_backup_instance" "name" {
# resource properties
}
Parameters
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
BackupInstanceArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
BackupInstanceArgs
- 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 backupInstanceResource = new AzureNative.DataProtection.BackupInstance("backupInstanceResource", new()
{
ResourceGroupName = "string",
VaultName = "string",
BackupInstanceName = "string",
Properties = new AzureNative.DataProtection.Inputs.BackupInstanceArgs
{
DataSourceInfo = new AzureNative.DataProtection.Inputs.DatasourceArgs
{
ResourceID = "string",
DatasourceType = "string",
ObjectType = "string",
ResourceLocation = "string",
ResourceName = "string",
ResourceProperties = new AzureNative.DataProtection.Inputs.DefaultResourcePropertiesArgs
{
ObjectType = "DefaultResourceProperties",
},
ResourceType = "string",
ResourceUri = "string",
},
ObjectType = "string",
PolicyInfo = new AzureNative.DataProtection.Inputs.PolicyInfoArgs
{
PolicyId = "string",
PolicyParameters = new AzureNative.DataProtection.Inputs.PolicyParametersArgs
{
BackupDatasourceParametersList = new[]
{
new AzureNative.DataProtection.Inputs.BlobBackupDatasourceParametersArgs
{
ContainersList = new[]
{
"string",
},
ObjectType = "BlobBackupDatasourceParameters",
},
},
DataStoreParametersList =
{
new AzureNative.DataProtection.Inputs.AzureOperationalStoreParametersArgs
{
DataStoreType = "string",
ObjectType = "AzureOperationalStoreParameters",
ResourceGroupId = "string",
},
},
},
},
DataSourceSetInfo = new AzureNative.DataProtection.Inputs.DatasourceSetArgs
{
ResourceID = "string",
DatasourceType = "string",
ObjectType = "string",
ResourceLocation = "string",
ResourceName = "string",
ResourceProperties = new AzureNative.DataProtection.Inputs.DefaultResourcePropertiesArgs
{
ObjectType = "DefaultResourceProperties",
},
ResourceType = "string",
ResourceUri = "string",
},
DatasourceAuthCredentials = new AzureNative.DataProtection.Inputs.SecretStoreBasedAuthCredentialsArgs
{
ObjectType = "SecretStoreBasedAuthCredentials",
SecretStoreResource = new AzureNative.DataProtection.Inputs.SecretStoreResourceArgs
{
SecretStoreType = "string",
Uri = "string",
Value = "string",
},
},
FriendlyName = "string",
IdentityDetails = new AzureNative.DataProtection.Inputs.IdentityDetailsArgs
{
UseSystemAssignedIdentity = false,
UserAssignedIdentityArmUrl = "string",
},
ResourceGuardOperationRequests = new[]
{
"string",
},
ValidationType = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := dataprotection.NewBackupInstance(ctx, "backupInstanceResource", &dataprotection.BackupInstanceArgs{
ResourceGroupName: pulumi.String("string"),
VaultName: pulumi.String("string"),
BackupInstanceName: pulumi.String("string"),
Properties: &dataprotection.BackupInstanceTypeArgs{
DataSourceInfo: &dataprotection.DatasourceArgs{
ResourceID: pulumi.String("string"),
DatasourceType: pulumi.String("string"),
ObjectType: pulumi.String("string"),
ResourceLocation: pulumi.String("string"),
ResourceName: pulumi.String("string"),
ResourceProperties: &dataprotection.DefaultResourcePropertiesArgs{
ObjectType: pulumi.String("DefaultResourceProperties"),
},
ResourceType: pulumi.String("string"),
ResourceUri: pulumi.String("string"),
},
ObjectType: pulumi.String("string"),
PolicyInfo: &dataprotection.PolicyInfoArgs{
PolicyId: pulumi.String("string"),
PolicyParameters: &dataprotection.PolicyParametersArgs{
BackupDatasourceParametersList: pulumi.Array{
&dataprotection.BlobBackupDatasourceParametersArgs{
ContainersList: pulumi.StringArray{
pulumi.String("string"),
},
ObjectType: pulumi.String("BlobBackupDatasourceParameters"),
},
},
DataStoreParametersList: dataprotection.AzureOperationalStoreParametersArray{
&dataprotection.AzureOperationalStoreParametersArgs{
DataStoreType: pulumi.String("string"),
ObjectType: pulumi.String("AzureOperationalStoreParameters"),
ResourceGroupId: pulumi.String("string"),
},
},
},
},
DataSourceSetInfo: &dataprotection.DatasourceSetArgs{
ResourceID: pulumi.String("string"),
DatasourceType: pulumi.String("string"),
ObjectType: pulumi.String("string"),
ResourceLocation: pulumi.String("string"),
ResourceName: pulumi.String("string"),
ResourceProperties: &dataprotection.DefaultResourcePropertiesArgs{
ObjectType: pulumi.String("DefaultResourceProperties"),
},
ResourceType: pulumi.String("string"),
ResourceUri: pulumi.String("string"),
},
DatasourceAuthCredentials: &dataprotection.SecretStoreBasedAuthCredentialsArgs{
ObjectType: pulumi.String("SecretStoreBasedAuthCredentials"),
SecretStoreResource: &dataprotection.SecretStoreResourceArgs{
SecretStoreType: pulumi.String("string"),
Uri: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
FriendlyName: pulumi.String("string"),
IdentityDetails: &dataprotection.IdentityDetailsArgs{
UseSystemAssignedIdentity: pulumi.Bool(false),
UserAssignedIdentityArmUrl: pulumi.String("string"),
},
ResourceGuardOperationRequests: pulumi.StringArray{
pulumi.String("string"),
},
ValidationType: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "azure-native_dataprotection_backup_instance" "backupInstanceResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
vault_name = "string"
backup_instance_name = "string"
properties = {
data_source_info = {
resource_id = "string"
datasource_type = "string"
object_type = "string"
resource_location = "string"
resource_name = "string"
resource_properties = {
object_type = "DefaultResourceProperties"
}
resource_type = "string"
resource_uri = "string"
}
object_type = "string"
policy_info = {
policy_id = "string"
policy_parameters = {
backup_datasource_parameters_list = [{
containers_list = ["string"]
object_type = "BlobBackupDatasourceParameters"
}]
data_store_parameters_list = [{
data_store_type = "string"
object_type = "AzureOperationalStoreParameters"
resource_group_id = "string"
}]
}
}
data_source_set_info = {
resource_id = "string"
datasource_type = "string"
object_type = "string"
resource_location = "string"
resource_name = "string"
resource_properties = {
object_type = "DefaultResourceProperties"
}
resource_type = "string"
resource_uri = "string"
}
datasource_auth_credentials = {
object_type = "SecretStoreBasedAuthCredentials"
secret_store_resource = {
secret_store_type = "string"
uri = "string"
value = "string"
}
}
friendly_name = "string"
identity_details = {
use_system_assigned_identity = false
user_assigned_identity_arm_url = "string"
}
resource_guard_operation_requests = ["string"]
validation_type = "string"
}
tags = {
"string" = "string"
}
}
var backupInstanceResource = new BackupInstance("backupInstanceResource", BackupInstanceArgs.builder()
.resourceGroupName("string")
.vaultName("string")
.backupInstanceName("string")
.properties(com.pulumi.azurenative.dataprotection.inputs.BackupInstanceArgs.builder()
.dataSourceInfo(DatasourceArgs.builder()
.resourceID("string")
.datasourceType("string")
.objectType("string")
.resourceLocation("string")
.resourceName("string")
.resourceProperties(DefaultResourcePropertiesArgs.builder()
.build())
.resourceType("string")
.resourceUri("string")
.build())
.objectType("string")
.policyInfo(PolicyInfoArgs.builder()
.policyId("string")
.policyParameters(PolicyParametersArgs.builder()
.backupDatasourceParametersList(BlobBackupDatasourceParametersArgs.builder()
.containersList("string")
.build())
.dataStoreParametersList(AzureOperationalStoreParametersArgs.builder()
.dataStoreType("string")
.resourceGroupId("string")
.build())
.build())
.build())
.dataSourceSetInfo(DatasourceSetArgs.builder()
.resourceID("string")
.datasourceType("string")
.objectType("string")
.resourceLocation("string")
.resourceName("string")
.resourceProperties(DefaultResourcePropertiesArgs.builder()
.build())
.resourceType("string")
.resourceUri("string")
.build())
.datasourceAuthCredentials(SecretStoreBasedAuthCredentialsArgs.builder()
.secretStoreResource(SecretStoreResourceArgs.builder()
.secretStoreType("string")
.uri("string")
.value("string")
.build())
.build())
.friendlyName("string")
.identityDetails(IdentityDetailsArgs.builder()
.useSystemAssignedIdentity(false)
.userAssignedIdentityArmUrl("string")
.build())
.resourceGuardOperationRequests("string")
.validationType("string")
.build())
.tags(Map.of("string", "string"))
.build());
backup_instance_resource = azure_native.dataprotection.BackupInstance("backupInstanceResource",
resource_group_name="string",
vault_name="string",
backup_instance_name="string",
properties={
"data_source_info": {
"resource_id": "string",
"datasource_type": "string",
"object_type": "string",
"resource_location": "string",
"resource_name": "string",
"resource_properties": {
"object_type": "DefaultResourceProperties",
},
"resource_type": "string",
"resource_uri": "string",
},
"object_type": "string",
"policy_info": {
"policy_id": "string",
"policy_parameters": {
"backup_datasource_parameters_list": [{
"containers_list": ["string"],
"object_type": "BlobBackupDatasourceParameters",
}],
"data_store_parameters_list": [{
"data_store_type": "string",
"object_type": "AzureOperationalStoreParameters",
"resource_group_id": "string",
}],
},
},
"data_source_set_info": {
"resource_id": "string",
"datasource_type": "string",
"object_type": "string",
"resource_location": "string",
"resource_name": "string",
"resource_properties": {
"object_type": "DefaultResourceProperties",
},
"resource_type": "string",
"resource_uri": "string",
},
"datasource_auth_credentials": {
"object_type": "SecretStoreBasedAuthCredentials",
"secret_store_resource": {
"secret_store_type": "string",
"uri": "string",
"value": "string",
},
},
"friendly_name": "string",
"identity_details": {
"use_system_assigned_identity": False,
"user_assigned_identity_arm_url": "string",
},
"resource_guard_operation_requests": ["string"],
"validation_type": "string",
},
tags={
"string": "string",
})
const backupInstanceResource = new azure_native.dataprotection.BackupInstance("backupInstanceResource", {
resourceGroupName: "string",
vaultName: "string",
backupInstanceName: "string",
properties: {
dataSourceInfo: {
resourceID: "string",
datasourceType: "string",
objectType: "string",
resourceLocation: "string",
resourceName: "string",
resourceProperties: {
objectType: "DefaultResourceProperties",
},
resourceType: "string",
resourceUri: "string",
},
objectType: "string",
policyInfo: {
policyId: "string",
policyParameters: {
backupDatasourceParametersList: [{
containersList: ["string"],
objectType: "BlobBackupDatasourceParameters",
}],
dataStoreParametersList: [{
dataStoreType: "string",
objectType: "AzureOperationalStoreParameters",
resourceGroupId: "string",
}],
},
},
dataSourceSetInfo: {
resourceID: "string",
datasourceType: "string",
objectType: "string",
resourceLocation: "string",
resourceName: "string",
resourceProperties: {
objectType: "DefaultResourceProperties",
},
resourceType: "string",
resourceUri: "string",
},
datasourceAuthCredentials: {
objectType: "SecretStoreBasedAuthCredentials",
secretStoreResource: {
secretStoreType: "string",
uri: "string",
value: "string",
},
},
friendlyName: "string",
identityDetails: {
useSystemAssignedIdentity: false,
userAssignedIdentityArmUrl: "string",
},
resourceGuardOperationRequests: ["string"],
validationType: "string",
},
tags: {
string: "string",
},
});
type: azure-native:dataprotection:BackupInstance
properties:
backupInstanceName: string
properties:
dataSourceInfo:
datasourceType: string
objectType: string
resourceID: string
resourceLocation: string
resourceName: string
resourceProperties:
objectType: DefaultResourceProperties
resourceType: string
resourceUri: string
dataSourceSetInfo:
datasourceType: string
objectType: string
resourceID: string
resourceLocation: string
resourceName: string
resourceProperties:
objectType: DefaultResourceProperties
resourceType: string
resourceUri: string
datasourceAuthCredentials:
objectType: SecretStoreBasedAuthCredentials
secretStoreResource:
secretStoreType: string
uri: string
value: string
friendlyName: string
identityDetails:
useSystemAssignedIdentity: false
userAssignedIdentityArmUrl: string
objectType: string
policyInfo:
policyId: string
policyParameters:
backupDatasourceParametersList:
- containersList:
- string
objectType: BlobBackupDatasourceParameters
dataStoreParametersList:
- dataStoreType: string
objectType: AzureOperationalStoreParameters
resourceGroupId: string
resourceGuardOperationRequests:
- string
validationType: string
resourceGroupName: string
tags:
string: string
vaultName: string
BackupInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BackupInstance resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupInstance resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- Proxy Resource name associated with the resource.
- SystemData
SystemDataResponse
- Metadata pertaining to creation and last modification of the resource.
- Type
string
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Proxy Resource name associated with the resource.
- system_data
object
- Metadata pertaining to creation and last modification of the resource.
- type
string
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Proxy Resource name associated with the resource.
- systemData
SystemDataResponse
- Metadata pertaining to creation and last modification of the resource.
- type
String
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Proxy Resource name associated with the resource.
- systemData
SystemDataResponse
- Metadata pertaining to creation and last modification of the resource.
- type
string
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- Proxy Resource name associated with the resource.
- system_data
SystemDataResponse
- Metadata pertaining to creation and last modification of the resource.
- type
str
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Proxy Resource name associated with the resource.
- systemData
Property Map
- Metadata pertaining to creation and last modification of the resource.
- type
String
- Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
Supporting Types
AKSVolumeTypes, AKSVolumeTypesArgs
| Name | Value |
|---|
| AzureDisk | AzureDisk |
| AzureFileShareSMB | AzureFileShareSMB |
| Name | Value |
|---|
| AKSVolumeTypesAzureDisk | AzureDisk |
| AKSVolumeTypesAzureFileShareSMB | AzureFileShareSMB |
| Value |
|---|
AzureDisk |
AzureFileShareSMB |
| Name | Value |
|---|
| AzureDisk | AzureDisk |
| AzureFileShareSMB | AzureFileShareSMB |
| Name | Value |
|---|
| AzureDisk | AzureDisk |
| AzureFileShareSMB | AzureFileShareSMB |
| Name | Value |
|---|
| AZURE_DISK | AzureDisk |
| AZURE_FILE_SHARE_SMB | AzureFileShareSMB |
| Value |
|---|
AzureDisk |
AzureFileShareSMB |
AzureOperationalStoreParameters, AzureOperationalStoreParametersArgs
Parameters for Operational-Tier DataStoreAzureOperationalStoreParametersResponse, AzureOperationalStoreParametersResponseArgs
Parameters for Operational-Tier DataStoreBackupInstance, BackupInstanceArgs
Backup InstanceBackupInstanceResponse, BackupInstanceResponseArgs
Backup InstanceBlobBackupDatasourceParameters, BlobBackupDatasourceParametersArgs
Parameters to be used during configuration of backup of blobs- ContainersList
List<string>
- List of containers to be backed up during configuration of backup of blobs
- ContainersList
[]string
- List of containers to be backed up during configuration of backup of blobs
- containers_list
list(string)
- List of containers to be backed up during configuration of backup of blobs
- containersList
List<String>
- List of containers to be backed up during configuration of backup of blobs
- containersList
string[]
- List of containers to be backed up during configuration of backup of blobs
- containers_list
Sequence[str]
- List of containers to be backed up during configuration of backup of blobs
- containersList
List<String>
- List of containers to be backed up during configuration of backup of blobs
BlobBackupDatasourceParametersResponse, BlobBackupDatasourceParametersResponseArgs
Parameters to be used during configuration of backup of blobs- ContainersList
List<string>
- List of containers to be backed up during configuration of backup of blobs
- ContainersList
[]string
- List of containers to be backed up during configuration of backup of blobs
- containers_list
list(string)
- List of containers to be backed up during configuration of backup of blobs
- containersList
List<String>
- List of containers to be backed up during configuration of backup of blobs
- containersList
string[]
- List of containers to be backed up during configuration of backup of blobs
- containers_list
Sequence[str]
- List of containers to be backed up during configuration of backup of blobs
- containersList
List<String>
- List of containers to be backed up during configuration of backup of blobs
DataStoreTypes, DataStoreTypesArgs
| Name | Value |
|---|
| OperationalStore | OperationalStore |
| VaultStore | VaultStore |
| ArchiveStore | ArchiveStore |
| Name | Value |
|---|
| DataStoreTypesOperationalStore | OperationalStore |
| DataStoreTypesVaultStore | VaultStore |
| DataStoreTypesArchiveStore | ArchiveStore |
| Value |
|---|
OperationalStore |
VaultStore |
ArchiveStore |
| Name | Value |
|---|
| OperationalStore | OperationalStore |
| VaultStore | VaultStore |
| ArchiveStore | ArchiveStore |
| Name | Value |
|---|
| OperationalStore | OperationalStore |
| VaultStore | VaultStore |
| ArchiveStore | ArchiveStore |
| Name | Value |
|---|
| OPERATIONAL_STORE | OperationalStore |
| VAULT_STORE | VaultStore |
| ARCHIVE_STORE | ArchiveStore |
| Value |
|---|
OperationalStore |
VaultStore |
ArchiveStore |
Datasource, DatasourceArgs
Datasource to be backed up- resource_id
string
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasource_type
string
- DatasourceType of the resource.
- object_type
string
- Type of Datasource object, used to initialize the right inherited type
- resource_location
string
- Location of datasource.
- resource_name
string
- Unique identifier of the resource in the context of parent.
- resource_properties
object
- Properties specific to data source
- resource_type
string
- Resource Type of Datasource.
- resource_uri
string
- Uri of the resource.
- resourceID
String
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasourceType
String
- DatasourceType of the resource.
- objectType
String
- Type of Datasource object, used to initialize the right inherited type
- resourceLocation
String
- Location of datasource.
- resourceName
String
- Unique identifier of the resource in the context of parent.
- resourceProperties
Property Map
- Properties specific to data source
- resourceType
String
- Resource Type of Datasource.
- resourceUri
String
- Uri of the resource.
DatasourceResponse, DatasourceResponseArgs
Datasource to be backed up- resource_id
string
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasource_type
string
- DatasourceType of the resource.
- object_type
string
- Type of Datasource object, used to initialize the right inherited type
- resource_location
string
- Location of datasource.
- resource_name
string
- Unique identifier of the resource in the context of parent.
- resource_properties
object
- Properties specific to data source
- resource_type
string
- Resource Type of Datasource.
- resource_uri
string
- Uri of the resource.
- resourceID
String
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasourceType
String
- DatasourceType of the resource.
- objectType
String
- Type of Datasource object, used to initialize the right inherited type
- resourceLocation
String
- Location of datasource.
- resourceName
String
- Unique identifier of the resource in the context of parent.
- resourceProperties
Property Map
- Properties specific to data source
- resourceType
String
- Resource Type of Datasource.
- resourceUri
String
- Uri of the resource.
DatasourceSet, DatasourceSetArgs
DatasourceSet details of datasource to be backed up- resource_id
string
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasource_type
string
- DatasourceType of the resource.
- object_type
string
- Type of Datasource object, used to initialize the right inherited type
- resource_location
string
- Location of datasource.
- resource_name
string
- Unique identifier of the resource in the context of parent.
- resource_properties
object
- Properties specific to data source set
- resource_type
string
- Resource Type of Datasource.
- resource_uri
string
- Uri of the resource.
- resourceID
String
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasourceType
String
- DatasourceType of the resource.
- objectType
String
- Type of Datasource object, used to initialize the right inherited type
- resourceLocation
String
- Location of datasource.
- resourceName
String
- Unique identifier of the resource in the context of parent.
- resourceProperties
Property Map
- Properties specific to data source set
- resourceType
String
- Resource Type of Datasource.
- resourceUri
String
- Uri of the resource.
DatasourceSetResponse, DatasourceSetResponseArgs
DatasourceSet details of datasource to be backed up- resource_id
string
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasource_type
string
- DatasourceType of the resource.
- object_type
string
- Type of Datasource object, used to initialize the right inherited type
- resource_location
string
- Location of datasource.
- resource_name
string
- Unique identifier of the resource in the context of parent.
- resource_properties
object
- Properties specific to data source set
- resource_type
string
- Resource Type of Datasource.
- resource_uri
string
- Uri of the resource.
- resourceID
String
- Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
- datasourceType
String
- DatasourceType of the resource.
- objectType
String
- Type of Datasource object, used to initialize the right inherited type
- resourceLocation
String
- Location of datasource.
- resourceName
String
- Unique identifier of the resource in the context of parent.
- resourceProperties
Property Map
- Properties specific to data source set
- resourceType
String
- Resource Type of Datasource.
- resourceUri
String
- Uri of the resource.
DefaultResourceProperties, DefaultResourcePropertiesArgs
Default source propertiesDefaultResourcePropertiesResponse, DefaultResourcePropertiesResponseArgs
Default source propertiesIdentityDetails, IdentityDetailsArgs
IdentityDetailsResponse, IdentityDetailsResponseArgs
InnerErrorResponse, InnerErrorResponseArgs
Inner ErrorKubernetesClusterBackupDatasourceParameters, KubernetesClusterBackupDatasourceParametersArgs
Parameters for Kubernetes Cluster Backup Datasource- IncludeClusterScopeResources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- SnapshotVolumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- BackupHookReferences
List<Pulumi.AzureNative.DataProtection.Inputs.NamespacedNameResource>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- ExcludedNamespaces
List<string>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- ExcludedResourceTypes
List<string>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- IncludedNamespaces
List<string>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- IncludedResourceTypes
List<string>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- IncludedVolumeTypes
List<Union<string, Pulumi.AzureNative.DataProtection.AKSVolumeTypes>>
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- LabelSelectors
List<string>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- IncludeClusterScopeResources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- SnapshotVolumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- BackupHookReferences
[]NamespacedNameResource
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- ExcludedNamespaces
[]string
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- ExcludedResourceTypes
[]string
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- IncludedNamespaces
[]string
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- IncludedResourceTypes
[]string
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- IncludedVolumeTypes
[]string
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- LabelSelectors
[]string
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- include_cluster_scope_resources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshot_volumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backup_hook_references
list(object)
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excluded_namespaces
list(string)
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excluded_resource_types
list(string)
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- included_namespaces
list(string)
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- included_resource_types
list(string)
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- included_volume_types
list(string | "AzureDisk" | "AzureFileShareSMB")
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- label_selectors
list(string)
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
Boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
Boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
List<NamespacedNameResource>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
List<String>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
List<String>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
List<String>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
List<String>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
List<Either<String,AKSVolumeTypes>>
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
List<String>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
NamespacedNameResource[]
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
string[]
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
string[]
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
string[]
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
string[]
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
(string | AKSVolumeTypes)[]
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
string[]
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- include_cluster_scope_resources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshot_volumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backup_hook_references
Sequence[NamespacedNameResource]
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excluded_namespaces
Sequence[str]
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excluded_resource_types
Sequence[str]
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- included_namespaces
Sequence[str]
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- included_resource_types
Sequence[str]
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- included_volume_types
Sequence[Union[str, AKSVolumeTypes]]
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- label_selectors
Sequence[str]
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
Boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
Boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
List<Property Map>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
List<String>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
List<String>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
List<String>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
List<String>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
List<String | "AzureDisk" | "AzureFileShareSMB">
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
List<String>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
KubernetesClusterBackupDatasourceParametersResponse, KubernetesClusterBackupDatasourceParametersResponseArgs
Parameters for Kubernetes Cluster Backup Datasource- IncludeClusterScopeResources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- SnapshotVolumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- BackupHookReferences
List<Pulumi.AzureNative.DataProtection.Inputs.NamespacedNameResourceResponse>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- ExcludedNamespaces
List<string>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- ExcludedResourceTypes
List<string>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- IncludedNamespaces
List<string>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- IncludedResourceTypes
List<string>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- IncludedVolumeTypes
List<string>
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- LabelSelectors
List<string>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- IncludeClusterScopeResources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- SnapshotVolumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- BackupHookReferences
[]NamespacedNameResourceResponse
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- ExcludedNamespaces
[]string
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- ExcludedResourceTypes
[]string
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- IncludedNamespaces
[]string
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- IncludedResourceTypes
[]string
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- IncludedVolumeTypes
[]string
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- LabelSelectors
[]string
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- include_cluster_scope_resources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshot_volumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backup_hook_references
list(object)
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excluded_namespaces
list(string)
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excluded_resource_types
list(string)
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- included_namespaces
list(string)
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- included_resource_types
list(string)
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- included_volume_types
list(string)
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- label_selectors
list(string)
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
Boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
Boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
List<NamespacedNameResourceResponse>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
List<String>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
List<String>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
List<String>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
List<String>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
List<String>
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
List<String>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
NamespacedNameResourceResponse[]
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
string[]
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
string[]
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
string[]
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
string[]
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
string[]
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
string[]
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- include_cluster_scope_resources
bool
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshot_volumes
bool
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backup_hook_references
Sequence[NamespacedNameResourceResponse]
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excluded_namespaces
Sequence[str]
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excluded_resource_types
Sequence[str]
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- included_namespaces
Sequence[str]
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- included_resource_types
Sequence[str]
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- included_volume_types
Sequence[str]
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- label_selectors
Sequence[str]
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
- includeClusterScopeResources
Boolean
- Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during backup.
- snapshotVolumes
Boolean
- Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup.
- backupHookReferences
List<Property Map>
- Gets or sets the backup hook references. This property sets the hook reference to be executed during backup.
- excludedNamespaces
List<String>
- Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup.
- excludedResourceTypes
List<String>
- Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup.
- includedNamespaces
List<String>
- Gets or sets the include namespaces property. This property sets the namespaces to be included during backup.
- includedResourceTypes
List<String>
- Gets or sets the include resource types property. This property sets the resource types to be included during backup.
- includedVolumeTypes
List<String>
- Gets or sets the include volume types property. This property sets the volume types to be included during backup.
- labelSelectors
List<String>
- Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during backup.
NamespacedNameResource, NamespacedNameResourceArgs
Class to refer resources which contains namespace and name- Name
string
- Name of the resource
- Namespace
string
- Namespace in which the resource exists
- Name
string
- Name of the resource
- Namespace
string
- Namespace in which the resource exists
- name
string
- Name of the resource
- namespace
string
- Namespace in which the resource exists
- name
String
- Name of the resource
- namespace
String
- Namespace in which the resource exists
- name
string
- Name of the resource
- namespace
string
- Namespace in which the resource exists
- name
str
- Name of the resource
- namespace
str
- Namespace in which the resource exists
- name
String
- Name of the resource
- namespace
String
- Namespace in which the resource exists
NamespacedNameResourceResponse, NamespacedNameResourceResponseArgs
Class to refer resources which contains namespace and name- Name
string
- Name of the resource
- Namespace
string
- Namespace in which the resource exists
- Name
string
- Name of the resource
- Namespace
string
- Namespace in which the resource exists
- name
string
- Name of the resource
- namespace
string
- Namespace in which the resource exists
- name
String
- Name of the resource
- namespace
String
- Namespace in which the resource exists
- name
string
- Name of the resource
- namespace
string
- Namespace in which the resource exists
- name
str
- Name of the resource
- namespace
str
- Namespace in which the resource exists
- name
String
- Name of the resource
- namespace
String
- Namespace in which the resource exists
PolicyInfo, PolicyInfoArgs
Policy Info in backupInstancePolicyInfoResponse, PolicyInfoResponseArgs
Policy Info in backupInstancePolicyParameters, PolicyParametersArgs
Parameters in PolicyPolicyParametersResponse, PolicyParametersResponseArgs
Parameters in PolicyProtectionStatusDetailsResponse, ProtectionStatusDetailsResponseArgs
Protection status details- error_details
object
- Specifies the protection status error of the resource
- status
string
- Specifies the protection status of the resource
SecretStoreBasedAuthCredentials, SecretStoreBasedAuthCredentialsArgs
Secret store based authentication credentials.SecretStoreBasedAuthCredentialsResponse, SecretStoreBasedAuthCredentialsResponseArgs
Secret store based authentication credentials.SecretStoreResource, SecretStoreResourceArgs
Class representing a secret store resource.SecretStoreResourceResponse, SecretStoreResourceResponseArgs
Class representing a secret store resource.- SecretStoreType
string
- Gets or sets the type of secret store
- Uri
string
- Uri to get to the resource
- Value
string
- Gets or sets value stored in secret store resource
- SecretStoreType
string
- Gets or sets the type of secret store
- Uri
string
- Uri to get to the resource
- Value
string
- Gets or sets value stored in secret store resource
- secret_store_type
string
- Gets or sets the type of secret store
- uri
string
- Uri to get to the resource
- value
string
- Gets or sets value stored in secret store resource
- secretStoreType
String
- Gets or sets the type of secret store
- uri
String
- Uri to get to the resource
- value
String
- Gets or sets value stored in secret store resource
- secretStoreType
string
- Gets or sets the type of secret store
- uri
string
- Uri to get to the resource
- value
string
- Gets or sets value stored in secret store resource
- secret_store_type
str
- Gets or sets the type of secret store
- uri
str
- Uri to get to the resource
- value
str
- Gets or sets value stored in secret store resource
- secretStoreType
String
- Gets or sets the type of secret store
- uri
String
- Uri to get to the resource
- value
String
- Gets or sets value stored in secret store resource
SecretStoreType, SecretStoreTypeArgs
| Name | Value |
|---|
| Invalid | Invalid |
| AzureKeyVault | AzureKeyVault |
| Name | Value |
|---|
| SecretStoreTypeInvalid | Invalid |
| SecretStoreTypeAzureKeyVault | AzureKeyVault |
| Value |
|---|
Invalid |
AzureKeyVault |
| Name | Value |
|---|
| Invalid | Invalid |
| AzureKeyVault | AzureKeyVault |
| Name | Value |
|---|
| Invalid | Invalid |
| AzureKeyVault | AzureKeyVault |
| Name | Value |
|---|
| INVALID | Invalid |
| AZURE_KEY_VAULT | AzureKeyVault |
| Value |
|---|
Invalid |
AzureKeyVault |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
UserFacingErrorResponse, UserFacingErrorResponseArgs
Error object used by layers that have access to localized content, and propagate that to userValidationType, ValidationTypeArgs
| Name | Value |
|---|
| ShallowValidation | ShallowValidation |
| DeepValidation | DeepValidation |
| Name | Value |
|---|
| ValidationTypeShallowValidation | ShallowValidation |
| ValidationTypeDeepValidation | DeepValidation |
| Value |
|---|
ShallowValidation |
DeepValidation |
| Name | Value |
|---|
| ShallowValidation | ShallowValidation |
| DeepValidation | DeepValidation |
| Name | Value |
|---|
| ShallowValidation | ShallowValidation |
| DeepValidation | DeepValidation |
| Name | Value |
|---|
| SHALLOW_VALIDATION | ShallowValidation |
| DEEP_VALIDATION | DeepValidation |
| Value |
|---|
ShallowValidation |
DeepValidation |
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dataprotection:BackupInstance harshitbi2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0