Atualizar deviceEnrollmentPlatformRestrictionsConfigurationUpdate deviceEnrollmentPlatformRestrictionsConfiguration

Namespace: microsoft.graphNamespace: microsoft.graph

Observação: A API do Microsoft Graph para Intune requer uma licença ativa do Intune para o locatário.Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Atualizar as propriedades de um objeto deviceEnrollmentPlatformRestrictionsConfiguration.Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object.

Pré-requisitosPrerequisites

Uma das seguintes permissões é obrigatória para chamar esta API. Para saber mais, incluindo como escolher permissões, confira Permissões.One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Tipo de permissãoPermission type Permissões (de privilégios máximos a mínimos)Permissions (from most to least privileged)
Delegado (conta corporativa ou de estudante)Delegated (work or school account) DeviceManagementServiceConfig.ReadWrite.AllDeviceManagementServiceConfig.ReadWrite.All
Delegada (conta pessoal da Microsoft)Delegated (personal Microsoft account) Sem suporte.Not supported.
AplicativoApplication Sem suporte.Not supported.

Solicitação HTTPHTTP Request

PATCH /deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfigurationId}

Cabeçalhos de solicitaçãoRequest headers

CabeçalhoHeader ValorValue
AutorizaçãoAuthorization <Token> de portador obrigatório.Bearer <token> Required.
AceitarAccept application/jsonapplication/json

Corpo da solicitaçãoRequest body

No corpo da solicitação, forneça uma representação JSON do objeto deviceEnrollmentPlatformRestrictionsConfiguration.In the request body, supply a JSON representation for the deviceEnrollmentPlatformRestrictionsConfiguration object.

A tabela a seguir mostra as propriedades que são necessárias ao criar deviceEnrollmentPlatformRestrictionsConfiguration.The following table shows the properties that are required when you create the deviceEnrollmentPlatformRestrictionsConfiguration.

PropriedadeProperty TipoType DescriçãoDescription
idid Cadeia de caracteresString Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
displayNamedisplayName Cadeia de caracteresString Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
descriptiondescription Cadeia de caracteresString Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
prioridadepriority Int32Int32 Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
versãoversion Int32Int32 Ainda não está documentado Herdado de deviceEnrollmentConfigurationNot yet documented Inherited from deviceEnrollmentConfiguration
iosRestrictioniosRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction Ainda não documentadoNot yet documented
windowsRestrictionwindowsRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction Ainda não documentadoNot yet documented
windowsMobileRestrictionwindowsMobileRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction Ainda não documentadoNot yet documented
androidRestrictionandroidRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction Ainda não documentadoNot yet documented
macOSRestrictionmacOSRestriction deviceEnrollmentPlatformRestrictiondeviceEnrollmentPlatformRestriction Ainda não documentadoNot yet documented

RespostaResponse

Se tiver êxito, este método retornará um código de resposta 200 OK e um objeto deviceEnrollmentPlatformRestrictionsConfiguration atualizado no corpo da resposta.If successful, this method returns a 200 OK response code and an updated deviceEnrollmentPlatformRestrictionsConfiguration object in the response body.

ExemploExample

SolicitaçãoRequest

Este é um exemplo da solicitação.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"
  }
}

RespostaResponse

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.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"
  }
}