1. Packages
  2. Azure Native
  3. API Docs
  4. datareplication
  5. getPolicy
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.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.datareplication.getPolicy

Explore with Pulumi AI

azure-native logo
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.37.0 published on Monday, Apr 15, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:datareplication:getPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyName string
    The policy name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VaultName string
    The vault name.
    PolicyName string
    The policy name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VaultName string
    The vault name.
    policyName String
    The policy name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    vaultName String
    The vault name.
    policyName string
    The policy name.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    vaultName string
    The vault name.
    policy_name str
    The policy name.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    vault_name str
    The vault name.
    policyName String
    The policy name.
    resourceGroupName String
    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.AzureNative.DataReplication.Outputs.PolicyModelPropertiesResponse
    Policy model properties.
    SystemData Pulumi.AzureNative.DataReplication.Outputs.PolicyModelResponseSystemData
    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 PolicyModelPropertiesResponse
    Policy model properties.
    SystemData PolicyModelResponseSystemData
    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 PolicyModelPropertiesResponse
    Policy model properties.
    systemData PolicyModelResponseSystemData
    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 PolicyModelPropertiesResponse
    Policy model properties.
    systemData PolicyModelResponseSystemData
    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 PolicyModelPropertiesResponse
    Policy model properties.
    system_data PolicyModelResponseSystemData
    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

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

    PolicyModelPropertiesResponse

    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.
    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 int
    Gets or sets the app consistent snapshot frequency (in minutes).
    CrashConsistentFrequencyInMinutes int
    Gets or sets the crash consistent snapshot frequency (in minutes).
    RecoveryPointHistoryInMinutes int
    Gets or sets the duration in minutes until which the recovery points need to be stored.
    AppConsistentFrequencyInMinutes int
    Gets or sets the app consistent snapshot frequency (in minutes).
    CrashConsistentFrequencyInMinutes int
    Gets or sets the crash consistent snapshot frequency (in minutes).
    RecoveryPointHistoryInMinutes int
    Gets or sets the duration in minutes until which the recovery points need to be stored.
    appConsistentFrequencyInMinutes Integer
    Gets or sets the app consistent snapshot frequency (in minutes).
    crashConsistentFrequencyInMinutes Integer
    Gets or sets the crash consistent snapshot frequency (in minutes).
    recoveryPointHistoryInMinutes Integer
    Gets or sets the duration in minutes until which the recovery points need to be stored.
    appConsistentFrequencyInMinutes number
    Gets or sets the app consistent snapshot frequency (in minutes).
    crashConsistentFrequencyInMinutes number
    Gets or sets the crash consistent snapshot frequency (in minutes).
    recoveryPointHistoryInMinutes number
    Gets or sets the duration in minutes until which the recovery points need to be stored.
    app_consistent_frequency_in_minutes int
    Gets or sets the app consistent snapshot frequency (in minutes).
    crash_consistent_frequency_in_minutes int
    Gets or sets the crash consistent snapshot frequency (in minutes).
    recovery_point_history_in_minutes int
    Gets or sets the duration in minutes until which the recovery points need to be stored.
    appConsistentFrequencyInMinutes Number
    Gets or sets the app consistent snapshot frequency (in minutes).
    crashConsistentFrequencyInMinutes Number
    Gets or sets the crash consistent snapshot frequency (in minutes).
    recoveryPointHistoryInMinutes 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
    azure-native logo
    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.37.0 published on Monday, Apr 15, 2024 by Pulumi