deviceEnrollmentPlatformRestrictionsConfiguration の更新Update deviceEnrollmentPlatformRestrictionsConfiguration

名前空間: microsoft.graphNamespace: microsoft.graph

注: Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

deviceEnrollmentPlatformRestrictionsConfiguration オブジェクトのプロパティを更新します。Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object.

前提条件Prerequisites

この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

アクセス許可の種類Permission type アクセス許可 (特権の大きいものから小さいものへ)Permissions (from most to least privileged)
委任 (職場または学校のアカウント)Delegated (work or school account) DeviceManagementServiceConfig.ReadWrite.AllDeviceManagementServiceConfig.ReadWrite.All
委任 (個人用 Microsoft アカウント)Delegated (personal Microsoft account) サポートされていません。Not supported.
アプリケーションApplication サポートされていません。Not supported.

HTTP 要求HTTP Request

PATCH /deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfigurationId}

要求ヘッダーRequest headers

ヘッダーHeader Value
AuthorizationAuthorization ベアラー <トークン> が必要です。Bearer <token> Required.
承諾Accept application/jsonapplication/json

要求本文Request body

要求本文で、deviceEnrollmentPlatformRestrictionsConfiguration オブジェクトの JSON 表記を指定します。In the request body, supply a JSON representation for the deviceEnrollmentPlatformRestrictionsConfiguration object.

次の表に、deviceEnrollmentPlatformRestrictionsConfiguration の作成時に必要なプロパティを示します。The following table shows the properties that are required when you create the deviceEnrollmentPlatformRestrictionsConfiguration.

プロパティProperty 種類Type 説明Description
idid StringString まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
displayNamedisplayName StringString まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
説明description StringString まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
prioritypriority Int32Int32 まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
versionversion Int32Int32 まだ文書化されていません。deviceEnrollmentConfiguration から継承しますNot yet documented Inherited from deviceEnrollmentConfiguration
iosRestrictioniosRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction まだ文書化されていませんNot yet documented
windowsRestrictionwindowsRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction まだ文書化されていませんNot yet documented
windowsMobileRestrictionwindowsMobileRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction まだ文書化されていませんNot yet documented
androidRestrictionandroidRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction まだ文書化されていませんNot yet documented
macOSRestrictionmacOSRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction まだ文書化されていませんNot yet documented

応答Response

成功した場合、このメソッドは 200 OK 応答コードと、応答本文で更新された deviceEnrollmentPlatformRestrictionsConfiguration オブジェクトを返します。If successful, this method returns a 200 OK response code and an updated deviceEnrollmentPlatformRestrictionsConfiguration object in the response body.

Example

要求Request

以下は、要求の例です。Here is an example of the request.

PATCH https://graph.microsoft.com/v1.0/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfigurationId}
Content-type: application/json
Content-length: 1650

{
  "@odata.type": "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration",
  "displayName": "Display Name value",
  "description": "Description value",
  "priority": 8,
  "version": 7,
  "iosRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "windowsRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "windowsMobileRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "androidRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "macOSRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  }
}

応答Response

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

{
  "@odata.type": "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration",
  "id": "3acb2d75-2d75-3acb-752d-cb3a752dcb3a",
  "displayName": "Display Name value",
  "description": "Description value",
  "priority": 8,
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "version": 7,
  "iosRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "windowsRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "windowsMobileRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "androidRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  },
  "macOSRestriction": {
    "@odata.type": "microsoft.graph.deviceEnrollmentPlatformRestriction",
    "platformBlocked": true,
    "personalDeviceEnrollmentBlocked": true,
    "osMinimumVersion": "Os Minimum Version value",
    "osMaximumVersion": "Os Maximum Version value"
  }
}