你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Backup Policies - Get

Get a backup Policy
Get a particular backup Policy

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}?api-version=2023-05-01

URI Parameters

Name In Required Type Description
accountName
path True

string

The name of the NetApp account

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$

backupPolicyName
path True

string

Backup policy Name which uniquely identify backup policy.

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

backupPolicy

OK

Other Status Codes

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Backups_Get

Sample Request

GET https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backupPolicyName?api-version=2023-05-01

Sample Response

{
  "id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName",
  "name": "account1/backupPolicyName",
  "type": "Microsoft.NetApp/netAppAccounts/backupPolicies",
  "location": "eastus",
  "properties": {
    "dailyBackupsToKeep": 10,
    "weeklyBackupsToKeep": 10,
    "monthlyBackupsToKeep": 10,
    "volumesAssigned": 0,
    "enabled": true,
    "volumeBackups": [
      {
        "volumeName": "volume 1",
        "backupsCount": 5,
        "policyEnabled": true
      }
    ]
  }
}

Definitions

Name Description
backupPolicy

Backup policy information

createdByType

The type of identity that created the resource.

systemData

Metadata pertaining to creation and last modification of the resource.

volumeBackups

Volume details using the backup policy

backupPolicy

Backup policy information

Name Type Description
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

properties.backupPolicyId

string

Backup Policy Resource ID

properties.dailyBackupsToKeep

integer

Daily backups count to keep

properties.enabled

boolean

The property to decide policy is enabled or not

properties.monthlyBackupsToKeep

integer

Monthly backups count to keep

properties.provisioningState

string

Azure lifecycle management

properties.volumeBackups

volumeBackups[]

A list of volumes assigned to this policy

properties.volumesAssigned

integer

Volumes using current backup policy

properties.weeklyBackupsToKeep

integer

Weekly backups count to keep

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

volumeBackups

Volume details using the backup policy

Name Type Description
backupsCount

integer

Total count of backups for volume

policyEnabled

boolean

Policy enabled

volumeName

string

Volume name