Skip to content

Commit b50ff4a

Browse files
committed
update example
1 parent 12d1381 commit b50ff4a

File tree

1 file changed

+30
-70
lines changed

1 file changed

+30
-70
lines changed

api-reference/beta/api/cloudpcreports-getinaccessiblecloudpcreports.md

Lines changed: 30 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -247,22 +247,15 @@ Content-Type: application/octet-stream
247247
}
248248
```
249249

250-
### Example 2: Get the weekly regional aggregated report of inaccessible cloud PC trend
250+
### Example 2: Get the weekly regional aggregated report of inaccessible Cloud PC trend
251251

252252
#### Request
253253

254254
The following example shows a request.
255255

256-
# [HTTP](#tab/http)
257-
<!-- {
258-
"blockType": "request",
259-
"name": "cloudpcreports.getInaccessibleCloudPcReports_regionalTrend"
260-
}
261-
-->
262256
``` http
263257
POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/reports/getInaccessibleCloudPcReports
264258
Content-Type: application/json
265-
Content-length: 199
266259
267260
{
268261
"reportName":"regionalInaccessibleCloudPcTrendReport",
@@ -280,43 +273,11 @@ Content-length: 199
280273
}
281274
```
282275

283-
# [C#](#tab/csharp)
284-
[!INCLUDE [sample-code](../includes/snippets/csharp/cloudpcreportsgetinaccessiblecloudpcreports-csharp-snippets.md)]
285-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
286-
287-
# [CLI](#tab/cli)
288-
[!INCLUDE [sample-code](../includes/snippets/cli/cloudpcreportsgetinaccessiblecloudpcreports-cli-snippets.md)]
289-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
290-
291-
# [Go](#tab/go)
292-
[!INCLUDE [sample-code](../includes/snippets/go/cloudpcreportsgetinaccessiblecloudpcreports-go-snippets.md)]
293-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
294-
295-
# [Java](#tab/java)
296-
[!INCLUDE [sample-code](../includes/snippets/java/cloudpcreportsgetinaccessiblecloudpcreports-java-snippets.md)]
297-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
298-
299-
# [JavaScript](#tab/javascript)
300-
[!INCLUDE [sample-code](../includes/snippets/javascript/cloudpcreportsgetinaccessiblecloudpcreports-javascript-snippets.md)]
301-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
302-
303-
# [PHP](#tab/php)
304-
[!INCLUDE [sample-code](../includes/snippets/php/cloudpcreportsgetinaccessiblecloudpcreports-php-snippets.md)]
305-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
306-
307-
# [PowerShell](#tab/powershell)
308-
[!INCLUDE [sample-code](../includes/snippets/powershell/cloudpcreportsgetinaccessiblecloudpcreports-powershell-snippets.md)]
309-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
310-
311-
# [Python](#tab/python)
312-
[!INCLUDE [sample-code](../includes/snippets/python/cloudpcreportsgetinaccessiblecloudpcreports-python-snippets.md)]
313-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
314-
315-
---
316-
317276
#### Response
318277

319278
The following example shows the response.
279+
280+
>**Note:** The response object shown here might be shortened for readability.
320281
<!-- {
321282
"blockType": "response",
322283
"truncated": true,
@@ -327,35 +288,34 @@ The following example shows the response.
327288
HTTP/1.1 200 OK
328289
Content-Type: application/octet-stream
329290
330-
HTTP/1.1 200 OK
331291
{
332-
"TotalRowCount": 2,
333-
"Schema": [
334-
{
335-
"Column": "HostRegionName",
336-
"PropertyType": "String"
337-
},
338-
{
339-
"Column": "CloudPcCount",
340-
"PropertyType": "Int"
341-
},
342-
{
343-
"Column": "WeeklyPeakInaccessibleCloudPcCount",
344-
"PropertyType": "Int"
345-
},
346-
{
347-
"Column": "Last24hPeakInaccessibleCloudPcCount",
348-
"PropertyType": "Int"
349-
},
350-
{
351-
"Column": "WeeklyInaccessibleTrend",
352-
"PropertyType": "String"
353-
}
354-
],
355-
"Values": [
356-
[ "Japan East", 46, 10, 5, "Increasing" ],
357-
[ "East US", 1, 0, 0, "Decreasing" ]
358-
]
292+
"TotalRowCount": 2,
293+
"Schema": [
294+
{
295+
"Column": "HostRegionName",
296+
"PropertyType": "String"
297+
},
298+
{
299+
"Column": "CloudPcCount",
300+
"PropertyType": "Int"
301+
},
302+
{
303+
"Column": "WeeklyPeakInaccessibleCloudPcCount",
304+
"PropertyType": "Int"
305+
},
306+
{
307+
"Column": "Last24hPeakInaccessibleCloudPcCount",
308+
"PropertyType": "Int"
309+
},
310+
{
311+
"Column": "WeeklyInaccessibleTrend",
312+
"PropertyType": "String"
313+
}
314+
],
315+
"Values": [
316+
[ "Japan East", 46, 10, 5, "Increasing" ],
317+
[ "East US", 1, 0, 0, "Decreasing" ]
318+
]
359319
}
360320
```
361321

0 commit comments

Comments
 (0)