Class IOrganizationsDevicesExtensions
- Namespace
- Meraki.Api.Extensions
- Assembly
- Meraki.Api.dll
public static class IOrganizationsDevicesExtensions
- Inheritance
-
IOrganizationsDevicesExtensions
- Inherited Members
Methods
GetOrganizationDevicesAllAsync(IOrganizationsDevices, string, string, List<string>?, List<string>?, List<string>?, string?, string?, string?, string?, string?, List<string>?, List<string>?, List<string>?, List<string>?, List<string>?, CancellationToken)
List all devices in an organization
public static Task<List<OrganizationDevice>> GetOrganizationDevicesAllAsync(this IOrganizationsDevices organizationDevices, string organizationId, string configurationUpdatedAfter = null, List<string>? networksIds = null, List<string>? productTypes = null, List<string>? tags = null, string? tagsFilterType = null, string? name = null, string? mac = null, string? serial = null, string? model = null, List<string>? macs = null, List<string>? serials = null, List<string>? sensorMetrics = null, List<string>? sensorAlertProfileIds = null, List<string>? models = null, CancellationToken cancellationToken = default)
Parameters
organizationDevicesIOrganizationsDevicesorganizationIdstringThe organization id
configurationUpdatedAfterstringFilter results by whether or not the device's configuration has been updated after the given timestamp (optional)
networksIdsList<string>Optional parameter to filter devices by network
productTypesList<string>Optional parameter to filter devices by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, and sensor.
tagsList<string>Optional parameter to filter devices by tags.
tagsFilterTypestringOptional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
namestringOptional parameter to filter devices by name. All returned devices will have a name that contains the search term or is an exact match.
macstringOptional parameter to filter devices by MAC address. All returned devices will have a MAC address that contains the search term or is an exact match
serialstringOptional parameter to filter devices by serial number. All returned devices will have a serial number that contains the search term or is an exact match
modelstringOptional parameter to filter devices by model. All returned devices will have a model that contains the search term or is an exact match
macsList<string>Optional parameter to filter devices by one or more MAC addresses. All returned devices will have a MAC address that is an exact match
serialsList<string>Optional parameter to filter devices by one or more serial numbers. All returned devices will have a serial number that is an exact match
sensorMetricsList<string>Optional parameter to filter devices by the metrics that they provide. Only applies to sensor devices
sensorAlertProfileIdsList<string>Optional parameter to filter devices by the alert profiles that are bound to them. Only applies to sensor devices.
modelsList<string>Optional parameter to filter devices by one or more models. All returned devices will have a model that is an exact match
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationDevicesProvisioningStatusesAllAsync(IOrganizationsDevices, string, List<string>?, List<string>?, string?, List<string>?, List<string>?, string?, CancellationToken)
List the provisioning status of every Meraki device in the organization
public static Task<List<DeviceProvisioningStatus>> GetOrganizationDevicesProvisioningStatusesAllAsync(this IOrganizationsDevices organizationDevices, string organizationId, List<string>? networkIds = null, List<string>? serials = null, string? status = null, List<string>? productTypes = null, List<string>? tags = null, string? tagsFilterType = null, CancellationToken cancellationToken = default)
Parameters
organizationDevicesIOrganizationsDevicesorganizationIdstringThe organization id
networkIdsList<string>Optional parameter to filter devices by network ids.
serialsList<string>Optional parameter to filter devices by serials.
statusstringOptional parameter to filter devices by statuses. Valid statuses are ["online", "alerting", "offline", "dormant"].
productTypesList<string>An optional parameter to filter device statuses by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, and sensor.
tagsList<string>An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).
tagsFilterTypestringAn optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationDevicesStatusesAllAsync(IOrganizationsDevices, string, List<string>?, List<string>?, List<string>?, List<string>?, List<string>?, List<string>?, string?, CancellationToken)
List the status of every Meraki device in the organization
public static Task<List<OrganizationDeviceStatus>> GetOrganizationDevicesStatusesAllAsync(this IOrganizationsDevices organizationDevices, string organizationId, List<string>? networkIds = null, List<string>? serials = null, List<string>? statuses = null, List<string>? productTypes = null, List<string>? models = null, List<string>? tags = null, string? tagsFilterType = null, CancellationToken cancellationToken = default)
Parameters
organizationDevicesIOrganizationsDevicesorganizationIdstringThe organization id
networkIdsList<string>Optional parameter to filter devices by network ids.
serialsList<string>Optional parameter to filter devices by serials.
statusesList<string>Optional parameter to filter devices by statuses. Valid statuses are ["online", "alerting", "offline", "dormant"].
productTypesList<string>An optional parameter to filter device statuses by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, and sensor.
modelsList<string>Optional parameter to filter devices by models.
tagsList<string>An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).
tagsFilterTypestringAn optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call