Interface IOrganizationsInventoryDevices
- Namespace
- Meraki.Api.Interfaces.General.Organizations
- Assembly
- Meraki.Api.dll
public interface IOrganizationsInventoryDevices
- Extension Methods
Methods
ClaimIntoOrganizationInventoryAsync(string, OrganizationInventoryClaimRequest, CancellationToken)
Claim a list of devices, licenses, and/or orders into an organization
[Post("/organizations/{organizationId}/inventory/claim")]
Task<OrganizationInventoryClaimResponse> ClaimIntoOrganizationInventoryAsync(string organizationId, OrganizationInventoryClaimRequest organizationInventoryClaimRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
organizationInventoryClaimRequestOrganizationInventoryClaimRequestBody for making an inventory claim request
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationInventoryDeviceAsync(string, string, CancellationToken)
Return the device inventory for an organization
[Get("/organizations/{organizationId}/inventory/devices/{serial}")]
Task<InventoryDevice> GetOrganizationInventoryDeviceAsync(string organizationId, string serial, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
serialstringThe serial number
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationInventoryDevicesAsync(string, int?, string?, string?, string?, string?, List<string>?, List<string>?, List<string>?, List<string>?, List<string>?, List<string>?, TagsFilterType?, List<ProductType>?, CancellationToken)
Return the device inventory for an organization
[Get("/organizations/{organizationId}/inventory/devices")]
Task<List<InventoryDevice>> GetOrganizationInventoryDevicesAsync(string organizationId, int? perPage = 1000, string? startingAfter = null, string? endingBefore = null, string? usedState = null, string? search = null, List<string>? macs = null, List<string>? networkIds = null, List<string>? serials = null, List<string>? models = null, List<string>? orderNumbers = null, List<string>? tags = null, TagsFilterType? tagsFilterType = null, List<ProductType>? productTypes = null, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
perPageint?The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
startingAfterstringA token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
endingBeforestringA token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
usedStatestringFilter results by used or unused inventory. Accepted values are "used" or "unused".
searchstringSearch for devices in inventory based on serial number, mac address, or model.
macsList<string>Search for devices in inventory based on mac addresses.
networkIdsList<string>Search for devices in inventory based on network ids.
serialsList<string>Search for devices in inventory based on serials.
modelsList<string>Search for devices in inventory based on model.
orderNumbersList<string>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).
tagsFilterTypeTagsFilterType?An 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.
productTypesList<ProductType>Optional parameter to filter devices by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, and sensor.
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
ReleaseFromOrganizationInventoryAsync(string, OrganizationInventoryReleaseRequest, CancellationToken)
Release a list of claimed devices from an organization
[Post("/organizations/{organizationId}/inventory/release")]
Task<OrganizationInventoryReleaseResponse> ReleaseFromOrganizationInventoryAsync(string organizationId, OrganizationInventoryReleaseRequest organizationInventoryReleaseRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
organizationInventoryReleaseRequestOrganizationInventoryReleaseRequestBody for making an inventory release request
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call