Skip to content

Data Source: azurermSiteRecoveryProtectionContainer

Use this data source to access information about an existing site recovery services protection container.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermSiteRecoveryProtectionContainer.DataAzurermSiteRecoveryProtectionContainer(
  this,
  "container",
  {
    name: "primary-container",
    recovery_fabric_name: "primary-fabric",
    recovery_vault_name: "tfex-recovery_vault",
    resource_group_name: "tfex-resource_group",
  }
);

Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the protection container.

  • recoveryVaultName - (Required) The name of the Recovery Services Vault that the protection container is associated witth.

  • resourceGroupName - (Required) The name of the resource group in which the associated protection container resides.

  • recoveryFabricName - (Required) The name of the fabric that contains the protection container.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the protection container.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Recovery Services Vault.