1. Packages
  2. Azure Native
  3. API Docs
  4. datareplication
  5. getPolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.datareplication.getPolicy

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Gets the details of the policy.

Uses Azure REST API version 2021-02-16-preview.

Other available API versions: 2024-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native datareplication [ApiVersion]. See the version guide for details.

Using getPolicy

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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
Copy
def get_policy(policy_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               vault_name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(policy_name: Optional[pulumi.Input[str]] = None,
               resource_group_name: Optional[pulumi.Input[str]] = None,
               vault_name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
Copy
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput
Copy

> Note: This function is named LookupPolicy in the Go SDK.

public static class GetPolicy 
{
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:datareplication:getPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyName
This property is required.
Changes to this property will trigger replacement.
string
The policy name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The vault name.
PolicyName
This property is required.
Changes to this property will trigger replacement.
string
The policy name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The vault name.
policyName
This property is required.
Changes to this property will trigger replacement.
String
The policy name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The vault name.
policyName
This property is required.
Changes to this property will trigger replacement.
string
The policy name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
string
The vault name.
policy_name
This property is required.
Changes to this property will trigger replacement.
str
The policy name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
vault_name
This property is required.
Changes to this property will trigger replacement.
str
The vault name.
policyName
This property is required.
Changes to this property will trigger replacement.
String
The policy name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The vault name.

getPolicy Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Gets or sets the Id of the resource.
Name string
Gets or sets the name of the resource.
Properties Pulumi.AzureNative.DataReplication.Outputs.PolicyModelPropertiesResponse
Policy model properties.
SystemData Pulumi.AzureNative.DataReplication.Outputs.PolicyModelResponseSystemData
Type string
Gets or sets the type of the resource.
AzureApiVersion string
The Azure API version of the resource.
Id string
Gets or sets the Id of the resource.
Name string
Gets or sets the name of the resource.
Properties PolicyModelPropertiesResponse
Policy model properties.
SystemData PolicyModelResponseSystemData
Type string
Gets or sets the type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
Gets or sets the Id of the resource.
name String
Gets or sets the name of the resource.
properties PolicyModelPropertiesResponse
Policy model properties.
systemData PolicyModelResponseSystemData
type String
Gets or sets the type of the resource.
azureApiVersion string
The Azure API version of the resource.
id string
Gets or sets the Id of the resource.
name string
Gets or sets the name of the resource.
properties PolicyModelPropertiesResponse
Policy model properties.
systemData PolicyModelResponseSystemData
type string
Gets or sets the type of the resource.
azure_api_version str
The Azure API version of the resource.
id str
Gets or sets the Id of the resource.
name str
Gets or sets the name of the resource.
properties PolicyModelPropertiesResponse
Policy model properties.
system_data PolicyModelResponseSystemData
type str
Gets or sets the type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
Gets or sets the Id of the resource.
name String
Gets or sets the name of the resource.
properties Property Map
Policy model properties.
systemData Property Map
type String
Gets or sets the type of the resource.

Supporting Types

HyperVToAzStackHCIPolicyModelCustomPropertiesResponse

AppConsistentFrequencyInMinutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
CrashConsistentFrequencyInMinutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
RecoveryPointHistoryInMinutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
AppConsistentFrequencyInMinutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
CrashConsistentFrequencyInMinutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
RecoveryPointHistoryInMinutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. Integer
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. Integer
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. Integer
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. number
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. number
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. number
Gets or sets the duration in minutes until which the recovery points need to be stored.
app_consistent_frequency_in_minutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
crash_consistent_frequency_in_minutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
recovery_point_history_in_minutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. Number
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. Number
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. Number
Gets or sets the duration in minutes until which the recovery points need to be stored.

PolicyModelPropertiesResponse

CustomProperties This property is required. HyperVToAzStackHCIPolicyModelCustomPropertiesResponse | VMwareToAzStackHCIPolicyModelCustomPropertiesResponse
Policy model custom properties.
ProvisioningState This property is required. string
Gets or sets the provisioning state of the policy.
customProperties This property is required. HyperVToAzStackHCIPolicyModelCustomPropertiesResponse | VMwareToAzStackHCIPolicyModelCustomPropertiesResponse
Policy model custom properties.
provisioningState This property is required. String
Gets or sets the provisioning state of the policy.
customProperties This property is required. HyperVToAzStackHCIPolicyModelCustomPropertiesResponse | VMwareToAzStackHCIPolicyModelCustomPropertiesResponse
Policy model custom properties.
provisioningState This property is required. string
Gets or sets the provisioning state of the policy.
custom_properties This property is required. HyperVToAzStackHCIPolicyModelCustomPropertiesResponse | VMwareToAzStackHCIPolicyModelCustomPropertiesResponse
Policy model custom properties.
provisioning_state This property is required. str
Gets or sets the provisioning state of the policy.
customProperties This property is required. Property Map | Property Map
Policy model custom properties.
provisioningState This property is required. String
Gets or sets the provisioning state of the policy.

PolicyModelResponseSystemData

CreatedAt string
Gets or sets the timestamp of resource creation (UTC).
CreatedBy string
Gets or sets identity that created the resource.
CreatedByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
LastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
LastModifiedBy string
Gets or sets the identity that last modified the resource.
LastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
CreatedAt string
Gets or sets the timestamp of resource creation (UTC).
CreatedBy string
Gets or sets identity that created the resource.
CreatedByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
LastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
LastModifiedBy string
Gets or sets the identity that last modified the resource.
LastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt String
Gets or sets the timestamp of resource creation (UTC).
createdBy String
Gets or sets identity that created the resource.
createdByType String
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt String
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy String
Gets or sets the identity that last modified the resource.
lastModifiedByType String
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt string
Gets or sets the timestamp of resource creation (UTC).
createdBy string
Gets or sets identity that created the resource.
createdByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy string
Gets or sets the identity that last modified the resource.
lastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
created_at str
Gets or sets the timestamp of resource creation (UTC).
created_by str
Gets or sets identity that created the resource.
created_by_type str
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
last_modified_at str
Gets or sets the timestamp of resource last modification (UTC).
last_modified_by str
Gets or sets the identity that last modified the resource.
last_modified_by_type str
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt String
Gets or sets the timestamp of resource creation (UTC).
createdBy String
Gets or sets identity that created the resource.
createdByType String
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt String
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy String
Gets or sets the identity that last modified the resource.
lastModifiedByType String
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.

VMwareToAzStackHCIPolicyModelCustomPropertiesResponse

AppConsistentFrequencyInMinutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
CrashConsistentFrequencyInMinutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
RecoveryPointHistoryInMinutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
AppConsistentFrequencyInMinutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
CrashConsistentFrequencyInMinutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
RecoveryPointHistoryInMinutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. Integer
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. Integer
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. Integer
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. number
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. number
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. number
Gets or sets the duration in minutes until which the recovery points need to be stored.
app_consistent_frequency_in_minutes This property is required. int
Gets or sets the app consistent snapshot frequency (in minutes).
crash_consistent_frequency_in_minutes This property is required. int
Gets or sets the crash consistent snapshot frequency (in minutes).
recovery_point_history_in_minutes This property is required. int
Gets or sets the duration in minutes until which the recovery points need to be stored.
appConsistentFrequencyInMinutes This property is required. Number
Gets or sets the app consistent snapshot frequency (in minutes).
crashConsistentFrequencyInMinutes This property is required. Number
Gets or sets the crash consistent snapshot frequency (in minutes).
recoveryPointHistoryInMinutes This property is required. Number
Gets or sets the duration in minutes until which the recovery points need to be stored.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi