Crear androidEnterpriseWiFiConfigurationCreate androidEnterpriseWiFiConfiguration

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 androidEnterpriseWiFiConfiguration .Create a new androidEnterpriseWiFiConfiguration 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.
AplicaciónApplication 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 androidEnterpriseWiFiConfiguration.In the request body, supply a JSON representation for the androidEnterpriseWiFiConfiguration object.

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

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 androidWiFiConfigurationNetwork Name Inherited from androidWiFiConfiguration
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 androidWiFiConfigurationInherited from androidWiFiConfiguration
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 androidWiFiConfigurationInherited from androidWiFiConfiguration
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 androidWiFiConfigurationInherited from androidWiFiConfiguration
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 androidWiFiConfiguration.Inherited from androidWiFiConfiguration. 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.
usernameFormatStringusernameFormatString StringString Cadena de formato de nombre de usuario usada para crear el nombre de usuario para conectarse a WiFiUsername format string used to build the username to connect to wifi
passwordFormatStringpasswordFormatString StringString Cadena de formato de contraseña usada para crear la contraseña para conectarse a WiFiPassword format string used to build the password to connect to wifi
preSharedKeypreSharedKey StringString PreSharedKey usado para crear la contraseña para conectarse a WiFiPreSharedKey used to build the password to connect to wifi

RespuestaResponse

Si se ejecuta correctamente, este método 201 Created devuelve un código de respuesta y un objeto androidEnterpriseWiFiConfiguration en el cuerpo de la respuesta.If successful, this method returns a 201 Created response code and a androidEnterpriseWiFiConfiguration 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: 1699

{
  "@odata.type": "#microsoft.graph.androidEnterpriseWiFiConfiguration",
  "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",
  "usernameFormatString": "Username Format String value",
  "passwordFormatString": "Password Format String value",
  "preSharedKey": "Pre Shared Key value"
}

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: 1871

{
  "@odata.type": "#microsoft.graph.androidEnterpriseWiFiConfiguration",
  "id": "972edff4-dff4-972e-f4df-2e97f4df2e97",
  "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",
  "usernameFormatString": "Username Format String value",
  "passwordFormatString": "Password Format String value",
  "preSharedKey": "Pre Shared Key value"
}