You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response includes two messages and an **@odata.nextLink** response header with a `skipToken`. The **@odata.nextLink** URL indicates that more messages in the chats are available to retrieve.
The second request specifies the **@odata.nextLink** URL returned from the previous response. Notice that it no longer has to specify the same `$top` parameter as in the initial request, as the `skipToken` in the **@odata.nextLink** URL encodes and includes those parameters.
208
215
216
+
# [HTTP](#tab/http)
209
217
<!-- {
210
218
"blockType": "request",
211
219
"name": "get_chatmessagedeltachats_2"
@@ -214,6 +222,12 @@ The second request specifies the **@odata.nextLink** URL returned from the previ
214
222
GET https://graph.microsoft.com/beta/users/5ed12dd6-24f8-4777-be3d-0d234e06cefa/chats/getAllMessages/delta?&%24skiptoken=a-5fqdzHFr_L_cc7C0q1F-HCB8Z9SjwOsMN37XV5yfSnYgK4jVGVGEl25GFlxKWq0Wv6quL-5qcNg4nUnxzof6namZ_DM5no-hcL515cSrRGDoRLn38fZE1AXoDugSTOohOq3YRCYLqJbFGIoovMPTar32oLuoltHixme-Bf1lZtscv1wv5uu-MtkpYZIT0uDw-umQUK7mLNjMcyhNaifMIVTT-htmEOClLVwgcyWLR-sl9Qb73uTTtPXdFdMK6FDE4gpwvvKxvo2ChsW2c4eo77LDh6ZL_WQ8Luq00koQ6vHIrLBHPMUdOAxDxu-U7N7H4hsFn9aRDRdwRky7067A.V2a-J-86yXTd9SJMA4CHP6enI-Ab-bQzRgYujwsIwDo
The second response returns the next two messages and an **@odata.nextLink** response header with a `skipToken` that indicates that more messages are available to retrieve.
The third request continues to use the latest **@odata.nextLink** returned from the last sync request.
315
329
330
+
# [HTTP](#tab/http)
316
331
<!-- {
317
332
"blockType": "request",
318
333
"name": "get_chatmessagedeltachats_3"
@@ -321,6 +336,12 @@ The third request continues to use the latest **@odata.nextLink** returned from
321
336
GET https://graph.microsoft.com/beta/users/5ed12dd6-24f8-4777-be3d-0d234e06cefa/chats/getAllMessages/delta?$skiptoken=8UusBixEHS9UUau6uGcryrA6FpnWwMJbuTYILM1PArHxnZzDVcsHQrijNzCyIVeEauMQsKUfMhNjLWFs1o4sBS_LofJ7xMftZUfec_pijuT6cAk5ugcWCca9RCjK7iVj.DKZ9w4bX9vCR7Sj9P0_qxjLAAPiEZgxlOxxmCLMzHJ4
The third response returns the only remaining messages and an **@odata.deltaLink** response header with a `deltaToken` which indicates that all messages are returned. Save and use the **@odata.deltaLink** URL to query for any new messages added or changed from this point onwards.
@@ -387,6 +408,7 @@ Using the **@odata.deltaLink** from the last request in the last round, you can
387
408
388
409
The following example shows a request.
389
410
411
+
# [HTTP](#tab/http)
390
412
<!-- {
391
413
"blockType": "request",
392
414
"name": "get_chatmessagedeltachats_4"
@@ -395,6 +417,12 @@ The following example shows a request.
395
417
GET https://graph.microsoft.com/beta/users/5ed12dd6-24f8-4777-be3d-0d234e06cefa/chats/getAllMessages/delta?$deltatoken=aQdvS1VwGCSRxVmZJqykmDik_JIC44iCZpv-GLiA2VnFuE5yG-kCEBROb2iaPT_y_eMWVQtBO_ejzzyIxl00ji-tQ3HzAbW4liZAVG88lO3nG_6-MBFoHY1n8y21YUzjocG-Cn1tCNeeLPLTzIe5Dw.EP9gLiCoF2CE_e6l_m1bTk2aokD9KcgfgfcLGqd1r_4
Copy file name to clipboardExpand all lines: api-reference/beta/api/cloudpc-getprovisionedcloudpcs.md
+79-19Lines changed: 79 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ Choose the permission or permissions marked as least privileged for this API. Us
35
35
GET /deviceManagement/virtualEndpoint/cloudPCs/getProvisionedCloudPCs(groupId='{groupId}',servicePlanId='{servicePlanId}')
36
36
```
37
37
38
+
## Optional query parameters
39
+
40
+
This method supports the `$select`[OData query parameter](/graph/query-parameters) to help customize the response. You can use `$select` to get specific properties, including those properties that aren't returned by default.
41
+
38
42
## Request headers
39
43
40
44
|Name|Description|
@@ -58,14 +62,18 @@ If successful, this method returns a `200 OK` response code and a collection of
58
62
59
63
## Examples
60
64
61
-
### Request
65
+
### Example 1: Get all provisioned Cloud PCs and their default properties
66
+
67
+
The following example shows how to get all provisioned Cloud PCs and their default properties.
68
+
69
+
#### Request
62
70
63
71
The following example shows a request.
64
72
65
73
# [HTTP](#tab/http)
66
74
<!-- {
67
75
"blockType": "request",
68
-
"name": "cloudpc.getProvisionedCloudPCs"
76
+
"name": "cloudpc.getProvisionedCloudPCs_1"
69
77
}
70
78
-->
71
79
```http
@@ -106,14 +114,16 @@ GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/g
106
114
107
115
---
108
116
109
-
### Response
117
+
####Response
110
118
111
-
The following example shows the response.
119
+
The following example shows the response. It includes only the default properties.
120
+
121
+
> **Note:** The response object shown here might be shortened for readability. All the default properties are returned in an actual call.
"servicePlanName": "Cloud PC Enterprise 4vCPU/16GB/256GB",
170
174
"servicePlanType": "enterprise",
171
175
"status": "provisioned",
172
-
"powerState": "running",
173
176
"userPrincipalName": "pmitchell@contoso.com",
174
177
"lastModifiedDateTime": "2020-07-28T18:14:34Z",
175
178
"statusDetails": null,
176
179
"provisioningType": "dedicated",
177
180
"allotmentDisplayName": null,
178
181
"deviceRegionName": "eastus2",
179
-
"connectivityResult": "",
180
182
"gracePeriodEndDateTime": null,
181
-
"lastLoginResult": "2020-07-23T10:29:57Z",
182
-
"lastRemoteActionResult": "Succeed",
183
183
"onPremisesConnectionName": "Test-OPNC",
184
-
"osVersion": null,
185
184
"partnerAgentInstallResults": null,
186
-
"provisioningPolicyName": "Test-Policy",
187
-
"userAccountType": null
185
+
"provisioningPolicyName": "Test-Policy"
188
186
}
189
187
]
190
188
}
191
189
```
190
+
191
+
### Example 2: Get all provisioned Cloud PCs and specific properties
192
+
193
+
The following example shows how to get all provisioned Cloud PCs and use `$select` to get specific properties, including those properties that aren't returned by default.
194
+
195
+
#### Request
196
+
197
+
The following example shows a request.
198
+
199
+
<!-- {
200
+
"blockType": "request",
201
+
"name": "cloudpc.getProvisionedCloudPCs_2"
202
+
}
203
+
-->
204
+
```http
205
+
GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/getProvisionedCloudPCs(groupId='30d0e128-de93-41dc-89ec-33d84bb662a0',servicePlanId='9ecf691d-8b82-46cb-b254-cd061b2c02fb')?$select=id,displayName,powerState,connectivityResult,lastLoginResult,lastRemoteActionResult,osVersion,provisioningPolicyName,userAccountType
0 commit comments