CreatemobileAppInstallStatus

名前空間: microsoft.graph

重要:Microsoft は Intune /beta API をサポートしていますが、より頻繁に変更される可能性があります。 可能な場合は、バージョン v1.0 を使用することをお勧めします。 バージョン セレクターを使用して、バージョン v1.0 で API が使用できるかどうかを確認します。

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

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

アクセス許可

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

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

HTTP 要求

POST /deviceAppManagement/mobileApps/{mobileAppId}/deviceStatuses
POST /deviceAppManagement/mobileApps/{mobileAppId}/userStatuses/{userAppInstallStatusId}/deviceStatuses

要求ヘッダー

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

要求本文

リクエストの本文で、mobileAppInstallStatus オブジェクトの JSON 表現を指定します。

次の表に、mobileAppInstallStatus を作成するときに必要なプロパティを示します。

プロパティ 説明
id String エンティティのキー。
deviceName 文字列 デバイス名
deviceId 文字列 デバイス ID
lastSyncDateTime DateTimeOffset 前回の同期日時
mobileAppInstallStatusValue resultantAppState アプリのインストール状態。 使用可能な値: installedfailednotInstalleduninstallFailedpendingInstallunknownnotApplicable
installState resultantAppState アプリのインストール状態。 使用可能な値: installedfailednotInstalleduninstallFailedpendingInstallunknownnotApplicable
installStateDetail resultantAppStateDetail アプリのインストール状態の詳細。 可能な値は、 noAdditionalDetailsdependencyFailedToInstalldependencyWithRequirementsNotMetdependencyPendingRebootdependencyWithAutoInstallDisabledsupersededAppUninstallFailedsupersededAppUninstallPendingRebootremovingSupersededAppsiosAppStoreUpdateFailedToInstallvppAppHasUpdateAvailableuserRejectedUpdateuninstallPendingRebootsupersedingAppsDetectedsupersededAppsDetectedseeInstallErrorCodeautoInstallDisabledmanagedAppNoLongerPresentuserRejectedInstalluserIsNotLoggedIntoAppStoreuntargetedSupersedingAppsDetectedappRemovedBySupersedenceseeUninstallErrorCodependingRebootinstallingDependenciescontentDownloadedsupersedingAppsNotApplicablepowerShellScriptRequirementNotMetregistryRequirementNotMetfileSystemRequirementNotMetplatformNotApplicableminimumCpuSpeedNotMetminimumLogicalProcessorCountNotMetminimumPhysicalMemoryNotMetminimumOsVersionNotMetminimumDiskSpaceNotMetprocessorArchitectureNotApplicable です。
errorCode Int32 インストールまたはアンインストールの失敗のエラー コード。
osVersion String OS のバージョン
osDescription 文字列 OS の説明
userName 文字列 デバイス ユーザー名
userPrincipalName String ユーザー プリンシパル名
displayVersion 文字列 人間が読めるバージョンのアプリケーション

応答

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

要求

以下は、要求の例です。

POST https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/{mobileAppId}/deviceStatuses
Content-type: application/json
Content-length: 555

{
  "@odata.type": "#microsoft.graph.mobileAppInstallStatus",
  "deviceName": "Device Name value",
  "deviceId": "Device Id value",
  "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
  "mobileAppInstallStatusValue": "failed",
  "installState": "failed",
  "installStateDetail": "dependencyFailedToInstall",
  "errorCode": 9,
  "osVersion": "Os Version value",
  "osDescription": "Os Description value",
  "userName": "User Name value",
  "userPrincipalName": "User Principal Name value",
  "displayVersion": "Display Version value"
}

応答

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

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

{
  "@odata.type": "#microsoft.graph.mobileAppInstallStatus",
  "id": "7560ee45-ee45-7560-45ee-607545ee6075",
  "deviceName": "Device Name value",
  "deviceId": "Device Id value",
  "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
  "mobileAppInstallStatusValue": "failed",
  "installState": "failed",
  "installStateDetail": "dependencyFailedToInstall",
  "errorCode": 9,
  "osVersion": "Os Version value",
  "osDescription": "Os Description value",
  "userName": "User Name value",
  "userPrincipalName": "User Principal Name value",
  "displayVersion": "Display Version value"
}