Crear androidWorkProfileEnterpriseWiFiConfigurationCreate androidWorkProfileEnterpriseWiFiConfiguration

Espacio de nombres: microsoft.graphNamespace: microsoft.graph

Importante: Las API de Microsoft Graph en la versión/beta están sujetas a cambios; no se admite el uso de producción.Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

Nota: la API de Microsoft Graph para Intune requiere una licencia activa de Intune para el espacio empresarial.Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Cree un nuevo objeto androidWorkProfileEnterpriseWiFiConfiguration .Create a new androidWorkProfileEnterpriseWiFiConfiguration object.

Requisitos previosPrerequisites

Se requiere uno de los siguientes permisos para llamar a esta API. Para obtener más información, incluido cómo elegir permisos, vea Permisos.One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Tipo de permisoPermission type Permisos (de más a menos privilegiados)Permissions (from most to least privileged)
Delegado (cuenta profesional o educativa)Delegated (work or school account) DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All
Delegado (cuenta personal de Microsoft)Delegated (personal Microsoft account) No admitida.Not supported.
ApplicationApplication DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All

Solicitud HTTPHTTP Request

POST /deviceManagement/deviceConfigurations
POST /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsDomainJoinConfiguration/networkAccessConfigurations

Encabezados de solicitudRequest headers

EncabezadoHeader ValorValue
AuthorizationAuthorization Se requiere <token> de portador.Bearer <token> Required.
AceptarAccept application/jsonapplication/json

Cuerpo de la solicitudRequest body

En el cuerpo de la solicitud, especifique una representación JSON del objeto androidWorkProfileEnterpriseWiFiConfiguration.In the request body, supply a JSON representation for the androidWorkProfileEnterpriseWiFiConfiguration object.

En la tabla siguiente se muestran las propiedades necesarias para crear el androidWorkProfileEnterpriseWiFiConfiguration.The following table shows the properties that are required when you create the androidWorkProfileEnterpriseWiFiConfiguration.

PropiedadProperty TipoType DescripciónDescription
idid StringString Clave de la entidad.Key of the entity. Heredado de deviceConfigurationInherited from deviceConfiguration
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset Fecha y hora en la que se modificó el objeto por última vez.DateTime the object was last modified. Heredado de deviceConfigurationInherited from deviceConfiguration
roleScopeTagIdsroleScopeTagIds Colección stringString collection Lista de etiquetas de ámbito para esta instancia de entidad.List of Scope Tags for this Entity instance. Heredado de deviceConfigurationInherited from deviceConfiguration
supportsScopeTagssupportsScopeTags BooleanBoolean Indica si la configuración de dispositivo subyacente admite la asignación de etiquetas de ámbito.Indicates whether or not the underlying Device Configuration supports the assignment of scope tags. No se permite asignar a la propiedad ScopeTags cuando este valor es false y las entidades no serán visibles para los usuarios con ámbito.Assigning to the ScopeTags property is not allowed when this value is false and entities will not be visible to scoped users. Esto ocurre con las directivas heredadas creadas en Silverlight y se pueden resolver eliminando y volviendo a crear la Directiva en Azure portal.This occurs for Legacy policies created in Silverlight and can be resolved by deleting and recreating the policy in the Azure Portal. Esta propiedad es de sólo lectura.This property is read-only. Heredado de deviceConfigurationInherited from deviceConfiguration
deviceManagementApplicabilityRuleOsEditiondeviceManagementApplicabilityRuleOsEdition deviceManagementApplicabilityRuleOsEditiondeviceManagementApplicabilityRuleOsEdition Aplicabilidad de la edición del sistema operativo para esta Directiva.The OS edition applicability for this Policy. Heredado de deviceConfigurationInherited from deviceConfiguration
deviceManagementApplicabilityRuleOsVersiondeviceManagementApplicabilityRuleOsVersion deviceManagementApplicabilityRuleOsVersiondeviceManagementApplicabilityRuleOsVersion Regla de aplicabilidad de la versión del sistema operativo para esta Directiva.The OS version applicability rule for this Policy. Heredado de deviceConfigurationInherited from deviceConfiguration
deviceManagementApplicabilityRuleDeviceModedeviceManagementApplicabilityRuleDeviceMode deviceManagementApplicabilityRuleDeviceModedeviceManagementApplicabilityRuleDeviceMode La regla de aplicabilidad del modo de dispositivo para esta Directiva.The device mode applicability rule for this Policy. Heredado de deviceConfigurationInherited from deviceConfiguration
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset Fecha y hora en la que se creó el objeto.DateTime the object was created. Heredado de deviceConfigurationInherited from deviceConfiguration
descriptiondescription StringString Descripción proporcionada por el administrador de la configuración del dispositivo.Admin provided description of the Device Configuration. Heredado de deviceConfigurationInherited from deviceConfiguration
displayNamedisplayName CadenaString Nombre proporcionado por el administrador de la configuración del dispositivo.Admin provided name of the device configuration. Heredado de deviceConfigurationInherited from deviceConfiguration
versionversion Int32Int32 Versión de la configuración del dispositivo.Version of the device configuration. Heredado de deviceConfigurationInherited from deviceConfiguration
networkNamenetworkName StringString Nombre de red heredado de androidWorkProfileWiFiConfigurationNetwork Name Inherited from androidWorkProfileWiFiConfiguration
SSIDssid StringString Este es el nombre de la red Wi-Fi que se difunde en todos los dispositivos.This is the name of the Wi-Fi network that is broadcast to all devices. Heredado de androidWorkProfileWiFiConfigurationInherited from androidWorkProfileWiFiConfiguration
connectAutomaticallyconnectAutomatically BooleanBoolean Conectar automáticamente cuando esta red esté dentro del alcance.Connect automatically when this network is in range. Si se establece en true, se omitirá el mensaje del usuario y se conectará automáticamente el dispositivo a la red Wi-Fi.Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. Heredado de androidWorkProfileWiFiConfigurationInherited from androidWorkProfileWiFiConfiguration
connectWhenNetworkNameIsHiddenconnectWhenNetworkNameIsHidden BooleanBoolean Cuando se establece en true, este perfil fuerza al dispositivo a conectarse a una red que no difunde su SSID a todos los dispositivos.When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. Heredado de androidWorkProfileWiFiConfigurationInherited from androidWorkProfileWiFiConfiguration
AlwiFiSecurityType androidWiFiSecurityTypeandroidWiFiSecurityType Indica si el punto de conexión Wi-Fi usa un tipo de seguridad basado en EAP.Indicates whether Wi-Fi endpoint uses an EAP based security type. Heredado de androidWorkProfileWiFiConfiguration.Inherited from androidWorkProfileWiFiConfiguration. Los valores posibles son: open, wpaEnterprise y wpa2Enterprise.Possible values are: open, wpaEnterprise, wpa2Enterprise.
eapTypeeapType androidEapTypeandroidEapType Indica el tipo de protocolo EAP configurado en el punto de conexión Wi-Fi (enrutador).Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). Los valores posibles son: eapTls, eapTtls y peap.Possible values are: eapTls, eapTtls, peap.
authenticationMethodauthenticationMethod wiFiAuthenticationMethodwiFiAuthenticationMethod Indica el método de autenticación que debe usar el cliente (dispositivo) cuando el tipo de EAP está configurado como PEAP o EAP-TTLS.Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Los valores posibles son: certificate, usernameAndPassword y derivedCredential.Possible values are: certificate, usernameAndPassword, derivedCredential.
innerAuthenticationProtocolForEapTtlsinnerAuthenticationProtocolForEapTtls nonEapAuthenticationMethodForEapTtlsTypenonEapAuthenticationMethodForEapTtlsType Método no EAP para autenticación (identidad interna) cuando el tipo de EAP es EAP-TTLS y Authenticationmethod es el nombre de usuario y la contraseña.Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Los valores posibles son: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap y microsoftChapVersionTwo.Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo.
innerAuthenticationProtocolForPeapinnerAuthenticationProtocolForPeap nonEapAuthenticationMethodForPeapnonEapAuthenticationMethodForPeap Método no EAP para autenticación (identidad interna) cuando el tipo EAP es PEAP y Authenticationmethod es nombre de usuario y contraseña.Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Los valores posibles son none y microsoftChapVersionTwo.Possible values are: none, microsoftChapVersionTwo.
outerIdentityPrivacyTemporaryValueouterIdentityPrivacyTemporaryValue StringString Habilite la privacidad de identidad (identidad externa) cuando el tipo de EAP esté configurado en EAP-TTLS o PEAP.Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. La cadena que se proporciona aquí se usa para enmascarar el nombre de usuario de usuarios individuales cuando intentan conectarse a una red Wi-Fi.The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
proxySettingsproxySettings wiFiProxySettingwiFiProxySetting Tipo de proxy para esta conexión Wi-Fi.Proxy Type for this Wi-Fi connection. Los valores posibles son: none, manual y automatic.Possible values are: none, manual, automatic.
proxyAutomaticConfigurationUrlproxyAutomaticConfigurationUrl StringString Dirección URL del script de configuración automática del servidor proxy cuando la configuración automática está seleccionada.URL of the proxy server automatic configuration script when automatic configuration is selected. Esta dirección URL suele ser la ubicación del archivo PAC (configuración automática del proxy).This URL is typically the location of PAC (Proxy Auto Configuration) file.

RespuestaResponse

Si se ejecuta correctamente, este método 201 Created devuelve un código de respuesta y un objeto androidWorkProfileEnterpriseWiFiConfiguration en el cuerpo de la respuesta.If successful, this method returns a 201 Created response code and a androidWorkProfileEnterpriseWiFiConfiguration object in the response body.

EjemploExample

SolicitudRequest

Aquí tiene un ejemplo de la solicitud.Here is an example of the request.

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

{
  "@odata.type": "#microsoft.graph.androidWorkProfileEnterpriseWiFiConfiguration",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "supportsScopeTags": true,
  "deviceManagementApplicabilityRuleOsEdition": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsEdition",
    "osEditionTypes": [
      "windows10EnterpriseN"
    ],
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleOsVersion": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsVersion",
    "minOSVersion": "Min OSVersion value",
    "maxOSVersion": "Max OSVersion value",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleDeviceMode": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleDeviceMode",
    "deviceMode": "sModeConfiguration",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "networkName": "Network Name value",
  "ssid": "Ssid value",
  "connectAutomatically": true,
  "connectWhenNetworkNameIsHidden": true,
  "wiFiSecurityType": "wpaEnterprise",
  "eapType": "eapTtls",
  "authenticationMethod": "usernameAndPassword",
  "innerAuthenticationProtocolForEapTtls": "challengeHandshakeAuthenticationProtocol",
  "innerAuthenticationProtocolForPeap": "microsoftChapVersionTwo",
  "outerIdentityPrivacyTemporaryValue": "Outer Identity Privacy Temporary Value value",
  "proxySettings": "manual",
  "proxyAutomaticConfigurationUrl": "https://example.com/proxyAutomaticConfigurationUrl/"
}

RespuestaResponse

Aquí tiene un ejemplo de la respuesta. Nota: Puede que el objeto de respuesta que aparece aquí se trunque para abreviar. Todas las propiedades se devolverán de una llamada 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 201 Created
Content-Type: application/json
Content-Length: 1843

{
  "@odata.type": "#microsoft.graph.androidWorkProfileEnterpriseWiFiConfiguration",
  "id": "c48cd726-d726-c48c-26d7-8cc426d78cc4",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "supportsScopeTags": true,
  "deviceManagementApplicabilityRuleOsEdition": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsEdition",
    "osEditionTypes": [
      "windows10EnterpriseN"
    ],
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleOsVersion": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsVersion",
    "minOSVersion": "Min OSVersion value",
    "maxOSVersion": "Max OSVersion value",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleDeviceMode": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleDeviceMode",
    "deviceMode": "sModeConfiguration",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "networkName": "Network Name value",
  "ssid": "Ssid value",
  "connectAutomatically": true,
  "connectWhenNetworkNameIsHidden": true,
  "wiFiSecurityType": "wpaEnterprise",
  "eapType": "eapTtls",
  "authenticationMethod": "usernameAndPassword",
  "innerAuthenticationProtocolForEapTtls": "challengeHandshakeAuthenticationProtocol",
  "innerAuthenticationProtocolForPeap": "microsoftChapVersionTwo",
  "outerIdentityPrivacyTemporaryValue": "Outer Identity Privacy Temporary Value value",
  "proxySettings": "manual",
  "proxyAutomaticConfigurationUrl": "https://example.com/proxyAutomaticConfigurationUrl/"
}