Interface IOrganizationsLicenses
- Namespace
- Meraki.Api.Interfaces.General.Organizations
- Assembly
- Meraki.Api.dll
public interface IOrganizationsLicenses
- Extension Methods
Methods
AssignOrganizationLicensesSeatsAsync(string, LicenseSeatsAssignmentRequest, CancellationToken)
Assign SM seats to a network
[Post("/organizations/{organizationId}/licenses/assignSeats")]
Task<AssignSeatsResponse> AssignOrganizationLicensesSeatsAsync(string organizationId, LicenseSeatsAssignmentRequest licenseSeatsAssignmentRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseSeatsAssignmentRequestLicenseSeatsAssignmentRequestcancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationLicenseAsync(string, string, CancellationToken)
Display a license
[Get("/organizations/{organizationId}/licenses/{licenseId}")]
Task<OrganizationLicense> GetOrganizationLicenseAsync(string organizationId, string licenseId, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseIdstringThe license id
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationLicensesAsync(string, int?, string?, string?, string?, string?, string?, CancellationToken)
List the licenses for an organization
[Get("/organizations/{organizationId}/licenses")]
Task<List<OrganizationLicense>> GetOrganizationLicensesAsync(string organizationId, int? perPage = 1000, string? startingAfter = null, string? endingBefore = null, string? deviceSerial = null, string? networkId = null, string? state = null, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
perPageint?The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. (optional)
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. (optional)
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. (optional)
deviceSerialstringFilter the licenses to those assigned to a particular device (optional)
networkIdstringFilter the licenses to those assigned in a particular network (optional)
statestringFilter the licenses to those in a particular state. Can be one of 'active', 'expired', 'expiring', 'unused', 'unusedActive' or 'recentlyQueued' (optional)
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationLicensesOverviewAsync(string, CancellationToken)
Return an overview of the license state for an organization
[Get("/organizations/{organizationId}/licenses/overview")]
Task<OrganizationLicenseState> GetOrganizationLicensesOverviewAsync(string organizationId, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
MoveOrganizationLicensesAsync(string, LicenseMoveRequest, CancellationToken)
Move licenses to another organization
[Post("/organizations/{organizationId}/licenses/move")]
Task<LicenseMoveRequest> MoveOrganizationLicensesAsync(string organizationId, LicenseMoveRequest licenseMoveRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseMoveRequestLicenseMoveRequestBody for moving a license
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
MoveOrganizationLicensesSeatsAsync(string, LicenseSeatsMoveRequest, CancellationToken)
Move SM seats to another organization
[Post("/organizations/{organizationId}/licenses/moveSeats")]
Task<LicenseSeatsMoveRequest> MoveOrganizationLicensesSeatsAsync(string organizationId, LicenseSeatsMoveRequest licenseSeatsMoveRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseSeatsMoveRequestLicenseSeatsMoveRequestBody for moving SM seats
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
RenewOrganizationLicensesSeatsAsync(string, LicenseSeatsRenewalRequest, CancellationToken)
Renew SM seats of a license
[Post("/organizations/{organizationId}/licenses/renewSeats")]
Task<AssignSeatsResponse> RenewOrganizationLicensesSeatsAsync(string organizationId, LicenseSeatsRenewalRequest licenseSeatsRenewalRequest, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseSeatsRenewalRequestLicenseSeatsRenewalRequestBody for renewing SM seats
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateOrganizationLicenseAsync(string, string, LicenseUpdateRequest, CancellationToken)
Update a license
[Put("/organizations/{organizationId}/licenses/{licenseId}")]
Task<OrganizationLicense> UpdateOrganizationLicenseAsync(string organizationId, string licenseId, LicenseUpdateRequest updateOrganizationLicense, CancellationToken cancellationToken = default)
Parameters
organizationIdstringThe organization id
licenseIdstringThe license id
updateOrganizationLicenseLicenseUpdateRequestBody for updating a license
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call