Snapshot Policies - List
List snapshot policy
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies?api-version=2024-07-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
The name of the NetApp account Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string uuid |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
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
SnapshotPolicies_List
Sample request
GET https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies?api-version=2024-07-01
Sample response
{
"value": [
{
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1",
"name": "account1/snapshotPolicy1",
"location": "eastus",
"type": "Microsoft.NetApp/netAppAccounts/snapshotPolicies",
"properties": {
"enabled": true,
"hourlySchedule": {
"snapshotsToKeep": 2,
"minute": 50
},
"dailySchedule": {
"snapshotsToKeep": 4,
"hour": 14,
"minute": 30
},
"weeklySchedule": {
"snapshotsToKeep": 3,
"day": "Wednesday",
"hour": 14,
"minute": 45
},
"monthlySchedule": {
"snapshotsToKeep": 5,
"daysOfMonth": "10,11,12",
"hour": 14,
"minute": 15
},
"provisioningState": "Succeeded"
}
}
]
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
daily |
Daily Schedule properties |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
hourly |
Hourly Schedule properties |
monthly |
Monthly Schedule properties |
snapshot |
List of Snapshot Policies |
snapshot |
Snapshot policy information |
system |
Metadata pertaining to creation and last modification of the resource. |
weekly |
Weekly Schedule properties, make a snapshot every week at a specific day or days |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
dailySchedule
Daily Schedule properties
Name | Type | Description |
---|---|---|
hour |
integer |
Indicates which hour in UTC timezone a snapshot should be taken |
minute |
integer |
Indicates which minute snapshot should be taken |
snapshotsToKeep |
integer |
Daily snapshot count to keep |
usedBytes |
integer |
Resource size in bytes, current storage usage for the volume in bytes |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
hourlySchedule
Hourly Schedule properties
Name | Type | Description |
---|---|---|
minute |
integer |
Indicates which minute snapshot should be taken |
snapshotsToKeep |
integer |
Hourly snapshot count to keep |
usedBytes |
integer |
Resource size in bytes, current storage usage for the volume in bytes |
monthlySchedule
Monthly Schedule properties
Name | Type | Description |
---|---|---|
daysOfMonth |
string |
Indicates which days of the month snapshot should be taken. A comma delimited string. |
hour |
integer |
Indicates which hour in UTC timezone a snapshot should be taken |
minute |
integer |
Indicates which minute snapshot should be taken |
snapshotsToKeep |
integer |
Monthly snapshot count to keep |
usedBytes |
integer |
Resource size in bytes, current storage usage for the volume in bytes |
snapshotPoliciesList
List of Snapshot Policies
Name | Type | Description |
---|---|---|
value |
A list of snapshot policies |
snapshotPolicy
Snapshot 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. E.g. "/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.dailySchedule |
dailySchedule |
|
properties.enabled |
boolean |
The property to decide policy is enabled or not |
properties.hourlySchedule |
hourlySchedule |
|
properties.monthlySchedule |
monthlySchedule |
|
properties.provisioningState |
string |
Azure lifecycle management |
properties.weeklySchedule |
weeklySchedule |
|
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" |
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 |
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 |
The type of identity that last modified the resource. |
weeklySchedule
Weekly Schedule properties, make a snapshot every week at a specific day or days
Name | Type | Description |
---|---|---|
day |
string |
Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english |
hour |
integer |
Indicates which hour in UTC timezone a snapshot should be taken |
minute |
integer |
Indicates which minute snapshot should be taken |
snapshotsToKeep |
integer |
Weekly snapshot count to keep |
usedBytes |
integer |
Resource size in bytes, current storage usage for the volume in bytes |