iosUpdateDeviceStatus の作成

名前空間: microsoft.graph

注:Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。

新しい iosUpdateDeviceStatus オブジェクトを作成します。

この API は、次の国内クラウド展開で使用できます。

グローバル サービス 米国政府機関 L4 米国政府機関 L5 (DOD) 21Vianet が運営する中国

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) DeviceManagementConfiguration.ReadWrite.All
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション DeviceManagementConfiguration.ReadWrite.All

HTTP 要求

POST /deviceManagement/iosUpdateStatuses

要求ヘッダー

ヘッダー
Authorization ベアラー {token}。 必須です。 認証と承認の詳細については、こちらをご覧ください。
承諾 application/json

要求本文

要求本文で、iosUpdateDeviceStatus オブジェクトの JSON 表記を指定します。

次の表に、iosUpdateDeviceStatus の作成時に必要なプロパティを示します。

プロパティ 説明
id String エンティティのキー。
installStatus iosUpdatesInstallStatus ポリシー レポートのインストール状態。 使用できる値は、availabledownloadingunknownsuccessidle、、downloadFailed、、downloadRequiresComputer、、 downloadInsufficientSpaceinstallFailednotSupportedOperationsharedDeviceUserLoggedInErrordownloadInsufficientPowerinstallingdeviceOsHigherThanDesiredOsVersiondownloadInsufficientNetworkinstallInsufficientSpaceinstallInsufficientPowerinstallPhoneCallInProgressです。
osVersion String レポートされているデバイス バージョン。
deviceId String レポートされているデバイス ID。
userId String レポートされているユーザー ID。
deviceDisplayName String DevicePolicyStatus のデバイス名。
userName String レポートされているユーザー名
deviceModel String レポートされているデバイス モデル
complianceGracePeriodExpirationDateTime DateTimeOffset デバイス コンプライアンスの猶予期間が過ぎる DateTime
status complianceStatus ポリシー レポートのコンプライアンスの状態。 可能な値は、unknownnotApplicablecompliantremediatednonComplianterrorconflictnotAssigned です。
lastReportedDateTime DateTimeOffset ポリシー レポートの最終変更日時。
userPrincipalName String UserPrincipalName。

応答

成功した場合、このメソッドは 201 Created 応答コードと、応答本文で iosUpdateDeviceStatus オブジェクトを返します。

要求

以下は、要求の例です。

POST https://graph.microsoft.com/v1.0/deviceManagement/iosUpdateStatuses
Content-type: application/json
Content-length: 552

{
  "@odata.type": "#microsoft.graph.iosUpdateDeviceStatus",
  "installStatus": "available",
  "osVersion": "Os Version value",
  "deviceId": "Device Id value",
  "userId": "User Id value",
  "deviceDisplayName": "Device Display Name value",
  "userName": "User Name value",
  "deviceModel": "Device Model value",
  "complianceGracePeriodExpirationDateTime": "2016-12-31T23:56:44.951111-08:00",
  "status": "notApplicable",
  "lastReportedDateTime": "2017-01-01T00:00:17.7769392-08:00",
  "userPrincipalName": "User Principal Name value"
}

応答

以下は、応答の例です。 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。 実際の呼び出しではすべてのプロパティが返されます。

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

{
  "@odata.type": "#microsoft.graph.iosUpdateDeviceStatus",
  "id": "63a79499-9499-63a7-9994-a7639994a763",
  "installStatus": "available",
  "osVersion": "Os Version value",
  "deviceId": "Device Id value",
  "userId": "User Id value",
  "deviceDisplayName": "Device Display Name value",
  "userName": "User Name value",
  "deviceModel": "Device Model value",
  "complianceGracePeriodExpirationDateTime": "2016-12-31T23:56:44.951111-08:00",
  "status": "notApplicable",
  "lastReportedDateTime": "2017-01-01T00:00:17.7769392-08:00",
  "userPrincipalName": "User Principal Name value"
}