This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.datareplication.getPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets the details of the policy. Azure REST API version: 2021-02-16-preview.
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>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]func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput> 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)
}public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:datareplication:getPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PolicyName string
- The policy name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- VaultName string
- The vault name.
- PolicyName string
- The policy name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- VaultName string
- The vault name.
- policyName String
- The policy name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- vaultName String
- The vault name.
- policyName string
- The policy name.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- vaultName string
- The vault name.
- policy_name str
- The policy name.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- vault_name str
- The vault name.
- policyName String
- The policy name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- vaultName String
- The vault name.
getPolicy Result
The following output properties are available:
- Id string
- Gets or sets the Id of the resource.
- Name string
- Gets or sets the name of the resource.
- Properties
Pulumi.Azure Native. Data Replication. Outputs. Policy Model Properties Response 
- Policy model properties.
- SystemData Pulumi.Azure Native. Data Replication. Outputs. Policy Model Response System Data 
- Type string
- Gets or sets the type of the resource.
- Id string
- Gets or sets the Id of the resource.
- Name string
- Gets or sets the name of the resource.
- Properties
PolicyModel Properties Response 
- Policy model properties.
- SystemData PolicyModel Response System Data 
- Type string
- Gets or sets the type of the resource.
- id String
- Gets or sets the Id of the resource.
- name String
- Gets or sets the name of the resource.
- properties
PolicyModel Properties Response 
- Policy model properties.
- systemData PolicyModel Response System Data 
- type String
- Gets or sets the type of the resource.
- id string
- Gets or sets the Id of the resource.
- name string
- Gets or sets the name of the resource.
- properties
PolicyModel Properties Response 
- Policy model properties.
- systemData PolicyModel Response System Data 
- type string
- Gets or sets the type of the resource.
- id str
- Gets or sets the Id of the resource.
- name str
- Gets or sets the name of the resource.
- properties
PolicyModel Properties Response 
- Policy model properties.
- system_data PolicyModel Response System Data 
- type str
- Gets or sets the type 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        
- AppConsistent intFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- CrashConsistent intFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- RecoveryPoint intHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- AppConsistent intFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- CrashConsistent intFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- RecoveryPoint intHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent IntegerFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent IntegerFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint IntegerHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent numberFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent numberFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint numberHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- app_consistent_ intfrequency_ in_ minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crash_consistent_ intfrequency_ in_ minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recovery_point_ inthistory_ in_ minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent NumberFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent NumberFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint NumberHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
PolicyModelPropertiesResponse   
- CustomProperties Pulumi.Azure | Pulumi.Native. Data Replication. Inputs. Hyper VTo Az Stack HCIPolicy Model Custom Properties Response Azure Native. Data Replication. Inputs. VMware To Az Stack HCIPolicy Model Custom Properties Response 
- Policy model custom properties.
- ProvisioningState string
- Gets or sets the provisioning state of the policy.
- CustomProperties HyperVTo | VMwareAz Stack HCIPolicy Model Custom Properties Response To Az Stack HCIPolicy Model Custom Properties Response 
- Policy model custom properties.
- ProvisioningState string
- Gets or sets the provisioning state of the policy.
- customProperties HyperVTo | VMwareAz Stack HCIPolicy Model Custom Properties Response To Az Stack HCIPolicy Model Custom Properties Response 
- Policy model custom properties.
- provisioningState String
- Gets or sets the provisioning state of the policy.
- customProperties HyperVTo | VMwareAz Stack HCIPolicy Model Custom Properties Response To Az Stack HCIPolicy Model Custom Properties Response 
- Policy model custom properties.
- provisioningState string
- Gets or sets the provisioning state of the policy.
- custom_properties HyperVTo | VMwareAz Stack HCIPolicy Model Custom Properties Response To Az Stack HCIPolicy Model Custom Properties Response 
- Policy model custom properties.
- provisioning_state str
- Gets or sets the provisioning state of the policy.
- customProperties Property Map | Property Map
- Policy model custom properties.
- provisioningState 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.
- CreatedBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- LastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- LastModified stringBy 
- Gets or sets the identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- LastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- LastModified stringBy 
- Gets or sets the identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified StringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified StringBy 
- Gets or sets the identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified stringBy 
- Gets or sets the identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- last_modified_ strat 
- Gets or sets the timestamp of resource last modification (UTC).
- last_modified_ strby 
- Gets or sets the identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified StringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified StringBy 
- Gets or sets the identity that last modified the resource.
- lastModified StringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
VMwareToAzStackHCIPolicyModelCustomPropertiesResponse        
- AppConsistent intFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- CrashConsistent intFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- RecoveryPoint intHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- AppConsistent intFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- CrashConsistent intFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- RecoveryPoint intHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent IntegerFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent IntegerFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint IntegerHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent numberFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent numberFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint numberHistory In Minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- app_consistent_ intfrequency_ in_ minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crash_consistent_ intfrequency_ in_ minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recovery_point_ inthistory_ in_ minutes 
- Gets or sets the duration in minutes until which the recovery points need to be stored.
- appConsistent NumberFrequency In Minutes 
- Gets or sets the app consistent snapshot frequency (in minutes).
- crashConsistent NumberFrequency In Minutes 
- Gets or sets the crash consistent snapshot frequency (in minutes).
- recoveryPoint NumberHistory In Minutes 
- 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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi