編輯

共用方式為


Get fileValidateOperations

Namespace: microsoft.graph.industryData

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.

Read the properties and relationships of a fileValidateOperation object.

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) IndustryData.ReadBasic.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application IndustryData.ReadBasic.All Not available.

HTTP request

GET /external/industryData/operations/{fileValidateOperationId}

Optional query parameters

This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.

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 method returns a 200 OK response code and a microsoft.graph.industryData.fileValidateOperation object in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/external/industryData/operations/581b2ef8-dda2-4a3e-bb62-df13fd4a5808

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/json

{
  "@odata.type": "#microsoft.graph.industryData.fileValidateOperation",
  "createdDateTime": "2022-12-14T05:54:35.400029Z",
  "errors": [
    {
      "code": "RequiredFileNotFound",
      "details": [],
      "innerError": null,
      "message": "When trying to validate required file orgs.csv encountered RequiredFileNotFound error.",
      "target": "orgs.csv"
    }
  ],
  "id": "d194fa3e-18c9-47a1-0fb1-08dad8e7a876",
  "lastActionDateTime": "2022-12-14T05:54:43.8410226Z",
  "resourceLocation": "https://graph.microsoft.com/beta/industryData/dataConnectors/022da4a0-c239-4b07-abed-08dad8e7a07a",
  "status": "succeeded",
  "statusDetail": null,
  "validatedFiles": [],
  "warnings": [
    {
      "code": "OptionalFileNotFound",
      "details": [],
      "innerError": null,
      "message": "When trying to validate file classes.csv encountered OptionalFileNotFound error.",
      "target": "classes.csv"
    },
    {
      "code": "OptionalFileNotFound",
      "details": [],
      "innerError": null,
      "message": "When trying to validate file enrollments.csv encountered OptionalFileNotFound error.",
      "target": "enrollments.csv"
    }
  ]
}