Class IOrganizationsLicensesExtensions
- Namespace
- Meraki.Api.Extensions
- Assembly
- Meraki.Api.dll
public static class IOrganizationsLicensesExtensions
- Inheritance
-
IOrganizationsLicensesExtensions
- Inherited Members
Methods
GetOrganizationLicensesAllAsync(IOrganizationsLicenses, string, string?, string?, string?, CancellationToken)
List the licenses for an organization
public static Task<List<OrganizationLicense>> GetOrganizationLicensesAllAsync(this IOrganizationsLicenses organizationsLicenses, string organizationId, string? deviceSerial = null, string? networkId = null, string? state = null, CancellationToken cancellationToken = default)
Parameters
organizationsLicenses
IOrganizationsLicensesorganizationId
stringThe organization id
deviceSerial
stringFilter the licenses to those assigned to a particular device (optional)
networkId
stringFilter the licenses to those assigned in a particular network (optional)
state
stringFilter the licenses to those in a particular state. Can be one of 'active', 'expired', 'expiring', 'unused', 'unusedActive' or 'recentlyQueued' (optional)
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call