Data Source: azurermNetappSnapshot
Uses this data source to access information about an existing NetApp Snapshot.
NetApp Snapshot Usage
import * as cdktf from "cdktf";
/*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 cdktf.TerraformOutput(this, "netapp_snapshot_id", {
value: "${data.azurerm_netapp_snapshot.example.id}",
});
new azurerm.dataAzurermNetappSnapshot.DataAzurermNetappSnapshot(this, "test", {
account_name: "acctestnetappaccount",
name: "acctestnetappsnapshot",
pool_name: "acctestnetapppool",
resource_group_name: "acctestRG",
volume_name: "acctestnetappvolume",
});
Argument Reference
The following arguments are supported:
-
name
- The name of the NetApp Snapshot. -
accountName
- The name of the NetApp Account where the NetApp Pool exists. -
poolName
- The name of the NetApp Pool where the NetApp Volume exists. -
volumeName
- The name of the NetApp Volume where the NetApp Snapshot exists. -
resourceGroupName
- The Name of the Resource Group where the NetApp Snapshot exists.
Attributes Reference
The following attributes are exported:
location
- The Azure Region where the NetApp Snapshot exists.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the NetApp Snapshot.