chrome.enterprise.networkingAttributes
| Description: |
Use the chrome.enterprise.networkingAttributes API to read
information about your current network.
Note: This API is only available to extensions force-installed by enterprise
policy.
|
| Availability: |
Since Chrome 85.
Warning: this is the current Dev channel.
Learn more.
|
| Permissions: |
"enterprise.networkingAttributes"
|
Important: This API works only on Chrome OS.
Note: This API is only for extensions pre-installed by policy.
Summary
| Types | |
|---|---|
| NetworkDetails | |
| Methods | |
getNetworkDetails −
chrome.enterprise.networkingAttributes.getNetworkDetails(function callback)
| |
Types
NetworkDetails
| properties | ||
|---|---|---|
| string | macAddress |
The device's MAC address. |
| string | (optional) ipv4 |
The device's local IPv4 address (undefined if not configured). |
| string | (optional) ipv6 |
The device's local IPv6 address (undefined if not configured). |
Methods
getNetworkDetails
chrome.enterprise.networkingAttributes.getNetworkDetails(function callback)
Retrieves the network details of the device's default network. If the user is not affiliated or the device is not connected to a network, runtime.lastError will be set with a failure reason.
| Parameters | |||||
|---|---|---|---|---|---|
| function | callback |
Called with the device's default network's NetworkDetails. The callback parameter should be a function that looks like this: function( NetworkDetails networkAddresses) {...};
|
|||