azure-native.netapp.getSnapshotPolicy
Explore with Pulumi AI
Get a snapshot Policy Azure REST API version: 2022-11-01.
Other available API versions: 2022-11-01-preview, 2023-05-01, 2023-05-01-preview, 2023-07-01, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview, 2024-05-01, 2024-05-01-preview, 2024-07-01, 2024-07-01-preview, 2024-09-01, 2024-09-01-preview.
Using getSnapshotPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSnapshotPolicy(args: GetSnapshotPolicyArgs, opts?: InvokeOptions): Promise<GetSnapshotPolicyResult>
function getSnapshotPolicyOutput(args: GetSnapshotPolicyOutputArgs, opts?: InvokeOptions): Output<GetSnapshotPolicyResult>def get_snapshot_policy(account_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        snapshot_policy_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSnapshotPolicyResult
def get_snapshot_policy_output(account_name: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        snapshot_policy_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotPolicyResult]func LookupSnapshotPolicy(ctx *Context, args *LookupSnapshotPolicyArgs, opts ...InvokeOption) (*LookupSnapshotPolicyResult, error)
func LookupSnapshotPolicyOutput(ctx *Context, args *LookupSnapshotPolicyOutputArgs, opts ...InvokeOption) LookupSnapshotPolicyResultOutput> Note: This function is named LookupSnapshotPolicy in the Go SDK.
public static class GetSnapshotPolicy 
{
    public static Task<GetSnapshotPolicyResult> InvokeAsync(GetSnapshotPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetSnapshotPolicyResult> Invoke(GetSnapshotPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSnapshotPolicyResult> getSnapshotPolicy(GetSnapshotPolicyArgs args, InvokeOptions options)
public static Output<GetSnapshotPolicyResult> getSnapshotPolicy(GetSnapshotPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:netapp:getSnapshotPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountName string
- The name of the NetApp account
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SnapshotPolicy stringName 
- The name of the snapshot policy
- AccountName string
- The name of the NetApp account
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SnapshotPolicy stringName 
- The name of the snapshot policy
- accountName String
- The name of the NetApp account
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- snapshotPolicy StringName 
- The name of the snapshot policy
- accountName string
- The name of the NetApp account
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- snapshotPolicy stringName 
- The name of the snapshot policy
- account_name str
- The name of the NetApp account
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- snapshot_policy_ strname 
- The name of the snapshot policy
- accountName String
- The name of the NetApp account
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- snapshotPolicy StringName 
- The name of the snapshot policy
getSnapshotPolicy Result
The following output properties are available:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- ProvisioningState string
- Azure lifecycle management
- SystemData Pulumi.Azure Native. Net App. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- DailySchedule Pulumi.Azure Native. Net App. Outputs. Daily Schedule Response 
- Schedule for daily snapshots
- Enabled bool
- The property to decide policy is enabled or not
- HourlySchedule Pulumi.Azure Native. Net App. Outputs. Hourly Schedule Response 
- Schedule for hourly snapshots
- MonthlySchedule Pulumi.Azure Native. Net App. Outputs. Monthly Schedule Response 
- Schedule for monthly snapshots
- Dictionary<string, string>
- Resource tags.
- WeeklySchedule Pulumi.Azure Native. Net App. Outputs. Weekly Schedule Response 
- Schedule for weekly snapshots
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- ProvisioningState string
- Azure lifecycle management
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- DailySchedule DailySchedule Response 
- Schedule for daily snapshots
- Enabled bool
- The property to decide policy is enabled or not
- HourlySchedule HourlySchedule Response 
- Schedule for hourly snapshots
- MonthlySchedule MonthlySchedule Response 
- Schedule for monthly snapshots
- map[string]string
- Resource tags.
- WeeklySchedule WeeklySchedule Response 
- Schedule for weekly snapshots
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioningState String
- Azure lifecycle management
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dailySchedule DailySchedule Response 
- Schedule for daily snapshots
- enabled Boolean
- The property to decide policy is enabled or not
- hourlySchedule HourlySchedule Response 
- Schedule for hourly snapshots
- monthlySchedule MonthlySchedule Response 
- Schedule for monthly snapshots
- Map<String,String>
- Resource tags.
- weeklySchedule WeeklySchedule Response 
- Schedule for weekly snapshots
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- provisioningState string
- Azure lifecycle management
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dailySchedule DailySchedule Response 
- Schedule for daily snapshots
- enabled boolean
- The property to decide policy is enabled or not
- hourlySchedule HourlySchedule Response 
- Schedule for hourly snapshots
- monthlySchedule MonthlySchedule Response 
- Schedule for monthly snapshots
- {[key: string]: string}
- Resource tags.
- weeklySchedule WeeklySchedule Response 
- Schedule for weekly snapshots
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- provisioning_state str
- Azure lifecycle management
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- daily_schedule DailySchedule Response 
- Schedule for daily snapshots
- enabled bool
- The property to decide policy is enabled or not
- hourly_schedule HourlySchedule Response 
- Schedule for hourly snapshots
- monthly_schedule MonthlySchedule Response 
- Schedule for monthly snapshots
- Mapping[str, str]
- Resource tags.
- weekly_schedule WeeklySchedule Response 
- Schedule for weekly snapshots
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioningState String
- Azure lifecycle management
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dailySchedule Property Map
- Schedule for daily snapshots
- enabled Boolean
- The property to decide policy is enabled or not
- hourlySchedule Property Map
- Schedule for hourly snapshots
- monthlySchedule Property Map
- Schedule for monthly snapshots
- Map<String>
- Resource tags.
- weeklySchedule Property Map
- Schedule for weekly snapshots
Supporting Types
DailyScheduleResponse  
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Daily snapshot count to keep
- UsedBytes double
- Resource size in bytes, current storage usage for the volume in bytes
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Daily snapshot count to keep
- UsedBytes float64
- Resource size in bytes, current storage usage for the volume in bytes
- hour Integer
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Integer
- Indicates which minute snapshot should be taken
- snapshotsTo IntegerKeep 
- Daily snapshot count to keep
- usedBytes Double
- Resource size in bytes, current storage usage for the volume in bytes
- hour number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute number
- Indicates which minute snapshot should be taken
- snapshotsTo numberKeep 
- Daily snapshot count to keep
- usedBytes number
- Resource size in bytes, current storage usage for the volume in bytes
- hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- minute int
- Indicates which minute snapshot should be taken
- snapshots_to_ intkeep 
- Daily snapshot count to keep
- used_bytes float
- Resource size in bytes, current storage usage for the volume in bytes
- hour Number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Number
- Indicates which minute snapshot should be taken
- snapshotsTo NumberKeep 
- Daily snapshot count to keep
- usedBytes Number
- Resource size in bytes, current storage usage for the volume in bytes
HourlyScheduleResponse  
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Hourly snapshot count to keep
- UsedBytes double
- Resource size in bytes, current storage usage for the volume in bytes
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Hourly snapshot count to keep
- UsedBytes float64
- Resource size in bytes, current storage usage for the volume in bytes
- minute Integer
- Indicates which minute snapshot should be taken
- snapshotsTo IntegerKeep 
- Hourly snapshot count to keep
- usedBytes Double
- Resource size in bytes, current storage usage for the volume in bytes
- minute number
- Indicates which minute snapshot should be taken
- snapshotsTo numberKeep 
- Hourly snapshot count to keep
- usedBytes number
- Resource size in bytes, current storage usage for the volume in bytes
- minute int
- Indicates which minute snapshot should be taken
- snapshots_to_ intkeep 
- Hourly snapshot count to keep
- used_bytes float
- Resource size in bytes, current storage usage for the volume in bytes
- minute Number
- Indicates which minute snapshot should be taken
- snapshotsTo NumberKeep 
- Hourly snapshot count to keep
- usedBytes Number
- Resource size in bytes, current storage usage for the volume in bytes
MonthlyScheduleResponse  
- DaysOf stringMonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Monthly snapshot count to keep
- UsedBytes double
- Resource size in bytes, current storage usage for the volume in bytes
- DaysOf stringMonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Monthly snapshot count to keep
- UsedBytes float64
- Resource size in bytes, current storage usage for the volume in bytes
- daysOf StringMonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- hour Integer
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Integer
- Indicates which minute snapshot should be taken
- snapshotsTo IntegerKeep 
- Monthly snapshot count to keep
- usedBytes Double
- Resource size in bytes, current storage usage for the volume in bytes
- daysOf stringMonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- hour number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute number
- Indicates which minute snapshot should be taken
- snapshotsTo numberKeep 
- Monthly snapshot count to keep
- usedBytes number
- Resource size in bytes, current storage usage for the volume in bytes
- days_of_ strmonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- minute int
- Indicates which minute snapshot should be taken
- snapshots_to_ intkeep 
- Monthly snapshot count to keep
- used_bytes float
- Resource size in bytes, current storage usage for the volume in bytes
- daysOf StringMonth 
- Indicates which days of the month snapshot should be taken. A comma delimited string.
- hour Number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Number
- Indicates which minute snapshot should be taken
- snapshotsTo NumberKeep 
- Monthly snapshot count to keep
- usedBytes Number
- Resource size in bytes, current storage usage for the volume in bytes
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
WeeklyScheduleResponse  
- Day string
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Weekly snapshot count to keep
- UsedBytes double
- Resource size in bytes, current storage usage for the volume in bytes
- Day string
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- Hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- Minute int
- Indicates which minute snapshot should be taken
- SnapshotsTo intKeep 
- Weekly snapshot count to keep
- UsedBytes float64
- Resource size in bytes, current storage usage for the volume in bytes
- day String
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- hour Integer
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Integer
- Indicates which minute snapshot should be taken
- snapshotsTo IntegerKeep 
- Weekly snapshot count to keep
- usedBytes Double
- Resource size in bytes, current storage usage for the volume in bytes
- day string
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- hour number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute number
- Indicates which minute snapshot should be taken
- snapshotsTo numberKeep 
- Weekly snapshot count to keep
- usedBytes number
- Resource size in bytes, current storage usage for the volume in bytes
- day str
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- hour int
- Indicates which hour in UTC timezone a snapshot should be taken
- minute int
- Indicates which minute snapshot should be taken
- snapshots_to_ intkeep 
- Weekly snapshot count to keep
- used_bytes float
- Resource size in bytes, current storage usage for the volume in bytes
- day String
- Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
- hour Number
- Indicates which hour in UTC timezone a snapshot should be taken
- minute Number
- Indicates which minute snapshot should be taken
- snapshotsTo NumberKeep 
- Weekly snapshot count to keep
- usedBytes Number
- Resource size in bytes, current storage usage for the volume in bytes
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0