azure-native.netapp.getBackupPolicy

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:

AccountName string

The name of the NetApp account

BackupPolicyName string

Backup policy Name which uniquely identify backup policy.

ResourceGroupName string

The name of the resource group.

AccountName string

The name of the NetApp account

BackupPolicyName string

Backup policy Name which uniquely identify backup policy.

ResourceGroupName string

The name of the resource group.

accountName String

The name of the NetApp account

backupPolicyName String

Backup policy Name which uniquely identify backup policy.

resourceGroupName String

The name of the resource group.

accountName string

The name of the NetApp account

backupPolicyName string

Backup policy Name which uniquely identify backup policy.

resourceGroupName string

The name of the resource group.

account_name str

The name of the NetApp account

backup_policy_name str

Backup policy Name which uniquely identify backup policy.

resource_group_name str

The name of the resource group.

accountName String

The name of the NetApp account

backupPolicyName String

Backup policy Name which uniquely identify backup policy.

resourceGroupName String

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

ProvisioningState string

Azure lifecycle management

Type string

Resource type

DailyBackupsToKeep int

Daily backups count to keep

Enabled bool

The property to decide policy is enabled or not

MonthlyBackupsToKeep int

Monthly backups count to keep

Tags Dictionary<string, string>

Resource tags

VolumeBackups List<Pulumi.AzureNative.NetApp.Outputs.VolumeBackupsResponse>

A list of volumes assigned to this policy

VolumesAssigned int

Volumes using current backup policy

WeeklyBackupsToKeep int

Weekly backups count to keep

YearlyBackupsToKeep int

Yearly backups count to keep

Id string

Resource Id

Location string

Resource location

Name string

Name of backup policy

ProvisioningState string

Azure lifecycle management

Type string

Resource type

DailyBackupsToKeep int

Daily backups count to keep

Enabled bool

The property to decide policy is enabled or not

MonthlyBackupsToKeep int

Monthly backups count to keep

Tags map[string]string

Resource tags

VolumeBackups []VolumeBackupsResponse

A list of volumes assigned to this policy

VolumesAssigned int

Volumes using current backup policy

WeeklyBackupsToKeep int

Weekly backups count to keep

YearlyBackupsToKeep int

Yearly backups count to keep

id String

Resource Id

location String

Resource location

name String

Name of backup policy

provisioningState String

Azure lifecycle management

type String

Resource type

dailyBackupsToKeep Integer

Daily backups count to keep

enabled Boolean

The property to decide policy is enabled or not

monthlyBackupsToKeep Integer

Monthly backups count to keep

tags Map<String,String>

Resource tags

volumeBackups List<VolumeBackupsResponse>

A list of volumes assigned to this policy

volumesAssigned Integer

Volumes using current backup policy

weeklyBackupsToKeep Integer

Weekly backups count to keep

yearlyBackupsToKeep Integer

Yearly backups count to keep

id string

Resource Id

location string

Resource location

name string

Name of backup policy

provisioningState string

Azure lifecycle management

type string

Resource type

dailyBackupsToKeep number

Daily backups count to keep

enabled boolean

The property to decide policy is enabled or not

monthlyBackupsToKeep number

Monthly backups count to keep

tags {[key: string]: string}

Resource tags

volumeBackups VolumeBackupsResponse[]

A list of volumes assigned to this policy

volumesAssigned number

Volumes using current backup policy

weeklyBackupsToKeep number

Weekly backups count to keep

yearlyBackupsToKeep number

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_to_keep int

Daily backups count to keep

enabled bool

The property to decide policy is enabled or not

monthly_backups_to_keep int

Monthly backups count to keep

tags Mapping[str, str]

Resource tags

volume_backups Sequence[VolumeBackupsResponse]

A list of volumes assigned to this policy

volumes_assigned int

Volumes using current backup policy

weekly_backups_to_keep int

Weekly backups count to keep

yearly_backups_to_keep int

Yearly backups count to keep

id String

Resource Id

location String

Resource location

name String

Name of backup policy

provisioningState String

Azure lifecycle management

type String

Resource type

dailyBackupsToKeep Number

Daily backups count to keep

enabled Boolean

The property to decide policy is enabled or not

monthlyBackupsToKeep Number

Monthly backups count to keep

tags Map<String>

Resource tags

volumeBackups List<Property Map>

A list of volumes assigned to this policy

volumesAssigned Number

Volumes using current backup policy

weeklyBackupsToKeep Number

Weekly backups count to keep

yearlyBackupsToKeep Number

Yearly backups count to keep

Supporting Types

VolumeBackupsResponse

BackupsCount int

Total count of backups for volume

PolicyEnabled bool

Policy enabled

VolumeName string

Volume name

BackupsCount int

Total count of backups for volume

PolicyEnabled bool

Policy enabled

VolumeName string

Volume name

backupsCount Integer

Total count of backups for volume

policyEnabled Boolean

Policy enabled

volumeName String

Volume name

backupsCount number

Total count of backups for volume

policyEnabled boolean

Policy enabled

volumeName string

Volume name

backups_count int

Total count of backups for volume

policy_enabled bool

Policy enabled

volume_name str

Volume name

backupsCount Number

Total count of backups for volume

policyEnabled Boolean

Policy enabled

volumeName String

Volume name

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0