1. Packages
  2. Azure Native v1
  3. API Docs
  4. netapp
  5. getSnapshotPolicy
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.netapp.getSnapshotPolicy

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Get a snapshot Policy API Version: 2020-12-01.

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:netapp:getSnapshotPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountName string
    The name of the NetApp account
    ResourceGroupName string
    The name of the resource group.
    SnapshotPolicyName string
    The name of the snapshot policy
    AccountName string
    The name of the NetApp account
    ResourceGroupName string
    The name of the resource group.
    SnapshotPolicyName string
    The name of the snapshot policy
    accountName String
    The name of the NetApp account
    resourceGroupName String
    The name of the resource group.
    snapshotPolicyName String
    The name of the snapshot policy
    accountName string
    The name of the NetApp account
    resourceGroupName string
    The name of the resource group.
    snapshotPolicyName string
    The name of the snapshot policy
    account_name str
    The name of the NetApp account
    resource_group_name str
    The name of the resource group.
    snapshot_policy_name str
    The name of the snapshot policy
    accountName String
    The name of the NetApp account
    resourceGroupName String
    The name of the resource group.
    snapshotPolicyName String
    The name of the snapshot policy

    getSnapshotPolicy Result

    The following output properties are available:

    Id string
    Resource Id
    Location string
    Resource location
    Name string
    Resource name
    ProvisioningState string
    Azure lifecycle management
    Type string
    Resource type
    DailySchedule Pulumi.AzureNative.NetApp.Outputs.DailyScheduleResponse
    Schedule for daily snapshots
    Enabled bool
    The property to decide policy is enabled or not
    HourlySchedule Pulumi.AzureNative.NetApp.Outputs.HourlyScheduleResponse
    Schedule for hourly snapshots
    MonthlySchedule Pulumi.AzureNative.NetApp.Outputs.MonthlyScheduleResponse
    Schedule for monthly snapshots
    Tags Dictionary<string, string>
    Resource tags
    WeeklySchedule Pulumi.AzureNative.NetApp.Outputs.WeeklyScheduleResponse
    Schedule for weekly snapshots
    Id string
    Resource Id
    Location string
    Resource location
    Name string
    Resource name
    ProvisioningState string
    Azure lifecycle management
    Type string
    Resource type
    DailySchedule DailyScheduleResponse
    Schedule for daily snapshots
    Enabled bool
    The property to decide policy is enabled or not
    HourlySchedule HourlyScheduleResponse
    Schedule for hourly snapshots
    MonthlySchedule MonthlyScheduleResponse
    Schedule for monthly snapshots
    Tags map[string]string
    Resource tags
    WeeklySchedule WeeklyScheduleResponse
    Schedule for weekly snapshots
    id String
    Resource Id
    location String
    Resource location
    name String
    Resource name
    provisioningState String
    Azure lifecycle management
    type String
    Resource type
    dailySchedule DailyScheduleResponse
    Schedule for daily snapshots
    enabled Boolean
    The property to decide policy is enabled or not
    hourlySchedule HourlyScheduleResponse
    Schedule for hourly snapshots
    monthlySchedule MonthlyScheduleResponse
    Schedule for monthly snapshots
    tags Map<String,String>
    Resource tags
    weeklySchedule WeeklyScheduleResponse
    Schedule for weekly snapshots
    id string
    Resource Id
    location string
    Resource location
    name string
    Resource name
    provisioningState string
    Azure lifecycle management
    type string
    Resource type
    dailySchedule DailyScheduleResponse
    Schedule for daily snapshots
    enabled boolean
    The property to decide policy is enabled or not
    hourlySchedule HourlyScheduleResponse
    Schedule for hourly snapshots
    monthlySchedule MonthlyScheduleResponse
    Schedule for monthly snapshots
    tags {[key: string]: string}
    Resource tags
    weeklySchedule WeeklyScheduleResponse
    Schedule for weekly snapshots
    id str
    Resource Id
    location str
    Resource location
    name str
    Resource name
    provisioning_state str
    Azure lifecycle management
    type str
    Resource type
    daily_schedule DailyScheduleResponse
    Schedule for daily snapshots
    enabled bool
    The property to decide policy is enabled or not
    hourly_schedule HourlyScheduleResponse
    Schedule for hourly snapshots
    monthly_schedule MonthlyScheduleResponse
    Schedule for monthly snapshots
    tags Mapping[str, str]
    Resource tags
    weekly_schedule WeeklyScheduleResponse
    Schedule for weekly snapshots
    id String
    Resource Id
    location String
    Resource location
    name String
    Resource name
    provisioningState String
    Azure lifecycle management
    type String
    Resource type
    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
    tags 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
    SnapshotsToKeep int
    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
    SnapshotsToKeep int
    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
    snapshotsToKeep Integer
    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
    snapshotsToKeep number
    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_keep int
    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
    snapshotsToKeep Number
    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
    SnapshotsToKeep int
    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
    SnapshotsToKeep int
    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
    snapshotsToKeep Integer
    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
    snapshotsToKeep number
    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_keep int
    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
    snapshotsToKeep Number
    Hourly snapshot count to keep
    usedBytes Number
    Resource size in bytes, current storage usage for the volume in bytes

    MonthlyScheduleResponse

    DaysOfMonth string
    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
    SnapshotsToKeep int
    Monthly snapshot count to keep
    UsedBytes double
    Resource size in bytes, current storage usage for the volume in bytes
    DaysOfMonth string
    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
    SnapshotsToKeep int
    Monthly snapshot count to keep
    UsedBytes float64
    Resource size in bytes, current storage usage for the volume in bytes
    daysOfMonth String
    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
    snapshotsToKeep Integer
    Monthly snapshot count to keep
    usedBytes Double
    Resource size in bytes, current storage usage for the volume in bytes
    daysOfMonth string
    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
    snapshotsToKeep number
    Monthly snapshot count to keep
    usedBytes number
    Resource size in bytes, current storage usage for the volume in bytes
    days_of_month str
    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_keep int
    Monthly snapshot count to keep
    used_bytes float
    Resource size in bytes, current storage usage for the volume in bytes
    daysOfMonth String
    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
    snapshotsToKeep Number
    Monthly snapshot count to keep
    usedBytes Number
    Resource size in bytes, current storage usage for the volume in bytes

    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
    SnapshotsToKeep int
    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
    SnapshotsToKeep int
    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
    snapshotsToKeep Integer
    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
    snapshotsToKeep number
    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_keep int
    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
    snapshotsToKeep Number
    Weekly snapshot count to keep
    usedBytes Number
    Resource size in bytes, current storage usage for the volume in bytes

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi