Skip to content

Commit 5f5830f

Browse files
authored
Merge pull request #25396 from microsoftgraph/binbwu/extendParametersForSnapshot
[2410][CloudPC] Update createSnapshot and setReviewStatus APIs
2 parents c0130fc + d06f40b commit 5f5830f

7 files changed

+95
-8
lines changed

api-reference/beta/api/cloudpc-createsnapshot.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ POST /deviceManagement/virtualEndpoint/cloudPCs/{id}/createSnapshot
4444

4545
## Request body
4646

47-
Don't supply a request body for this method.
47+
In the request body, supply a JSON representation of the parameters.
48+
49+
The following table shows the parameter that you can use with this action.
50+
51+
|Parameter|Type|Description|
52+
|:---|:---|:---|
53+
|storageAccountId|String| The storage account which receives the restore point (snapshot).|
54+
|accessTier|String|The access tier of the blob file that the snapshot is copied to. Possible values are `hot`, `cool`, `cold`, `archive`, and `unknownFutureValue`. The default value is `hot`.|
4855

4956
## Response
5057

api-reference/beta/api/cloudpc-setreviewstatus.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Content-Type: application/json
7272
"reviewStatus": {
7373
"inReview": true,
7474
"userAccessLevel": "restricted",
75-
"azureStorageAccountId": "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview"
75+
"azureStorageAccountId": "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview",
76+
"accessTier": "hot"
7677
}
7778
}
7879
```

api-reference/beta/api/manageddevice-getcloudpcreviewstatus.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ Content-Type: application/json
124124
"subscriptionName": "deschutes-INT-DR-test",
125125
"azureStorageAccountId": "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview",
126126
"azureStorageAccountName": "snapshotsUnderReview",
127-
"azureStorageContainerName": "snapshotsContainer"
127+
"azureStorageContainerName": "snapshotsContainer",
128+
"accessTier":"hot"
128129
}
129130
```
130131

api-reference/beta/resources/cloudpcbulkcreatesnapshot.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ Inherits from [cloudPcBulkAction](../resources/cloudpcbulkaction.md).
2929
|initiatedByUserPrincipalName|String|The user principal name (UPN) of the user who initiated this bulk action. Read-only. Inherited from [cloudPcBulkAction](../resources/cloudpcbulkaction.md).|
3030
|scheduledDuringMaintenanceWindow|Boolean|Indicates whether the bulk action is scheduled according to the maintenance window. When `true`, the bulk action uses the maintenance window to schedule the action; `false` means that the bulk action doesn't use the maintenance window. The default value is `false`. Inherited from [cloudPcBulkAction](../resources/cloudpcbulkaction.md).|
3131
|status|[cloudPcBulkActionStatus](../resources/cloudpcbulkaction.md#cloudpcbulkactionstatus-values)|The status of the bulk actions. Possible values are `pending`, `succeeded`, `failed`, `unknownFutureValue`. The default value is `pending`. Read-only. Inherited from [cloudPcBulkAction](../resources/cloudpcbulkaction.md).|
32+
|storageAccountId|String|The unique identifier for Secure Azure Storage Account, which receives the restore points (snapshots). The value can't be modified after it's created. For example, '/subscriptions/06199b73-30a1-4922-8734-93feca64cdf6/resourceGroups/res2627/providers/Microsoft.Storage/storageAccounts/sto1125'. Read-Only.|
33+
|accessTier|[cloudPcBlobAccessTier](#cloudpcblobaccesstier-values)|Indicates the access tier of the blob file that the snapshot is copied to. Possible values are `hot`, `cool`, `cold`, `archive`, and `unknownFutureValue`. The default value is `hot`. Read-Only.|
34+
35+
36+
### cloudPcBlobAccessTier values
37+
38+
|Member|Description|
39+
|:---|:---|
40+
|hot|Indicates an online tier optimized for storing data that is accessed or modified frequently.|
41+
|cool|Indicates an online tier optimized for storing data that is infrequently accessed or modified.|
42+
|cold|Indicates an online tier optimized for storing data that is rarely accessed or modified, but still requires fast retrieval.|
43+
|archive|Indicates an offline access tier optimized for storing data that is rarely accessed, and that has flexible latency requirements that can be up to a few hours.|
44+
|unknownFutureValue|Evolvable enumeration sentinel value. Don't use.|
3245

3346
## Relationships
3447
None.
@@ -53,6 +66,8 @@ The following JSON representation shows the resource type.
5366
"id": "String (identifier)",
5467
"initiatedByUserPrincipalName": "String",
5568
"scheduledDuringMaintenanceWindow": "Boolean",
56-
"status": "String"
69+
"status": "String",
70+
"storageAccountId": "String",
71+
"accessTier": "String"
5772
}
5873
```

api-reference/beta/resources/cloudpcforensicstorageaccount.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Represents the storage account information that can be used to store a snapshot
2121
|:---|:---|:---|
2222
|storageAccountId|String|The ID of the storage account.|
2323
|storageAccountName|String|The name of the storage account.|
24+
|immutableStorage|Boolean|Indicates whether immutability policies are configured for the storage account. When `true`, the storage account only accepts `hot` as the snapshot access tier. When `false`, the storage account accepts all valid access tiers. Read-Only.|
2425

2526
## Relationships
2627
None.
@@ -39,6 +40,7 @@ The following JSON representation shows the resource type.
3940
{
4041
"@odata.type": "#microsoft.graph.cloudPcForensicStorageAccount",
4142
"storageAccountId": "String",
42-
"storageAccountName": "String"
43+
"storageAccountName": "String",
44+
"immutableStorage": "Boolean"
4345
}
4446
```

api-reference/beta/resources/cloudpcreviewstatus.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,25 @@ Represents details about the review status of a Cloud PC.
2828
|subscriptionId|String|The ID of the Azure subscription in which the Cloud PC snapshot is being saved, in GUID format.|
2929
|subscriptionName|String|The name of the Azure subscription in which the Cloud PC snapshot is being saved.|
3030
|userAccessLevel|[cloudPcUserAccessLevel](#cloudpcuseraccesslevel-values)|The access level of the end user on the Cloud PC. Possible values are: `unrestricted`, `restricted`.|
31+
|accessTier|[cloudPcBlobAccessTier](#cloudpcblobaccesstier-values)| The blob access tier of the Azure Storage account in which the Cloud PC snapshot is saved with. Possible values are `hot`, `cool`, `cold`, and `archive`, default value is `hot`.|
3132

3233
### cloudPcUserAccessLevel values
3334

3435
|Member|Value|Description|
3536
|:---|:---|:---|
3637
|unrestricted|0|No restriction. Users can access the Cloud PC.|
37-
|restricted|1|Users are not allowed to access the Cloud PC.|
38-
|unknownFutureValue|999|Evolvable enumeration sentinel value. Do not use.|
38+
|restricted|1|Users aren't allowed to access the Cloud PC.|
39+
|unknownFutureValue|999|Evolvable enumeration sentinel value. Don't use.|
3940

41+
### cloudPcBlobAccessTier values
42+
43+
|Member|Description|
44+
|:---|:---|
45+
|hot|Indicates an online tier optimized for storing data that is accessed or modified frequently.|
46+
|cool|Indicates an online tier optimized for storing data that is infrequently accessed or modified.|
47+
|cold|Indicates an online tier optimized for storing data that is rarely accessed or modified, but still requires fast retrieval.|
48+
|archive|Indicates an offline access tier optimized for storing data that is rarely accessed, and that has flexible latency requirements that can be up to a few hours.|
49+
|unknownFutureValue|Evolvable enumeration sentinel value. Don't use.|
4050

4151
## Relationships
4252
None.
@@ -59,7 +69,8 @@ The following JSON representation shows the resource type.
5969
"reviewStartDateTime": "String (timestamp)",
6070
"subscriptionId": "String",
6171
"subscriptionName": "String",
62-
"userAccessLevel": "String"
72+
"userAccessLevel": "String",
73+
"accessTier": "String"
6374
}
6475
```
6576

changelog/Microsoft.CloudManagedDesktop.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,56 @@
152152
"WorkloadArea": "Device and app management",
153153
"SubArea": "Cloud PC"
154154
},
155+
{
156+
"ChangeList": [
157+
{
158+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
159+
"ApiChange": "Enumeration",
160+
"ChangedApiName": "cloudPcBlobAccessTier",
161+
"ChangeType": "Addition",
162+
"Description": "Added the **cloudPcBlobAccessTier** enumeration type.",
163+
"Target": "cloudPcBlobAccessTier"
164+
},
165+
{
166+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
167+
"ApiChange": "Property",
168+
"ChangedApiName": "accessTier",
169+
"ChangeType": "Addition",
170+
"Description": "Added the **accessTier** property to the [cloudPcReviewStatus](https://learn.microsoft.com/en-us/graph/api/resources/cloudpcreviewstatus?view=graph-rest-beta) resource.",
171+
"Target": "cloudPcReviewStatus"
172+
},
173+
{
174+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
175+
"ApiChange": "Property",
176+
"ChangedApiName": "accessTier",
177+
"ChangeType": "Addition",
178+
"Description": "Added the **accessTier** property to the [cloudPcBulkCreateSnapshot](https://learn.microsoft.com/en-us/graph/api/resources/cloudPcBulkCreateSnapshot?view=graph-rest-beta) resource.",
179+
"Target": "cloudPcBulkCreateSnapshot"
180+
},
181+
{
182+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
183+
"ApiChange": "Property",
184+
"ChangedApiName": "storageAccountId",
185+
"ChangeType": "Addition",
186+
"Description": "Added the **storageAccountId** property to the [cloudPcBulkCreateSnapshot](https://learn.microsoft.com/en-us/graph/api/resources/cloudPcBulkCreateSnapshot?view=graph-rest-beta) resource.",
187+
"Target": "cloudPcBulkCreateSnapshot"
188+
},
189+
{
190+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
191+
"ApiChange": "Parameter",
192+
"ChangedApiName": "createSnapshot",
193+
"ChangeType": "Addition",
194+
"Description": "Added the **storageAccountId** and **accessTier** parameters to the [createSnapshot](https://learn.microsoft.com/en-us/graph/api/cloudpc-createsnapshot?view=graph-rest-beta) method.",
195+
"Target": "cloudPC"
196+
}
197+
],
198+
"Id": "bf9197c4-808f-44b6-98dc-12491aa17bb5",
199+
"Cloud": "Prod",
200+
"Version": "beta",
201+
"CreatedDateTime": "2024-12-12T09:26:48.3805974Z",
202+
"WorkloadArea": "Device and app management",
203+
"SubArea": "Cloud PC"
204+
},
155205
{
156206
"ChangeList": [
157207
{

0 commit comments

Comments
 (0)