Skip to content

Latest commit

 

History

History
123 lines (92 loc) · 4.8 KB

File metadata and controls

123 lines (92 loc) · 4.8 KB
title cloudPC: getCloudPcLaunchInfo (deprecated)
description Get the cloudPCLaunchInfo for a specific cloudPC that belongs to the current signed-in user.
author andrewku0409
ms.localizationpriority medium
ms.subservice cloud-pc
doc_type apiPageType
ms.date 04/04/2024

cloudPC: getCloudPcLaunchInfo (deprecated)

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Caution

This API is deprecated and will stop returning data on October 30, 2026. Going forward, use the retrieveCloudPcLaunchDetail API.

Get the cloudPCLaunchInfo for a specific cloudPC that belongs to the current signed-in user.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

To get the cloudPCLaunchInfo for a specific cloudPC of the specified user (who is the signed-in user) in the organization using delegated permission:

GET /me/cloudPCs/{cloudPCId}/getCloudPcLaunchInfo
GET /users/{userId}/cloudPCs/{id}/getCloudPcLaunchInfo

To get the cloudPCLaunchInfo for a specific cloudPC in the organization using delegated permission (the signed-in user should be the administrator):

GET /deviceManagement/virtualEndpoint/cloudPCs/{cloudPCId}/getCloudPcLaunchInfo

Caution

The /deviceManagement/virtualEndpoint/cloudPCs/{cloudPCId}/getCloudPcLaunchInfo endpoint is deprecated and will stop returning data on October 30, 2025.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and a cloudPcLaunchInfo object in the response body.

Examples

Request

GET https://graph.microsoft.com/beta/me/cloudPCs/{cloudPCId}/getCloudPcLaunchInfo

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.cloudPcLaunchInfo",
  "cloudPcId": "a20d556d-85f7-88cc-bb9c-08d9902bb7bb",
  "cloudPcLaunchUrl": "https://rdweb-r0.wvdselfhost.microsoft.com/api/arm/weblaunch/tenants/662009bc-7732-4f6f-8726-25883518b33e/resources/662009bc-7732-4f6f-8726-25883518b33e",
  "windows365SwitchCompatible":false,
  "windows365SwitchNotCompatibleReason":"CPCHardwareNotMeetRequirement"
}