GET https://graph.microsoft.com/v1.0/deviceManagement/importedWindowsAutopilotDeviceIdentities/{importedWindowsAutopilotDeviceIdentityId}
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities["{importedWindowsAutopilotDeviceIdentity-id}"].GetAsync();
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
importedWindowsAutopilotDeviceIdentities, err := graphClient.DeviceManagement().ImportedWindowsAutopilotDeviceIdentities().ByImportedWindowsAutopilotDeviceIdentityId("importedWindowsAutopilotDeviceIdentity-id").Get(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
ImportedWindowsAutopilotDeviceIdentity result = graphClient.deviceManagement().importedWindowsAutopilotDeviceIdentities().byImportedWindowsAutopilotDeviceIdentityId("{importedWindowsAutopilotDeviceIdentity-id}").get();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.device_management.imported_windows_autopilot_device_identities.by_imported_windows_autopilot_device_identity_id('importedWindowsAutopilotDeviceIdentity-id').get()
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 729
{
"value": {
"@odata.type": "#microsoft.graph.importedWindowsAutopilotDeviceIdentity",
"id": "985b4f49-4f49-985b-494f-5b98494f5b98",
"groupTag": "Group Tag value",
"serialNumber": "Serial Number value",
"productKey": "Product Key value",
"importId": "Import Id value",
"hardwareIdentifier": "aGFyZHdhcmVJZGVudGlmaWVy",
"state": {
"@odata.type": "microsoft.graph.importedWindowsAutopilotDeviceIdentityState",
"deviceImportStatus": "pending",
"deviceRegistrationId": "Device Registration Id value",
"deviceErrorCode": 15,
"deviceErrorName": "Device Error Name value"
},
"assignedUserPrincipalName": "Assigned User Principal Name value"
}
}