Method: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::ProtectionPolicies#get

Defined in:
lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb

#get(vault_name, resource_group_name, policy_name, custom_headers: nil) ⇒ ProtectionPolicyResource

Gets the details of the backup policy associated with the Recovery Services vault. This is an asynchronous operation. Use the GetPolicyOperationResult API to Get the operation status.

with the Recovery Services vault. operation. will be added to the HTTP request.

Parameters:

  • vault_name (String)

    The name of the Recovery Services vault.

  • resource_group_name (String)

    The name of the resource group associated

  • policy_name (String)

    The backup policy name used in this GET

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (ProtectionPolicyResource)

    operation results.



43
44
45
46
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb', line 43

def get(vault_name, resource_group_name, policy_name, custom_headers:nil)
  response = get_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value!
  response.body unless response.nil?
end