Interface IOrganizationSensorRelationships
- Namespace
- Meraki.Api.Interfaces.Products.Sensor
- Assembly
- Meraki.Api.dll
public interface IOrganizationSensorRelationships
Methods
GetDeviceSensorRelationshipsAsync(string, CancellationToken)
List the sensor roles for a given sensor or camera device.
[Get("/devices/{serial}/sensor/relationships")]
Task<List<SensorRelationship>> GetDeviceSensorRelationshipsAsync(string serial, CancellationToken cancellationToken = default)
Parameters
serialstringThe device serial
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkSensorRelationshipsAsync(string, CancellationToken)
List the sensor roles for devices in a given network
[Get("/networks/{networkId}/sensor/relationships")]
Task<List<NetworkSensorRelationship>> GetNetworkSensorRelationshipsAsync(string networkId, CancellationToken cancellationToken = default)
Parameters
networkIdstringThe network id
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateDeviceSensorRelationshipsAsync(string, SensorRelationship, CancellationToken)
Assign one or more sensor roles to a given sensor or camera device.
[Put("/devices/{serial}/sensor/relationships")]
Task<SensorRelationship> UpdateDeviceSensorRelationshipsAsync(string serial, SensorRelationship sensorRelationshipUpdateRequest, CancellationToken cancellationToken = default)
Parameters
serialstringThe device serial
sensorRelationshipUpdateRequestSensorRelationshipBody for updating a sensor role
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call