cloudPcReports: getActionStatusReports

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get the remote action status reports, including data such as the Cloud PC ID, Cloud PC device display name, initiating user's principal name, device owner's user principal name, action taken, and action state.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

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.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.Read.All CloudPC.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application CloudPC.Read.All CloudPC.ReadWrite.All

HTTP request

POST /deviceManagement/virtualEndpoint/reports/getActionStatusReports

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameters that can be used with this method.

Parameter Type Description
filter String OData $filter syntax. Supported filters are: and, or, gt ,ge, and eq.
groupBy String collection Specifies how to group the reports. If used, must have the same content as the select parameter.
orderBy String collection Specifies the order by columns name. The default orderBy column is RequestDateTime.
search String Specifies a String to search for.
select String collection OData $select syntax. The selected columns of the reports.
skip Int32 Number of records to skip.
top Int32 The number of top records to return. If not specified, the default limit is 25, with a maximum of 100.

Response

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

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/reports/getActionStatusReports
Content-Type: application/json
Content-length: 199

{
  "filter": "ActionState eq 'failed'",
  "select": [
    "Id",
    "CloudPcDeviceDisplayName",
    "BulkActionId",
    "BulkActionDisplayName",
    "CloudPcId",
    "InitiatedByUserPrincipalName",
    "DeviceOwnerUserPrincipalName",
    "Action",
    "ActionState",
    "RequestDateTime",
    "LastUpdatedDateTime",
    "ActionParameters"
  ],
  "skip": 0,
  "top": 50
}

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/octet-stream

{
  "TotalRowCount": 1,
  "Schema": [
    {
      "Column": "Id",
      "PropertyType": "String"
    },
    {
      "Column": "CloudPcDeviceDisplayName",
      "PropertyType": "String"
    },
    {
      "Column": "BulkActionId",
      "PropertyType": "String"
    },
    {
      "Column": "BulkActionDisplayName",
      "PropertyType": "String"
    },
    {
      "Column": "CloudPcId",
      "PropertyType": "String"
    },
    {
      "Column": "InitiatedByUserPrincipalName",
      "PropertyType": "String"
    },
    {
      "Column": "DeviceOwnerUserPrincipalName",
      "PropertyType": "String"
    },
    {
      "Column": "Action",
      "PropertyType": "String"
    },
    {
      "Column": "ActionState",
      "PropertyType": "String"
    },
    {
      "Column": "RequestDateTime",
      "PropertyType": "DateTime"
    },
    {
      "Column": "LastUpdatedDateTime",
      "PropertyType": "DateTime"
    },
    {
      "Column": "ActionParameters",
      "PropertyType": "Json"
    }
  ],
  "Values": [
    [
      "662009bc-7732-4f6f-8726-25883518b33e",
      "CloudPC-Connie",
      "bdc8e6dd-0455-4412-83d9-c818664fe1f1",
      "Resize to 64GB RAM - John",
      "bdc8e6dd-0455-4412-83d9-c818664fe1f1",
      "john@contoso.com",
      "connie@contoso.com",
      "Resize",
      "failed",
      "2020-07-23T10:10:57Z",
      "2023-07-23T18:14:34Z",
      {
        "targetServicePlanId": "3bba9856-7cf2-4396-904a-00de74fba3a4"
      }
    ]
  ]
}