azure-native.netapp.getBackupPolicy
Explore with Pulumi AI
Get a particular backup Policy Azure REST API version: 2022-11-01.
Other available API versions: 2021-04-01, 2021-04-01-preview, 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.
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. The name is case insensitive.
- 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. The name is case insensitive.
- 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. The name is case insensitive.
- 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. The name is case insensitive.
- 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. The name is case insensitive.
- 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. The name is case insensitive.
getBackupPolicy Result
The following output properties are available:
- Backup
Policy stringId - Backup Policy Resource ID
- 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
- Provisioning
State string - Azure lifecycle management
- System
Data 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"
- 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
- 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.
- Weekly
Backups intTo Keep - Weekly backups count to keep
- Backup
Policy stringId - Backup Policy Resource ID
- 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
- Provisioning
State string - Azure lifecycle management
- System
Data 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"
- Volume
Backups []VolumeBackups Response - A list of volumes assigned to this policy
- Volumes
Assigned int - Volumes using current backup policy
- 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.
- Weekly
Backups intTo Keep - Weekly backups count to keep
- backup
Policy StringId - Backup Policy Resource ID
- 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
- provisioning
State String - Azure lifecycle management
- system
Data 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"
- volume
Backups List<VolumeBackups Response> - A list of volumes assigned to this policy
- volumes
Assigned Integer - Volumes using current backup policy
- 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.
- weekly
Backups IntegerTo Keep - Weekly backups count to keep
- backup
Policy stringId - Backup Policy Resource ID
- 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
- provisioning
State string - Azure lifecycle management
- system
Data 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"
- volume
Backups VolumeBackups Response[] - A list of volumes assigned to this policy
- volumes
Assigned number - Volumes using current backup policy
- 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.
- weekly
Backups numberTo Keep - Weekly backups count to keep
- backup_
policy_ strid - Backup Policy Resource ID
- 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"
- volume_
backups Sequence[VolumeBackups Response] - A list of volumes assigned to this policy
- volumes_
assigned int - Volumes using current backup policy
- 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.
- weekly_
backups_ intto_ keep - Weekly backups count to keep
- backup
Policy StringId - Backup Policy Resource ID
- 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
- provisioning
State String - Azure lifecycle management
- system
Data 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"
- volume
Backups List<Property Map> - A list of volumes assigned to this policy
- volumes
Assigned Number - Volumes using current backup policy
- 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.
- weekly
Backups NumberTo Keep - Weekly backups count to keep
Supporting Types
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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 pulumi/pulumi-azure-native
- License
- Apache-2.0