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.getBackupPolicy
Explore with Pulumi AI
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 particular backup Policy API Version: 2020-12-01.
Using getBackupPolicy
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 getBackupPolicy(args: GetBackupPolicyArgs, opts?: InvokeOptions): Promise<GetBackupPolicyResult>
function getBackupPolicyOutput(args: GetBackupPolicyOutputArgs, opts?: InvokeOptions): Output<GetBackupPolicyResult>
def get_backup_policy(account_name: Optional[str] = None,
backup_policy_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupPolicyResult
def get_backup_policy_output(account_name: Optional[pulumi.Input[str]] = None,
backup_policy_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupPolicyResult]
func LookupBackupPolicy(ctx *Context, args *LookupBackupPolicyArgs, opts ...InvokeOption) (*LookupBackupPolicyResult, error)
func LookupBackupPolicyOutput(ctx *Context, args *LookupBackupPolicyOutputArgs, opts ...InvokeOption) LookupBackupPolicyResultOutput
> Note: This function is named LookupBackupPolicy
in the Go SDK.
public static class GetBackupPolicy
{
public static Task<GetBackupPolicyResult> InvokeAsync(GetBackupPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetBackupPolicyResult> Invoke(GetBackupPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupPolicyResult> getBackupPolicy(GetBackupPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:netapp:getBackupPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - The name of the NetApp account
- Backup
Policy stringName - Backup policy Name which uniquely identify backup policy.
- Resource
Group stringName - The name of the resource group.
- Account
Name string - The name of the NetApp account
- Backup
Policy stringName - Backup policy Name which uniquely identify backup policy.
- Resource
Group stringName - The name of the resource group.
- account
Name String - The name of the NetApp account
- backup
Policy StringName - Backup policy Name which uniquely identify backup policy.
- resource
Group StringName - The name of the resource group.
- account
Name string - The name of the NetApp account
- backup
Policy stringName - Backup policy Name which uniquely identify backup policy.
- resource
Group stringName - The name of the resource group.
- account_
name str - The name of the NetApp account
- backup_
policy_ strname - Backup policy Name which uniquely identify backup policy.
- resource_
group_ strname - The name of the resource group.
- account
Name String - The name of the NetApp account
- backup
Policy StringName - Backup policy Name which uniquely identify backup policy.
- resource
Group StringName - The name of the resource group.
getBackupPolicy Result
The following output properties are available:
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Name of backup policy
- Provisioning
State string - Azure lifecycle management
- Type string
- Resource type
- Daily
Backups intTo Keep - Daily backups count to keep
- Enabled bool
- The property to decide policy is enabled or not
- Monthly
Backups intTo Keep - Monthly backups count to keep
- Dictionary<string, string>
- Resource tags
- Volume
Backups List<Pulumi.Azure Native. Net App. Outputs. Volume Backups Response> - A list of volumes assigned to this policy
- Volumes
Assigned int - Volumes using current backup policy
- Weekly
Backups intTo Keep - Weekly backups count to keep
- Yearly
Backups intTo Keep - Yearly backups count to keep
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Name of backup policy
- Provisioning
State string - Azure lifecycle management
- Type string
- Resource type
- Daily
Backups intTo Keep - Daily backups count to keep
- Enabled bool
- The property to decide policy is enabled or not
- Monthly
Backups intTo Keep - Monthly backups count to keep
- map[string]string
- Resource tags
- Volume
Backups []VolumeBackups Response - A list of volumes assigned to this policy
- Volumes
Assigned int - Volumes using current backup policy
- Weekly
Backups intTo Keep - Weekly backups count to keep
- Yearly
Backups intTo Keep - Yearly backups count to keep
- id String
- Resource Id
- location String
- Resource location
- name String
- Name of backup policy
- provisioning
State String - Azure lifecycle management
- type String
- Resource type
- daily
Backups IntegerTo Keep - Daily backups count to keep
- enabled Boolean
- The property to decide policy is enabled or not
- monthly
Backups IntegerTo Keep - Monthly backups count to keep
- Map<String,String>
- Resource tags
- volume
Backups List<VolumeBackups Response> - A list of volumes assigned to this policy
- volumes
Assigned Integer - Volumes using current backup policy
- weekly
Backups IntegerTo Keep - Weekly backups count to keep
- yearly
Backups IntegerTo Keep - Yearly backups count to keep
- id string
- Resource Id
- location string
- Resource location
- name string
- Name of backup policy
- provisioning
State string - Azure lifecycle management
- type string
- Resource type
- daily
Backups numberTo Keep - Daily backups count to keep
- enabled boolean
- The property to decide policy is enabled or not
- monthly
Backups numberTo Keep - Monthly backups count to keep
- {[key: string]: string}
- Resource tags
- volume
Backups VolumeBackups Response[] - A list of volumes assigned to this policy
- volumes
Assigned number - Volumes using current backup policy
- weekly
Backups numberTo Keep - Weekly backups count to keep
- yearly
Backups numberTo Keep - Yearly backups count to keep
- id str
- Resource Id
- location str
- Resource location
- name str
- Name of backup policy
- provisioning_
state str - Azure lifecycle management
- type str
- Resource type
- daily_
backups_ intto_ keep - Daily backups count to keep
- enabled bool
- The property to decide policy is enabled or not
- monthly_
backups_ intto_ keep - Monthly backups count to keep
- Mapping[str, str]
- Resource tags
- volume_
backups Sequence[VolumeBackups Response] - A list of volumes assigned to this policy
- volumes_
assigned int - Volumes using current backup policy
- weekly_
backups_ intto_ keep - Weekly backups count to keep
- yearly_
backups_ intto_ keep - Yearly backups count to keep
- id String
- Resource Id
- location String
- Resource location
- name String
- Name of backup policy
- provisioning
State String - Azure lifecycle management
- type String
- Resource type
- daily
Backups NumberTo Keep - Daily backups count to keep
- enabled Boolean
- The property to decide policy is enabled or not
- monthly
Backups NumberTo Keep - Monthly backups count to keep
- Map<String>
- Resource tags
- volume
Backups List<Property Map> - A list of volumes assigned to this policy
- volumes
Assigned Number - Volumes using current backup policy
- weekly
Backups NumberTo Keep - Weekly backups count to keep
- yearly
Backups NumberTo Keep - Yearly backups count to keep
Supporting Types
VolumeBackupsResponse
- Backups
Count int - Total count of backups for volume
- Policy
Enabled bool - Policy enabled
- Volume
Name string - Volume name
- Backups
Count int - Total count of backups for volume
- Policy
Enabled bool - Policy enabled
- Volume
Name string - Volume name
- backups
Count Integer - Total count of backups for volume
- policy
Enabled Boolean - Policy enabled
- volume
Name String - Volume name
- backups
Count number - Total count of backups for volume
- policy
Enabled boolean - Policy enabled
- volume
Name string - Volume name
- backups_
count int - Total count of backups for volume
- policy_
enabled bool - Policy enabled
- volume_
name str - Volume name
- backups
Count Number - Total count of backups for volume
- policy
Enabled Boolean - Policy enabled
- volume
Name String - Volume name
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
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