Intune estado de registro do dispositivo de piloto automático do Windows. Os valores possíveis são: unknown, enrolled, pendingReset, failed, notContacted.
lastContactedDateTime
DateTimeOffset
Intune Última Data Contatada do dispositivo de piloto automático do Windows.
addressableUserName
Cadeia de caracteres
Nome de usuário endereçável.
userPrincipalName
Cadeia de caracteres
Nome da entidade de usuário.
resourceName
Cadeia de caracteres
Nome do recurso.
skuNumber
Cadeia de caracteres
Número de SKU
systemFamily
Cadeia de caracteres
Família do Sistema
azureActiveDirectoryDeviceId
Cadeia de caracteres
ID do dispositivo AAD – a ser preterido
managedDeviceId
Cadeia de caracteres
ID do dispositivo gerenciado
displayName
Cadeia de caracteres
Nome de exibição
Resposta
Se for bem-sucedido, esse método retornará um 201 Created código de resposta e um objeto windowsAutopilotDeviceIdentity no corpo da resposta.
POST https://graph.microsoft.com/v1.0/deviceManagement/windowsAutopilotDeviceIdentities
Content-type: application/json
Content-length: 814
{
"@odata.type": "#microsoft.graph.windowsAutopilotDeviceIdentity",
"groupTag": "Group Tag value",
"purchaseOrderIdentifier": "Purchase Order Identifier value",
"serialNumber": "Serial Number value",
"productKey": "Product Key value",
"manufacturer": "Manufacturer value",
"model": "Model value",
"enrollmentState": "enrolled",
"lastContactedDateTime": "2016-12-31T23:58:44.2908994-08:00",
"addressableUserName": "Addressable User Name value",
"userPrincipalName": "User Principal Name value",
"resourceName": "Resource Name value",
"skuNumber": "Sku Number value",
"systemFamily": "System Family value",
"azureActiveDirectoryDeviceId": "Azure Active Directory Device Id value",
"managedDeviceId": "Managed Device Id value",
"displayName": "Display Name value"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new WindowsAutopilotDeviceIdentity
{
OdataType = "#microsoft.graph.windowsAutopilotDeviceIdentity",
GroupTag = "Group Tag value",
PurchaseOrderIdentifier = "Purchase Order Identifier value",
SerialNumber = "Serial Number value",
ProductKey = "Product Key value",
Manufacturer = "Manufacturer value",
Model = "Model value",
EnrollmentState = EnrollmentState.Enrolled,
LastContactedDateTime = DateTimeOffset.Parse("2016-12-31T23:58:44.2908994-08:00"),
AddressableUserName = "Addressable User Name value",
UserPrincipalName = "User Principal Name value",
ResourceName = "Resource Name value",
SkuNumber = "Sku Number value",
SystemFamily = "System Family value",
AzureActiveDirectoryDeviceId = "Azure Active Directory Device Id value",
ManagedDeviceId = "Managed Device Id value",
DisplayName = "Display Name value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.WindowsAutopilotDeviceIdentities.PostAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
WindowsAutopilotDeviceIdentity windowsAutopilotDeviceIdentity = new WindowsAutopilotDeviceIdentity();
windowsAutopilotDeviceIdentity.setOdataType("#microsoft.graph.windowsAutopilotDeviceIdentity");
windowsAutopilotDeviceIdentity.setGroupTag("Group Tag value");
windowsAutopilotDeviceIdentity.setPurchaseOrderIdentifier("Purchase Order Identifier value");
windowsAutopilotDeviceIdentity.setSerialNumber("Serial Number value");
windowsAutopilotDeviceIdentity.setProductKey("Product Key value");
windowsAutopilotDeviceIdentity.setManufacturer("Manufacturer value");
windowsAutopilotDeviceIdentity.setModel("Model value");
windowsAutopilotDeviceIdentity.setEnrollmentState(EnrollmentState.Enrolled);
OffsetDateTime lastContactedDateTime = OffsetDateTime.parse("2016-12-31T23:58:44.2908994-08:00");
windowsAutopilotDeviceIdentity.setLastContactedDateTime(lastContactedDateTime);
windowsAutopilotDeviceIdentity.setAddressableUserName("Addressable User Name value");
windowsAutopilotDeviceIdentity.setUserPrincipalName("User Principal Name value");
windowsAutopilotDeviceIdentity.setResourceName("Resource Name value");
windowsAutopilotDeviceIdentity.setSkuNumber("Sku Number value");
windowsAutopilotDeviceIdentity.setSystemFamily("System Family value");
windowsAutopilotDeviceIdentity.setAzureActiveDirectoryDeviceId("Azure Active Directory Device Id value");
windowsAutopilotDeviceIdentity.setManagedDeviceId("Managed Device Id value");
windowsAutopilotDeviceIdentity.setDisplayName("Display Name value");
WindowsAutopilotDeviceIdentity result = graphClient.deviceManagement().windowsAutopilotDeviceIdentities().post(windowsAutopilotDeviceIdentity);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\WindowsAutopilotDeviceIdentity;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new WindowsAutopilotDeviceIdentity();
$requestBody->setOdataType('#microsoft.graph.windowsAutopilotDeviceIdentity');
$requestBody->setGroupTag('Group Tag value');
$requestBody->setPurchaseOrderIdentifier('Purchase Order Identifier value');
$requestBody->setSerialNumber('Serial Number value');
$requestBody->setProductKey('Product Key value');
$requestBody->setManufacturer('Manufacturer value');
$requestBody->setModel('Model value');
$requestBody->setEnrollmentState(new EnrollmentState('enrolled'));
$requestBody->setLastContactedDateTime(new \DateTime('2016-12-31T23:58:44.2908994-08:00'));
$requestBody->setAddressableUserName('Addressable User Name value');
$requestBody->setUserPrincipalName('User Principal Name value');
$requestBody->setResourceName('Resource Name value');
$requestBody->setSkuNumber('Sku Number value');
$requestBody->setSystemFamily('System Family value');
$requestBody->setAzureActiveDirectoryDeviceId('Azure Active Directory Device Id value');
$requestBody->setManagedDeviceId('Managed Device Id value');
$requestBody->setDisplayName('Display Name value');
$result = $graphServiceClient->deviceManagement()->windowsAutopilotDeviceIdentities()->post($requestBody)->wait();
Veja a seguir um exemplo da resposta. Observação: o objeto response mostrado aqui pode estar truncado por motivos de concisão. Todas as propriedades serão retornadas de uma chamada real.
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 863
{
"@odata.type": "#microsoft.graph.windowsAutopilotDeviceIdentity",
"id": "fac6f0b1-f0b1-fac6-b1f0-c6fab1f0c6fa",
"groupTag": "Group Tag value",
"purchaseOrderIdentifier": "Purchase Order Identifier value",
"serialNumber": "Serial Number value",
"productKey": "Product Key value",
"manufacturer": "Manufacturer value",
"model": "Model value",
"enrollmentState": "enrolled",
"lastContactedDateTime": "2016-12-31T23:58:44.2908994-08:00",
"addressableUserName": "Addressable User Name value",
"userPrincipalName": "User Principal Name value",
"resourceName": "Resource Name value",
"skuNumber": "Sku Number value",
"systemFamily": "System Family value",
"azureActiveDirectoryDeviceId": "Azure Active Directory Device Id value",
"managedDeviceId": "Managed Device Id value",
"displayName": "Display Name value"
}
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulte https://aka.ms/ContentUserFeedback.