创建 windowsManagedDevice

命名空间:microsoft.graph

重要提示:Microsoft 支持 Intune/beta API,但它们可能会进行更频繁的更改。 Microsoft 建议尽可能使用 v1.0 版本。 使用版本选择器检查 API 在版本 v1.0 中的可用性。

注意:适用于 Intune 的 Microsoft Graph API 需要适用于租户的活动 Intune 许可证。

创建新的 windowsManagedDevice 对象。

此 API 可用于以下国家级云部署。

全局服务 美国政府 L4 美国政府 L5 (DOD) 由世纪互联运营的中国
✅ ✅ ✅ ✅

权限

要调用此 API,需要以下权限之一。 若要了解详细信息,包括如何选择权限的信息,请参阅权限。

权限类型 权限(从最低特权到最高特权)
委派(工作或学校帐户) DeviceManagementConfiguration.ReadWrite.All, DeviceManagementManagedDevices.ReadWrite.All
委派(个人 Microsoft 帐户) 不支持。
应用程序 DeviceManagementConfiguration.ReadWrite.All, DeviceManagementManagedDevices.ReadWrite.All

HTTP 请求

POST /deviceManagement/managedDevices
POST /deviceManagement/comanagedDevices
POST /deviceManagement/deviceManagementScripts/{deviceManagementScriptId}/deviceRunStates/{deviceManagementScriptDeviceStateId}/managedDevice/users/{userId}/managedDevices
POST /deviceManagement/deviceManagementScripts/{deviceManagementScriptId}/deviceRunStates/{deviceManagementScriptDeviceStateId}/managedDevice/detectedApps/{detectedAppId}/managedDevices

请求标头

标头 值
Authorization 持有者 {token}。 必填。 详细了解 身份验证和授权。
接受 application/json

请求正文

在请求正文中,为 windowsManagedDevice 对象提供 JSON 表示形式。

下表显示了创建 windowsManagedDevice 时所需的属性。

属性 类型 说明
id String 设备的唯一标识符。 此属性是只读的。 从 managedDevice 继承
userId String 与设备关联的用户的唯一标识符。 此属性是只读的。 从 managedDevice 继承
deviceName String 设备的名称。 支持$filter运算符“eq”和“contains”。 此属性是只读的。 从 managedDevice 继承
hardwareInformation hardwareInformation 设备的可靠详细信息。 包括存储空间、制造商、序列号等信息。默认情况下,此类型的大多数属性都设置为 null/0/false,并枚举相关类型的默认值。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 不支持$Search。 只读。 此属性是只读的。 从 managedDevice 继承
ownerType ownerType 设备的所有权。 可能的值为“公司”或“个人”。 默认为未知。 支持$filter运算符“eq”和“or”。 继承自 managedDevice。 可取值为:unknown、company、personal。
managedDeviceOwnerType managedDeviceOwnerType 设备的所有权。 可以是“公司”或“个人” 继承自 managedDevice。 可取值为:unknown、company、personal。
deviceActionResults deviceActionResult 集合 ComplexType deviceActionResult 对象的列表。 此属性是只读的。 从 managedDevice 继承
managementState managementState 设备的管理状态。 示例:托管、RetirePending 等。默认为托管。 支持$filter运算符“eq”和“or”。 此属性是只读的。 继承自 managedDevice。 可能的值是:managed、retirePending、retireFailed、wipePending、wipeFailed、unhealthy、deletePending、retireIssued、wipeIssued、wipeCanceled、retireCanceled、discovered、unknownFutureValue。
enrolledDateTime DateTimeOffset 设备的注册时间。 支持$filter运算符“lt”和“gt”。 此属性是只读的。 从 managedDevice 继承
lastSyncDateTime DateTimeOffset 设备上次成功完成与 Intune 同步的日期和时间。 支持$filter运算符“lt”和“gt”。 此属性是只读的。 从 managedDevice 继承
chassisType chassisType 设备的机箱类型。 此属性是只读的。 继承自 managedDevice。 可取值为:unknown、desktop、laptop、worksWorkstation、enterpriseServer、phone、tablet、mobileOther、mobileUnknown。
operatingSystem String 设备的操作系统。 Windows、iOS 等支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
deviceType deviceType 设备的平台。 示例:桌面、WindowsRT 等。默认为未知。 支持$filter运算符“eq”和“or”。 此属性是只读的。 继承自 managedDevice。 可能的值为: desktop、、windowsRT、 winMO6nokiawindowsPhonemacwinCEwinEmbeddediPhoneiPadiPodandroidiSocConsumerunixmacMDMholoLenssurfaceHubandroidForWorkandroidEnterprisewindows10xandroidnGMSchromeOSlinuxvisionOStvOSblackberrypalmunknowncloudPC
complianceState complianceState 设备的符合性状态。 示例:合规、冲突、错误等。默认为未知。 支持$filter运算符“eq”和“or”。 此属性是只读的。 继承自 managedDevice。 可取值为:unknown、compliant、noncompliant、conflict、error、inGracePeriod、configManager。
jailBroken String 设备是否已越狱或已获得 root。 默认值为空字符串。 支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
managementAgent managementAgentType 设备的管理通道。 示例:Intune、EAS 等。默认值为未知。 支持$filter运算符“eq”和“or”。 此属性是只读的。 继承自 managedDevice。 可取值为:eas、mdm、easMdm、intuneClient、easIntuneClient、configurationManagerClient、configurationManagerClientMdm、configurationManagerClientMdmEas、unknown、jamf、googleCloudDevicePolicyController、microsoft365ManagedMdm、msSense、intuneAosp、google、unknownFutureValue。
osVersion String 设备的操作系统版本。 支持$filter运算符“contains”。 此属性是只读的。 从 managedDevice 继承
easActivated Boolean 设备是否已激活 Exchange ActiveSync。 此属性是只读的。 从 managedDevice 继承
easDeviceId String 设备的 Exchange ActiveSync ID。 此属性是只读的。 从 managedDevice 继承
easActivationDateTime DateTimeOffset 设备的 Exchange ActivationSync 激活时间。 此属性是只读的。 从 managedDevice 继承
aadRegistered 布尔值 设备是否已注册 Azure Active Directory。 此属性是只读的。 从 managedDevice 继承
azureADRegistered Boolean 设备是否已注册 Azure Active Directory。 此属性是只读的。 从 managedDevice 继承
deviceEnrollmentType deviceEnrollmentType 设备的注册类型。 此属性是只读的。 继承自 managedDevice。 可能的值为:unknown、、userEnrollment、 deviceEnrollmentManagerappleBulkWithUserappleBulkWithoutUserwindowsAzureADJoinwindowsBulkUserlesswindowsAutoEnrollmentwindowsBulkAzureDomainJoinwindowsCoManagementwindowsAzureADJoinUsingDeviceAuthappleUserEnrollmentappleUserEnrollmentWithServiceAccountazureAdJoinUsingAzureVmExtensionandroidEnterpriseDedicatedDeviceandroidEnterpriseFullyManagedandroidEnterpriseCorporateWorkProfileandroidAOSPUserOwnedDeviceEnrollmentandroidAOSPUserlessDeviceEnrollment, , appleAccountDrivenUserEnrollmentunknownFutureValue
lostModeState lostModeState 指示是否启用或禁用了“丢失”模式。 此属性是只读的。 继承自 managedDevice。 可取值为:disabled、enabled。
activationLockBypassCode String 允许绕过受管理设备上的激活锁的代码。 默认值,为 Null (当在 LIST 调用中作为 managedDevice 实体的一部分返回时,此属性的非默认属性) 。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 不支持$Search。 只读。 此属性是只读的。 从 managedDevice 继承
emailAddress String Email (与设备关联的用户的) 。 支持$filter运算符“contains”。 此属性是只读的。 从 managedDevice 继承
azureActiveDirectoryDeviceId String Azure Active Directory 设备的唯一标识符。 只读。 此属性是只读的。 从 managedDevice 继承
azureADDeviceId String Azure Active Directory 设备的唯一标识符。 支持$filter运算符“eq”,而不与 count 组合。 只读。 此属性是只读的。 从 managedDevice 继承
deviceRegistrationState deviceRegistrationState 设备注册状态。 此属性是只读的。 继承自 managedDevice。 可取值为:notRegistered、registered、revoked、keyConflict、approvalPending、certificateReset、notRegisteredPendingEnrollment、unknown。
deviceCategoryDisplayName String 设备类别显示名称。 默认值为空字符串。 支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
isSupervised 布尔值 设备受监督状态。 此属性是只读的。 从 managedDevice 继承
exchangeLastSuccessfulSyncDateTime DateTimeOffset 设备上次与 Exchange 联系的时间。 此属性是只读的。 从 managedDevice 继承
exchangeAccessState deviceManagementExchangeAccessState Exchange 中设备的访问状态。 支持$filter运算符“eq”和“or”。 此属性是只读的。 继承自 managedDevice。 可取值为:none、unknown、allowed、blocked、quarantined。
exchangeAccessStateReason deviceManagementExchangeAccessStateReason Exchange 中设备访问状态的出现原因。 此属性是只读的。 继承自 managedDevice。 可取值为:none、unknown、exchangeGlobalRule、exchangeIndividualRule、exchangeDeviceRule、exchangeUpgrade、exchangeMailboxPolicy、other、compliant、notCompliant、notEnrolled、unknownLocation、mfaRequired、azureADBlockDueToAccessPolicy、compromisedPassword、deviceNotKnownWithManagedApp。
remoteAssistanceSessionUrl String 允许与设备建立远程协助会话的 URL。 默认值为空字符串。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 此属性是只读的。 从 managedDevice 继承
remoteAssistanceSessionErrorDetails String 用于在创建远程协助会话对象时识别问题的错误字符串。 此属性是只读的。 从 managedDevice 继承
isEncrypted 布尔值 设备加密状态。 此属性是只读的。 从 managedDevice 继承
userPrincipalName String 设备用户主体名称。 支持$filter运算符“eq”和“ne”。 此属性是只读的。 从 managedDevice 继承
enrolledByUserPrincipalName String 负责设备注册的用户的 Entra (Azure AD) 用户主体名称 (UPN) 。 此属性是只读的。 从 managedDevice 继承
model String 设备的型号。 支持$filter运算符“eq”和“contains”。 此属性是只读的。 从 managedDevice 继承
manufacturer String 设备的制造商。 支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
imei String 设备的 IMEI。 支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
complianceGracePeriodExpirationDateTime DateTimeOffset 设备合规性宽限期到期的日期时间。 支持$filter运算符“lt”和“gt”。 此属性是只读的。 从 managedDevice 继承
serialNumber String 设备的 SerialNumber。 支持$filter运算符“eq”和“or”。 此属性是只读的。 从 managedDevice 继承
phoneNumber String 设备的电话号码。 支持$filter运算符“contains”。 此属性是只读的。 从 managedDevice 继承
androidSecurityPatchLevel String Android 安全修补程序级别。 此属性是只读的。 从 managedDevice 继承
userDisplayName String 用户显示名称。 此属性是只读的。 从 managedDevice 继承
configurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures ConfigrMgr 客户端已启用功能。 此属性是只读的。 从 managedDevice 继承
wiFiMacAddress String Wi-Fi MAC。 此属性是只读的。 从 managedDevice 继承
deviceHealthAttestationState deviceHealthAttestationState 设备运行状况证明状态。 此属性是只读的。 从 managedDevice 继承
subscriberCarrier String 订户运营商。 此属性是只读的。 从 managedDevice 继承
meid String MEID. 此属性是只读的。 从 managedDevice 继承
totalStorageSpaceInBytes Int64 总存储空间(以字节为单位)。 此属性是只读的。 从 managedDevice 继承
freeStorageSpaceInBytes Int64 可用存储(以字节为单位)。 默认值为 0 。 只读。 此属性是只读的。 从 managedDevice 继承
managedDeviceName String 用于识别设备的自动生成的名称。 可以覆盖为用户友好名称。 从 managedDevice 继承
partnerReportedThreatState managedDevicePartnerReportedHealthState 指示帐户和设备正在使用移动威胁防护合作伙伴时设备的威胁状态。 只读。 此属性是只读的。 继承自 managedDevice。 可取值为:unknown、activated、deactivated、secured、lowSeverity、mediumSeverity、highSeverity、unresponsive、compromised、misconfigured。
retireAfterDateTime DateTimeOffset 指示设备由于计划的操作而自动停用的时间。 此属性是只读的。 从 managedDevice 继承
usersLoggedOn loggedOnUser 集合 指示设备的最后登录用户。 此属性是只读的。 从 managedDevice 继承
preferMdmOverGroupPolicyAppliedDateTime DateTimeOffset 报告设置 preferMdmOverGroupPolicy 设置的日期时间。 设置后,如果发生冲突,Intune MDM 设置将替代组策略设置。 只读。 此属性是只读的。 从 managedDevice 继承
autopilotEnrolled 布尔值 报告受管理设备是否通过 Auto-Pilot 注册。 此属性是只读的。 从 managedDevice 继承
requireUserEnrollmentApproval 布尔值 报告托管的 iOS 设备是否为用户审批注册。 此属性是只读的。 从 managedDevice 继承
managementCertificateExpirationDate DateTimeOffset 报告设备管理证书到期日期。 此属性是只读的。 从 managedDevice 继承
ICCID String 集成电路卡标识符,它是SIM卡的唯一标识号。 默认值为空字符串。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 不支持$Search。 只读。 此属性是只读的。 从 managedDevice 继承
udid String iOS 和 macOS 设备的唯一设备标识符。 默认值为空字符串。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 不支持$Search。 只读。 此属性是只读的。 从 managedDevice 继承
roleScopeTagIds 字符串集合 此设备实例的作用域标记 ID 的列表。 从 managedDevice 继承
windowsActiveMalwareCount Int32 此 Windows 设备的活动恶意软件计数。 默认值为 0。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 此属性是只读的。 从 managedDevice 继承
windowsRemediatedMalwareCount Int32 此 Windows 设备已修正的恶意软件的计数。 默认值为 0。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 此属性是只读的。 从 managedDevice 继承
notes String 有关 IT 管理员创建的设备的注释。默认值为 null。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 不支持$Search。 从 managedDevice 继承
configurationManagerClientHealthState configurationManagerClientHealthState Configuration Manager 客户端运行状况状态,仅对由 MDM/ConfigMgr 代理管理的设备有效 继承自 managedDevice
configurationManagerClientInformation configurationManagerClientInformation Configuration Manager 客户端信息,仅对由 ConfigMgr 代理托管、决斗管理或三重管理的设备有效 继承自 managedDevice
ethernetMacAddress String 指示设备的以太网 MAC 地址。 默认值为 Null, (作为 managedDevice 实体的一部分返回时,此属性的非默认属性) 。 需要使用选择查询选项进行单独的 get 调用才能检索实际值。 示例:deviceManagement/managedDevices ({managedDeviceId}) ?$select=ethernetMacAddress 支持:$select。 不支持$Search。 只读。 此属性是只读的。 从 managedDevice 继承
physicalMemoryInBytes Int64 总内存(以字节为单位)。 默认值为 0。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 支持:$select。 只读。 此属性是只读的。 从 managedDevice 继承
processorArchitecture managedDeviceArchitecture 处理器体系结构。 此属性是只读的。 继承自 managedDevice。 可取值为:unknown、x86、x64、arm、arM64。
specificationVersion String 规范版本。 此属性是只读的。 从 managedDevice 继承
joinType joinType 设备加入类型 继承自 managedDevice。 可能的值是:unknown、azureADJoined、azureADRegistered、hybridAzureADJoined。
skuFamily String 设备 SKU 系列 继承自 managedDevice
securityPatchLevel String 这指示操作系统的安全修补程序级别。 这些特殊更新包含重要的安全修补程序。 对于 iOS/MacOS,它们采用 () 格式。 对于 Android,它的格式为 2017-08-07。 此属性是只读的。 从 managedDevice 继承
skuNumber Int32 设备 SKU 号,另请参阅: https://learn.microsoft.com/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo。 有效值 0 到 2147483647。 此属性是只读的。 从 managedDevice 继承
managementFeatures managedDeviceManagementFeatures 设备管理功能 继承自 managedDevice。 可取值为:none、microsoftManagedDesktop。
chromeOSDeviceInfo chromeOSDeviceProperty 集合 ChromeOS 设备的属性列表。 默认值为空列表。 要检索实际值,需要使用设备 ID 进行 GET 调用,并将其包含在 select 参数中。 从 managedDevice 继承
supplementalDeviceDetails supplementalDeviceDetail 集合 设备提供的用于描述其自身状态的属性列表。 每个属性包括标题、值和值类型。 这些属性将特定于平台,并由设备动态填充。 默认值为空列表。 要检索实际值,需要进行 GET 调用,使用设备 ID 并将其作为$SELECT参数包含在内。 只读。 从 managedDevice 继承
enrollmentProfileName String 分配给设备的注册配置文件的名称。 默认值为空字符串,指示未分配任何注册配置文件。 此属性是只读的。 从 managedDevice 继承
bootstrapTokenEscrowed 布尔值 报告托管设备是否具有托管的启动令牌。 这仅适用于 macOS 设备。 若要获取,请在 select 子句中包括 BootstrapTokenEscrowed,并使用设备 ID 进行查询。如果为 FALSE,则不会托管任何引导令牌。 如果为 TRUE,则设备已通过 Intune 托管引导令牌。 此属性是只读的。 从 managedDevice 继承
deviceFirmwareConfigurationInterfaceManaged 布尔值 指示设备是否由 DFCI 托管。 如果为 TRUE,则设备由 DFCI 托管。 如果为 FALSE,则设备不受 DFCI 管理。 默认值为 FALSE。 从 managedDevice 继承
deviceIdentityAttestationDetail deviceIdentityAttestationDetail 指示受管理设备的证明状态。 以及以什么方式。 默认值:未知。 从 managedDevice 继承

响应

如果成功,此方法将在响应正文中返回 201 Created 响应代码和 windowsManagedDevice 对象。

示例

请求

下面是一个请求示例。

POST https://graph.microsoft.com/beta/deviceManagement/managedDevices
Content-type: application/json
Content-length: 9961

{
  "@odata.type": "#microsoft.graph.windowsManagedDevice",
  "userId": "User Id value",
  "deviceName": "Device Name value",
  "hardwareInformation": {
    "@odata.type": "microsoft.graph.hardwareInformation",
    "serialNumber": "Serial Number value",
    "totalStorageSpace": 1,
    "freeStorageSpace": 0,
    "imei": "Imei value",
    "meid": "Meid value",
    "manufacturer": "Manufacturer value",
    "model": "Model value",
    "phoneNumber": "Phone Number value",
    "subscriberCarrier": "Subscriber Carrier value",
    "cellularTechnology": "Cellular Technology value",
    "wifiMac": "Wifi Mac value",
    "operatingSystemLanguage": "Operating System Language value",
    "isSupervised": true,
    "isEncrypted": true,
    "batterySerialNumber": "Battery Serial Number value",
    "batteryHealthPercentage": 7,
    "batteryChargeCycles": 3,
    "isSharedDevice": true,
    "sharedDeviceCachedUsers": [
      {
        "@odata.type": "microsoft.graph.sharedAppleDeviceUser",
        "userPrincipalName": "User Principal Name value",
        "dataToSync": true,
        "dataQuota": 9,
        "dataUsed": 8
      }
    ],
    "tpmSpecificationVersion": "Tpm Specification Version value",
    "operatingSystemEdition": "Operating System Edition value",
    "deviceFullQualifiedDomainName": "Device Full Qualified Domain Name value",
    "deviceGuardVirtualizationBasedSecurityHardwareRequirementState": "secureBootRequired",
    "deviceGuardVirtualizationBasedSecurityState": "rebootRequired",
    "deviceGuardLocalSystemAuthorityCredentialGuardState": "rebootRequired",
    "osBuildNumber": "Os Build Number value",
    "operatingSystemProductType": 10,
    "ipAddressV4": "Ip Address V4 value",
    "subnetAddress": "Subnet Address value",
    "esimIdentifier": "Esim Identifier value",
    "systemManagementBIOSVersion": "System Management BIOSVersion value",
    "tpmManufacturer": "Tpm Manufacturer value",
    "tpmVersion": "Tpm Version value",
    "wiredIPv4Addresses": [
      "Wired IPv4Addresses value"
    ],
    "batteryLevelPercentage": 7.333333333333333,
    "residentUsersCount": 2,
    "productName": "Product Name value",
    "deviceLicensingStatus": "licenseRefreshPending",
    "deviceLicensingLastErrorCode": 12,
    "deviceLicensingLastErrorDescription": "Device Licensing Last Error Description value"
  },
  "ownerType": "company",
  "managedDeviceOwnerType": "company",
  "deviceActionResults": [
    {
      "@odata.type": "microsoft.graph.deviceActionResult",
      "actionName": "Action Name value",
      "actionState": "pending",
      "startDateTime": "2016-12-31T23:58:46.7156189-08:00",
      "lastUpdatedDateTime": "2017-01-01T00:00:56.8321556-08:00"
    }
  ],
  "managementState": "retirePending",
  "enrolledDateTime": "2016-12-31T23:59:43.797191-08:00",
  "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
  "chassisType": "desktop",
  "operatingSystem": "Operating System value",
  "deviceType": "windowsRT",
  "complianceState": "compliant",
  "jailBroken": "Jail Broken value",
  "managementAgent": "mdm",
  "osVersion": "Os Version value",
  "easActivated": true,
  "easDeviceId": "Eas Device Id value",
  "easActivationDateTime": "2016-12-31T23:59:43.4878784-08:00",
  "aadRegistered": true,
  "azureADRegistered": true,
  "deviceEnrollmentType": "userEnrollment",
  "lostModeState": "enabled",
  "activationLockBypassCode": "Activation Lock Bypass Code value",
  "emailAddress": "Email Address value",
  "azureActiveDirectoryDeviceId": "Azure Active Directory Device Id value",
  "azureADDeviceId": "Azure ADDevice Id value",
  "deviceRegistrationState": "registered",
  "deviceCategoryDisplayName": "Device Category Display Name value",
  "isSupervised": true,
  "exchangeLastSuccessfulSyncDateTime": "2017-01-01T00:00:45.8803083-08:00",
  "exchangeAccessState": "unknown",
  "exchangeAccessStateReason": "unknown",
  "remoteAssistanceSessionUrl": "https://example.com/remoteAssistanceSessionUrl/",
  "remoteAssistanceSessionErrorDetails": "Remote Assistance Session Error Details value",
  "isEncrypted": true,
  "userPrincipalName": "User Principal Name value",
  "enrolledByUserPrincipalName": "Enrolled By User Principal Name value",
  "model": "Model value",
  "manufacturer": "Manufacturer value",
  "imei": "Imei value",
  "complianceGracePeriodExpirationDateTime": "2016-12-31T23:56:44.951111-08:00",
  "serialNumber": "Serial Number value",
  "phoneNumber": "Phone Number value",
  "androidSecurityPatchLevel": "Android Security Patch Level value",
  "userDisplayName": "User Display Name value",
  "configurationManagerClientEnabledFeatures": {
    "@odata.type": "microsoft.graph.configurationManagerClientEnabledFeatures",
    "inventory": true,
    "modernApps": true,
    "resourceAccess": true,
    "deviceConfiguration": true,
    "compliancePolicy": true,
    "windowsUpdateForBusiness": true,
    "endpointProtection": true,
    "officeApps": true
  },
  "wiFiMacAddress": "Wi Fi Mac Address value",
  "deviceHealthAttestationState": {
    "@odata.type": "microsoft.graph.deviceHealthAttestationState",
    "lastUpdateDateTime": "Last Update Date Time value",
    "contentNamespaceUrl": "https://example.com/contentNamespaceUrl/",
    "deviceHealthAttestationStatus": "Device Health Attestation Status value",
    "contentVersion": "Content Version value",
    "issuedDateTime": "2016-12-31T23:58:22.1231038-08:00",
    "attestationIdentityKey": "Attestation Identity Key value",
    "resetCount": 10,
    "restartCount": 12,
    "dataExcutionPolicy": "Data Excution Policy value",
    "bitLockerStatus": "Bit Locker Status value",
    "bootManagerVersion": "Boot Manager Version value",
    "codeIntegrityCheckVersion": "Code Integrity Check Version value",
    "secureBoot": "Secure Boot value",
    "bootDebugging": "Boot Debugging value",
    "operatingSystemKernelDebugging": "Operating System Kernel Debugging value",
    "codeIntegrity": "Code Integrity value",
    "testSigning": "Test Signing value",
    "safeMode": "Safe Mode value",
    "windowsPE": "Windows PE value",
    "earlyLaunchAntiMalwareDriverProtection": "Early Launch Anti Malware Driver Protection value",
    "virtualSecureMode": "Virtual Secure Mode value",
    "pcrHashAlgorithm": "Pcr Hash Algorithm value",
    "bootAppSecurityVersion": "Boot App Security Version value",
    "bootManagerSecurityVersion": "Boot Manager Security Version value",
    "tpmVersion": "Tpm Version value",
    "pcr0": "Pcr0 value",
    "secureBootConfigurationPolicyFingerPrint": "Secure Boot Configuration Policy Finger Print value",
    "codeIntegrityPolicy": "Code Integrity Policy value",
    "bootRevisionListInfo": "Boot Revision List Info value",
    "operatingSystemRevListInfo": "Operating System Rev List Info value",
    "healthStatusMismatchInfo": "Health Status Mismatch Info value",
    "healthAttestationSupportedStatus": "Health Attestation Supported Status value",
    "memoryIntegrityProtection": "enabled",
    "memoryAccessProtection": "enabled",
    "virtualizationBasedSecurity": "enabled",
    "firmwareProtection": "systemGuardSecureLaunch",
    "systemManagementMode": "level1",
    "securedCorePC": "enabled"
  },
  "subscriberCarrier": "Subscriber Carrier value",
  "meid": "Meid value",
  "totalStorageSpaceInBytes": 8,
  "freeStorageSpaceInBytes": 7,
  "managedDeviceName": "Managed Device Name value",
  "partnerReportedThreatState": "activated",
  "retireAfterDateTime": "2016-12-31T23:57:37.576134-08:00",
  "usersLoggedOn": [
    {
      "@odata.type": "microsoft.graph.loggedOnUser",
      "userId": "User Id value",
      "lastLogOnDateTime": "2016-12-31T23:58:37.4262708-08:00"
    }
  ],
  "preferMdmOverGroupPolicyAppliedDateTime": "2016-12-31T23:57:34.4649887-08:00",
  "autopilotEnrolled": true,
  "requireUserEnrollmentApproval": true,
  "managementCertificateExpirationDate": "2016-12-31T23:57:59.9789653-08:00",
  "iccid": "Iccid value",
  "udid": "Udid value",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "windowsActiveMalwareCount": 9,
  "windowsRemediatedMalwareCount": 13,
  "notes": "Notes value",
  "configurationManagerClientHealthState": {
    "@odata.type": "microsoft.graph.configurationManagerClientHealthState",
    "state": "installed",
    "errorCode": 9,
    "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00"
  },
  "configurationManagerClientInformation": {
    "@odata.type": "microsoft.graph.configurationManagerClientInformation",
    "clientIdentifier": "Client Identifier value",
    "isBlocked": true,
    "clientVersion": "Client Version value"
  },
  "ethernetMacAddress": "Ethernet Mac Address value",
  "physicalMemoryInBytes": 5,
  "processorArchitecture": "x86",
  "specificationVersion": "Specification Version value",
  "joinType": "azureADJoined",
  "skuFamily": "Sku Family value",
  "securityPatchLevel": "Security Patch Level value",
  "skuNumber": 9,
  "managementFeatures": "microsoftManagedDesktop",
  "chromeOSDeviceInfo": [
    {
      "@odata.type": "microsoft.graph.chromeOSDeviceProperty",
      "name": "Name value",
      "value": "Value value",
      "valueType": "Value Type value",
      "updatable": true
    }
  ],
  "supplementalDeviceDetails": [
    {
      "@odata.type": "microsoft.graph.supplementalDeviceDetail",
      "propertyName": "Property Name value",
      "propertyValue": "Property Value value",
      "propertyType": "Property Type value"
    }
  ],
  "enrollmentProfileName": "Enrollment Profile Name value",
  "bootstrapTokenEscrowed": true,
  "deviceFirmwareConfigurationInterfaceManaged": true,
  "deviceIdentityAttestationDetail": {
    "@odata.type": "microsoft.graph.deviceIdentityAttestationDetail",
    "deviceIdentityAttestationStatus": "trusted"
  }
}

响应

下面是一个响应示例。 注意:为简洁起见,可能会截断此处显示的响应对象。 将从实际调用中返回所有属性。

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 10010

{
  "@odata.type": "#microsoft.graph.windowsManagedDevice",
  "id": "97842b67-2b67-9784-672b-8497672b8497",
  "userId": "User Id value",
  "deviceName": "Device Name value",
  "hardwareInformation": {
    "@odata.type": "microsoft.graph.hardwareInformation",
    "serialNumber": "Serial Number value",
    "totalStorageSpace": 1,
    "freeStorageSpace": 0,
    "imei": "Imei value",
    "meid": "Meid value",
    "manufacturer": "Manufacturer value",
    "model": "Model value",
    "phoneNumber": "Phone Number value",
    "subscriberCarrier": "Subscriber Carrier value",
    "cellularTechnology": "Cellular Technology value",
    "wifiMac": "Wifi Mac value",
    "operatingSystemLanguage": "Operating System Language value",
    "isSupervised": true,
    "isEncrypted": true,
    "batterySerialNumber": "Battery Serial Number value",
    "batteryHealthPercentage": 7,
    "batteryChargeCycles": 3,
    "isSharedDevice": true,
    "sharedDeviceCachedUsers": [
      {
        "@odata.type": "microsoft.graph.sharedAppleDeviceUser",
        "userPrincipalName": "User Principal Name value",
        "dataToSync": true,
        "dataQuota": 9,
        "dataUsed": 8
      }
    ],
    "tpmSpecificationVersion": "Tpm Specification Version value",
    "operatingSystemEdition": "Operating System Edition value",
    "deviceFullQualifiedDomainName": "Device Full Qualified Domain Name value",
    "deviceGuardVirtualizationBasedSecurityHardwareRequirementState": "secureBootRequired",
    "deviceGuardVirtualizationBasedSecurityState": "rebootRequired",
    "deviceGuardLocalSystemAuthorityCredentialGuardState": "rebootRequired",
    "osBuildNumber": "Os Build Number value",
    "operatingSystemProductType": 10,
    "ipAddressV4": "Ip Address V4 value",
    "subnetAddress": "Subnet Address value",
    "esimIdentifier": "Esim Identifier value",
    "systemManagementBIOSVersion": "System Management BIOSVersion value",
    "tpmManufacturer": "Tpm Manufacturer value",
    "tpmVersion": "Tpm Version value",
    "wiredIPv4Addresses": [
      "Wired IPv4Addresses value"
    ],
    "batteryLevelPercentage": 7.333333333333333,
    "residentUsersCount": 2,
    "productName": "Product Name value",
    "deviceLicensingStatus": "licenseRefreshPending",
    "deviceLicensingLastErrorCode": 12,
    "deviceLicensingLastErrorDescription": "Device Licensing Last Error Description value"
  },
  "ownerType": "company",
  "managedDeviceOwnerType": "company",
  "deviceActionResults": [
    {
      "@odata.type": "microsoft.graph.deviceActionResult",
      "actionName": "Action Name value",
      "actionState": "pending",
      "startDateTime": "2016-12-31T23:58:46.7156189-08:00",
      "lastUpdatedDateTime": "2017-01-01T00:00:56.8321556-08:00"
    }
  ],
  "managementState": "retirePending",
  "enrolledDateTime": "2016-12-31T23:59:43.797191-08:00",
  "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
  "chassisType": "desktop",
  "operatingSystem": "Operating System value",
  "deviceType": "windowsRT",
  "complianceState": "compliant",
  "jailBroken": "Jail Broken value",
  "managementAgent": "mdm",
  "osVersion": "Os Version value",
  "easActivated": true,
  "easDeviceId": "Eas Device Id value",
  "easActivationDateTime": "2016-12-31T23:59:43.4878784-08:00",
  "aadRegistered": true,
  "azureADRegistered": true,
  "deviceEnrollmentType": "userEnrollment",
  "lostModeState": "enabled",
  "activationLockBypassCode": "Activation Lock Bypass Code value",
  "emailAddress": "Email Address value",
  "azureActiveDirectoryDeviceId": "Azure Active Directory Device Id value",
  "azureADDeviceId": "Azure ADDevice Id value",
  "deviceRegistrationState": "registered",
  "deviceCategoryDisplayName": "Device Category Display Name value",
  "isSupervised": true,
  "exchangeLastSuccessfulSyncDateTime": "2017-01-01T00:00:45.8803083-08:00",
  "exchangeAccessState": "unknown",
  "exchangeAccessStateReason": "unknown",
  "remoteAssistanceSessionUrl": "https://example.com/remoteAssistanceSessionUrl/",
  "remoteAssistanceSessionErrorDetails": "Remote Assistance Session Error Details value",
  "isEncrypted": true,
  "userPrincipalName": "User Principal Name value",
  "enrolledByUserPrincipalName": "Enrolled By User Principal Name value",
  "model": "Model value",
  "manufacturer": "Manufacturer value",
  "imei": "Imei value",
  "complianceGracePeriodExpirationDateTime": "2016-12-31T23:56:44.951111-08:00",
  "serialNumber": "Serial Number value",
  "phoneNumber": "Phone Number value",
  "androidSecurityPatchLevel": "Android Security Patch Level value",
  "userDisplayName": "User Display Name value",
  "configurationManagerClientEnabledFeatures": {
    "@odata.type": "microsoft.graph.configurationManagerClientEnabledFeatures",
    "inventory": true,
    "modernApps": true,
    "resourceAccess": true,
    "deviceConfiguration": true,
    "compliancePolicy": true,
    "windowsUpdateForBusiness": true,
    "endpointProtection": true,
    "officeApps": true
  },
  "wiFiMacAddress": "Wi Fi Mac Address value",
  "deviceHealthAttestationState": {
    "@odata.type": "microsoft.graph.deviceHealthAttestationState",
    "lastUpdateDateTime": "Last Update Date Time value",
    "contentNamespaceUrl": "https://example.com/contentNamespaceUrl/",
    "deviceHealthAttestationStatus": "Device Health Attestation Status value",
    "contentVersion": "Content Version value",
    "issuedDateTime": "2016-12-31T23:58:22.1231038-08:00",
    "attestationIdentityKey": "Attestation Identity Key value",
    "resetCount": 10,
    "restartCount": 12,
    "dataExcutionPolicy": "Data Excution Policy value",
    "bitLockerStatus": "Bit Locker Status value",
    "bootManagerVersion": "Boot Manager Version value",
    "codeIntegrityCheckVersion": "Code Integrity Check Version value",
    "secureBoot": "Secure Boot value",
    "bootDebugging": "Boot Debugging value",
    "operatingSystemKernelDebugging": "Operating System Kernel Debugging value",
    "codeIntegrity": "Code Integrity value",
    "testSigning": "Test Signing value",
    "safeMode": "Safe Mode value",
    "windowsPE": "Windows PE value",
    "earlyLaunchAntiMalwareDriverProtection": "Early Launch Anti Malware Driver Protection value",
    "virtualSecureMode": "Virtual Secure Mode value",
    "pcrHashAlgorithm": "Pcr Hash Algorithm value",
    "bootAppSecurityVersion": "Boot App Security Version value",
    "bootManagerSecurityVersion": "Boot Manager Security Version value",
    "tpmVersion": "Tpm Version value",
    "pcr0": "Pcr0 value",
    "secureBootConfigurationPolicyFingerPrint": "Secure Boot Configuration Policy Finger Print value",
    "codeIntegrityPolicy": "Code Integrity Policy value",
    "bootRevisionListInfo": "Boot Revision List Info value",
    "operatingSystemRevListInfo": "Operating System Rev List Info value",
    "healthStatusMismatchInfo": "Health Status Mismatch Info value",
    "healthAttestationSupportedStatus": "Health Attestation Supported Status value",
    "memoryIntegrityProtection": "enabled",
    "memoryAccessProtection": "enabled",
    "virtualizationBasedSecurity": "enabled",
    "firmwareProtection": "systemGuardSecureLaunch",
    "systemManagementMode": "level1",
    "securedCorePC": "enabled"
  },
  "subscriberCarrier": "Subscriber Carrier value",
  "meid": "Meid value",
  "totalStorageSpaceInBytes": 8,
  "freeStorageSpaceInBytes": 7,
  "managedDeviceName": "Managed Device Name value",
  "partnerReportedThreatState": "activated",
  "retireAfterDateTime": "2016-12-31T23:57:37.576134-08:00",
  "usersLoggedOn": [
    {
      "@odata.type": "microsoft.graph.loggedOnUser",
      "userId": "User Id value",
      "lastLogOnDateTime": "2016-12-31T23:58:37.4262708-08:00"
    }
  ],
  "preferMdmOverGroupPolicyAppliedDateTime": "2016-12-31T23:57:34.4649887-08:00",
  "autopilotEnrolled": true,
  "requireUserEnrollmentApproval": true,
  "managementCertificateExpirationDate": "2016-12-31T23:57:59.9789653-08:00",
  "iccid": "Iccid value",
  "udid": "Udid value",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "windowsActiveMalwareCount": 9,
  "windowsRemediatedMalwareCount": 13,
  "notes": "Notes value",
  "configurationManagerClientHealthState": {
    "@odata.type": "microsoft.graph.configurationManagerClientHealthState",
    "state": "installed",
    "errorCode": 9,
    "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00"
  },
  "configurationManagerClientInformation": {
    "@odata.type": "microsoft.graph.configurationManagerClientInformation",
    "clientIdentifier": "Client Identifier value",
    "isBlocked": true,
    "clientVersion": "Client Version value"
  },
  "ethernetMacAddress": "Ethernet Mac Address value",
  "physicalMemoryInBytes": 5,
  "processorArchitecture": "x86",
  "specificationVersion": "Specification Version value",
  "joinType": "azureADJoined",
  "skuFamily": "Sku Family value",
  "securityPatchLevel": "Security Patch Level value",
  "skuNumber": 9,
  "managementFeatures": "microsoftManagedDesktop",
  "chromeOSDeviceInfo": [
    {
      "@odata.type": "microsoft.graph.chromeOSDeviceProperty",
      "name": "Name value",
      "value": "Value value",
      "valueType": "Value Type value",
      "updatable": true
    }
  ],
  "supplementalDeviceDetails": [
    {
      "@odata.type": "microsoft.graph.supplementalDeviceDetail",
      "propertyName": "Property Name value",
      "propertyValue": "Property Value value",
      "propertyType": "Property Type value"
    }
  ],
  "enrollmentProfileName": "Enrollment Profile Name value",
  "bootstrapTokenEscrowed": true,
  "deviceFirmwareConfigurationInterfaceManaged": true,
  "deviceIdentityAttestationDetail": {
    "@odata.type": "microsoft.graph.deviceIdentityAttestationDetail",
    "deviceIdentityAttestationStatus": "trusted"
  }
}