Table of Contents

Class Device

Namespace
Meraki.Api.Data
Assembly
Meraki.Api.dll

A Device

[DataContract]
public class Device : NamedItem
Inheritance
Device
Derived
Inherited Members
Extension Methods

Fields

MaxAddressLength

public const int MaxAddressLength = 255

Field Value

int

Properties

Address

The address of a device

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "address")]
public string? Address { get; set; }

Property Value

string

BeaconIdParams

Readonly: The beacon ID parameters

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "beaconIdParams")]
public BeaconIdParams? BeaconIdParams { get; set; }

Property Value

BeaconIdParams

BleParams

bleParams - Undocumented but returned in live data

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "bleParams")]
public DeviceBleParams? BleParams { get; set; }

Property Value

DeviceBleParams

ConfigurationUpdatedAt

When the configuration was last updated

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "configurationUpdatedAt")]
public DateTime? ConfigurationUpdatedAt { get; set; }

Property Value

DateTime?

Details

Device Details

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "details")]
public List<DeviceDetail>? Details { get; set; }

Property Value

List<DeviceDetail>

Firmware

Readonly: The firmware version of a device

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "firmware")]
public string? Firmware { get; set; }

Property Value

string

FloorPlanId

The floor plan to associate to this device. null disassociates the device from the floorplan.

[ApiForeignKey(typeof(FloorPlan))]
[DataMember(Name = "floorPlanId")]
[JsonProperty(NullValueHandling = NullValueHandling.Include)]
public string? FloorPlanId { get; set; }

Property Value

string

Imei

Imei

[Obsolete("Removed in Meraki API v1.46")]
[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "imei")]
public string? Imei { get; set; }

Property Value

string

LanIp

Readonly: The LAN IP address

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "lanIp")]
public string? LanIp { get; set; }

Property Value

string

Latitude

The latitude of a device

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "lat")]
public double? Latitude { get; set; }

Property Value

double?

Longitude

The longitude of a device

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "lng")]
public double? Longitude { get; set; }

Property Value

double?

Mac

ReadOnly: The MAC address of a device

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "mac")]
public string? Mac { get; set; }

Property Value

string

Model

ReadOnly: The model of a device

[ApiForeignKey(typeof(Device))]
[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "model")]
public string? Model { get; set; }

Property Value

string

MoveMapMarker

Whether or not to set the latitude and longitude of a device based on the new address. Only applies when lat and lng are not specified. Only used when sending updates

[ApiAccess(ApiAccess.Update)]
[DataMember(Name = "moveMapMarker")]
public bool? MoveMapMarker { get; set; }

Property Value

bool?

NetworkId

ReadOnly: The Network Id of a device

[ApiAccess(ApiAccess.Read)]
[ApiForeignKey(typeof(Network))]
[DataMember(Name = "networkId")]
public string? NetworkId { get; set; }

Property Value

string

Notes

The notes for the device. String. Limited to 255 characters.

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "notes")]
public string? Notes { get; set; }

Property Value

string

ProductType

Product type of the device

[Obsolete("Removed in Meraki API v1.46")]
[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "productType")]
public string? ProductType { get; set; }

Property Value

string

Serial

ReadOnly: The Serial of a device

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "serial")]
public string? Serial { get; set; }

Property Value

string

SwitchProfileId

The ID of a switch profile to bind to the device (for available switch profiles, see the 'Switch Profiles' endpoint). Use null to unbind the switch device from the current profile. For a device to be bindable to a switch profile, it must (1) be a switch, and (2) belong to a network that is bound to a configuration template.

[ApiAccess(ApiAccess.ReadUpdate)]
[ApiForeignKey(typeof(SwitchProfile))]
[DataMember(Name = "switchProfileId")]
public string? SwitchProfileId { get; set; }

Property Value

string

Tags

The list of tags of a device

[ApiAccess(ApiAccess.ReadWrite)]
[DataMember(Name = "tags")]
public List<string>? Tags { get; set; }

Property Value

List<string>

Url

Readonly: URL

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "url")]
public string? Url { get; set; }

Property Value

string

Wan1Ip

Readonly: WAN 1 IP address

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "wan1Ip")]
public string? Wan1Ip { get; set; }

Property Value

string

Wan2Ip

Readonly: WAN 2 IP address

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "wan2Ip")]
public string? Wan2Ip { get; set; }

Property Value

string

WirelessMac

Readonly: Wireless MAC address

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "wirelessMac")]
public string? WirelessMac { get; set; }

Property Value

string