forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Microsoft.Resources/snapshots (Azure#20921)
* Add new snapshots type * Readme * Readme typo * suppressions * readme * Preview * Make augmented properties siblings of the original ARM resource * Snapshot * prettier * fix examples * comments * comments * comments
- Loading branch information
1 parent
c50273a
commit acf8321
Showing
4 changed files
with
522 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
...resource-manager/Microsoft.Resources/preview/2022-11-01-preview/examples/GetSnapshot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId1", | ||
"resourceGroupName": "resourceGroup1", | ||
"resourceProviderNamespace": "resourceProvider1", | ||
"resourceType": "resourceType1", | ||
"resourceName": "resourceName1", | ||
"api-version": "2022-11-01-preview", | ||
"snapshotId": "snapshotId1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId1", | ||
"name": "snapshotId1", | ||
"type": "Microsoft.Resources/snapshots", | ||
"properties": { | ||
"apiVersion": "2022-05-01", | ||
"content": { | ||
"sku": { | ||
"name": "Standard_GZRS", | ||
"tier": "Standard" | ||
}, | ||
"kind": "StorageV2", | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", | ||
"name": "resourceName1", | ||
"type": "resourceProvider1/resourceType1", | ||
"location": "eastus", | ||
"tags": { | ||
"aaa": "aaaa", | ||
"dfasdf": "dfsadfsf" | ||
}, | ||
"properties": { | ||
"defaultToOAuthAuthentication": false, | ||
"keyCreationTime": { | ||
"key1": "2021-04-15T20:12:24.1028866Z", | ||
"key2": "2021-04-15T19:58:00.3691784Z" | ||
}, | ||
"privateEndpointConnections": [], | ||
"minimumTlsVersion": "TLS1_0", | ||
"allowBlobPublicAccess": true, | ||
"allowSharedKeyAccess": true, | ||
"networkAcls": { | ||
"bypass": "AzureServices", | ||
"virtualNetworkRules": [], | ||
"ipRules": [], | ||
"defaultAction": "Allow" | ||
}, | ||
"supportsHttpsTrafficOnly": true, | ||
"encryption": { | ||
"services": { | ||
"file": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
}, | ||
"blob": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
} | ||
}, | ||
"keySource": "Microsoft.Storage" | ||
}, | ||
"accessTier": "Hot", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2021-04-15T19:58:00.2285507Z", | ||
"primaryEndpoints": { | ||
"dfs": "https://resourceName1.dfs.core.windows.net/", | ||
"web": "https://resourceName1.z13.web.core.windows.net/", | ||
"blob": "https://resourceName1.blob.core.windows.net/", | ||
"queue": "https://resourceName1.queue.core.windows.net/", | ||
"table": "https://resourceName1.table.core.windows.net/", | ||
"file": "https://resourceName1.file.core.windows.net/" | ||
}, | ||
"primaryLocation": "eastus", | ||
"statusOfPrimary": "available", | ||
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z", | ||
"secondaryLocation": "westus", | ||
"statusOfSecondary": "available" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
162 changes: 162 additions & 0 deletions
162
...source-manager/Microsoft.Resources/preview/2022-11-01-preview/examples/ListSnapshots.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscriptionId1", | ||
"resourceGroupName": "resourceGroup1", | ||
"resourceProviderNamespace": "resourceProvider1", | ||
"resourceType": "resourceType1", | ||
"resourceName": "resourceName1", | ||
"api-version": "2022-11-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId1", | ||
"name": "snapshotId1", | ||
"type": "Microsoft.Resources/snapshots", | ||
"properties": { | ||
"apiVersion": "2022-05-01", | ||
"content": { | ||
"sku": { | ||
"name": "Standard_GZRS", | ||
"tier": "Standard" | ||
}, | ||
"kind": "StorageV2", | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", | ||
"name": "resourceName1", | ||
"type": "resourceProvider1/resourceType1", | ||
"location": "eastus", | ||
"tags": { | ||
"aaa": "aaaa", | ||
"dfasdf": "dfsadfsf" | ||
}, | ||
"properties": { | ||
"defaultToOAuthAuthentication": false, | ||
"keyCreationTime": { | ||
"key1": "2021-04-15T20:12:24.1028866Z", | ||
"key2": "2021-04-15T19:58:00.3691784Z" | ||
}, | ||
"privateEndpointConnections": [], | ||
"minimumTlsVersion": "TLS1_0", | ||
"allowBlobPublicAccess": true, | ||
"allowSharedKeyAccess": true, | ||
"networkAcls": { | ||
"bypass": "AzureServices", | ||
"virtualNetworkRules": [], | ||
"ipRules": [], | ||
"defaultAction": "Allow" | ||
}, | ||
"supportsHttpsTrafficOnly": true, | ||
"encryption": { | ||
"services": { | ||
"file": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
}, | ||
"blob": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
} | ||
}, | ||
"keySource": "Microsoft.Storage" | ||
}, | ||
"accessTier": "Hot", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2021-04-15T19:58:00.2285507Z", | ||
"primaryEndpoints": { | ||
"dfs": "https://resourceName1.dfs.core.windows.net/", | ||
"web": "https://resourceName1.z13.web.core.windows.net/", | ||
"blob": "https://resourceName1.blob.core.windows.net/", | ||
"queue": "https://resourceName1.queue.core.windows.net/", | ||
"table": "https://resourceName1.table.core.windows.net/", | ||
"file": "https://resourceName1.file.core.windows.net/" | ||
}, | ||
"primaryLocation": "eastus", | ||
"statusOfPrimary": "available", | ||
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z", | ||
"secondaryLocation": "westus", | ||
"statusOfSecondary": "available" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/snapshots/snapshotId2", | ||
"name": "snapshotId2", | ||
"type": "Microsoft.Resources/snapshots", | ||
"properties": { | ||
"apiVersion": "2022-05-01", | ||
"content": { | ||
"sku": { | ||
"name": "Standard_GZRS", | ||
"tier": "Standard" | ||
}, | ||
"kind": "StorageV2", | ||
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", | ||
"name": "resourceName1", | ||
"type": "resourceProvider1/resourceType1", | ||
"location": "eastus", | ||
"tags": { | ||
"aaa": "aaaa", | ||
"dfasdf": "dfsadfsf" | ||
}, | ||
"properties": { | ||
"defaultToOAuthAuthentication": false, | ||
"keyCreationTime": { | ||
"key1": "2021-04-15T20:12:24.1028866Z", | ||
"key2": "2021-04-15T19:58:00.3691784Z" | ||
}, | ||
"privateEndpointConnections": [], | ||
"minimumTlsVersion": "TLS1_0", | ||
"allowBlobPublicAccess": true, | ||
"allowSharedKeyAccess": true, | ||
"networkAcls": { | ||
"bypass": "AzureServices", | ||
"virtualNetworkRules": [], | ||
"ipRules": [], | ||
"defaultAction": "Allow" | ||
}, | ||
"supportsHttpsTrafficOnly": true, | ||
"encryption": { | ||
"services": { | ||
"file": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
}, | ||
"blob": { | ||
"keyType": "Account", | ||
"enabled": true, | ||
"lastEnabledTime": "2021-04-15T19:58:00.3848008Z" | ||
} | ||
}, | ||
"keySource": "Microsoft.Storage" | ||
}, | ||
"accessTier": "Hot", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2021-04-15T19:58:00.2285507Z", | ||
"primaryEndpoints": { | ||
"dfs": "https://resourceName1.dfs.core.windows.net/", | ||
"web": "https://resourceName1.z13.web.core.windows.net/", | ||
"blob": "https://resourceName1.blob.core.windows.net/", | ||
"queue": "https://resourceName1.queue.core.windows.net/", | ||
"table": "https://resourceName1.table.core.windows.net/", | ||
"file": "https://resourceName1.file.core.windows.net/" | ||
}, | ||
"primaryLocation": "eastus", | ||
"statusOfPrimary": "available", | ||
"lastGeoFailoverTime": "2022-07-21T22:11:20.3670939Z", | ||
"secondaryLocation": "westus", | ||
"statusOfSecondary": "available" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.