1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. organizations
  5. getLicenses
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.organizations.getLicenses

Explore with Pulumi AI

Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";

const example = meraki.organizations.getLicenses({
    licenseId: "string",
    organizationId: "string",
});
export const merakiOrganizationsLicensesExample = example.then(example => example.item);
Copy
import pulumi
import pulumi_meraki as meraki

example = meraki.organizations.get_licenses(license_id="string",
    organization_id="string")
pulumi.export("merakiOrganizationsLicensesExample", example.item)
Copy
package main

import (
	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := organizations.LookupLicenses(ctx, &organizations.LookupLicensesArgs{
			LicenseId:      "string",
			OrganizationId: "string",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("merakiOrganizationsLicensesExample", example.Item)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;

return await Deployment.RunAsync(() => 
{
    var example = Meraki.Organizations.GetLicenses.Invoke(new()
    {
        LicenseId = "string",
        OrganizationId = "string",
    });

    return new Dictionary<string, object?>
    {
        ["merakiOrganizationsLicensesExample"] = example.Apply(getLicensesResult => getLicensesResult.Item),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.OrganizationsFunctions;
import com.pulumi.meraki.organizations.inputs.GetLicensesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = OrganizationsFunctions.getLicenses(GetLicensesArgs.builder()
            .licenseId("string")
            .organizationId("string")
            .build());

        ctx.export("merakiOrganizationsLicensesExample", example.applyValue(getLicensesResult -> getLicensesResult.item()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: meraki:organizations:getLicenses
      arguments:
        licenseId: string
        organizationId: string
outputs:
  merakiOrganizationsLicensesExample: ${example.item}
Copy

Using getLicenses

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLicenses(args: GetLicensesArgs, opts?: InvokeOptions): Promise<GetLicensesResult>
function getLicensesOutput(args: GetLicensesOutputArgs, opts?: InvokeOptions): Output<GetLicensesResult>
Copy
def get_licenses(license_id: Optional[str] = None,
                 organization_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetLicensesResult
def get_licenses_output(license_id: Optional[pulumi.Input[str]] = None,
                 organization_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetLicensesResult]
Copy
func LookupLicenses(ctx *Context, args *LookupLicensesArgs, opts ...InvokeOption) (*LookupLicensesResult, error)
func LookupLicensesOutput(ctx *Context, args *LookupLicensesOutputArgs, opts ...InvokeOption) LookupLicensesResultOutput
Copy

> Note: This function is named LookupLicenses in the Go SDK.

public static class GetLicenses 
{
    public static Task<GetLicensesResult> InvokeAsync(GetLicensesArgs args, InvokeOptions? opts = null)
    public static Output<GetLicensesResult> Invoke(GetLicensesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLicensesResult> getLicenses(GetLicensesArgs args, InvokeOptions options)
public static Output<GetLicensesResult> getLicenses(GetLicensesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: meraki:organizations/getLicenses:getLicenses
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LicenseId This property is required. string
licenseId path parameter. License ID
OrganizationId This property is required. string
organizationId path parameter. Organization ID
LicenseId This property is required. string
licenseId path parameter. License ID
OrganizationId This property is required. string
organizationId path parameter. Organization ID
licenseId This property is required. String
licenseId path parameter. License ID
organizationId This property is required. String
organizationId path parameter. Organization ID
licenseId This property is required. string
licenseId path parameter. License ID
organizationId This property is required. string
organizationId path parameter. Organization ID
license_id This property is required. str
licenseId path parameter. License ID
organization_id This property is required. str
organizationId path parameter. Organization ID
licenseId This property is required. String
licenseId path parameter. License ID
organizationId This property is required. String
organizationId path parameter. Organization ID

getLicenses Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Item GetLicensesItem
LicenseId string
licenseId path parameter. License ID
OrganizationId string
organizationId path parameter. Organization ID
Id string
The provider-assigned unique ID for this managed resource.
Item GetLicensesItem
LicenseId string
licenseId path parameter. License ID
OrganizationId string
organizationId path parameter. Organization ID
id String
The provider-assigned unique ID for this managed resource.
item GetLicensesItem
licenseId String
licenseId path parameter. License ID
organizationId String
organizationId path parameter. Organization ID
id string
The provider-assigned unique ID for this managed resource.
item GetLicensesItem
licenseId string
licenseId path parameter. License ID
organizationId string
organizationId path parameter. Organization ID
id str
The provider-assigned unique ID for this managed resource.
item GetLicensesItem
license_id str
licenseId path parameter. License ID
organization_id str
organizationId path parameter. Organization ID
id String
The provider-assigned unique ID for this managed resource.
item Property Map
licenseId String
licenseId path parameter. License ID
organizationId String
organizationId path parameter. Organization ID

Supporting Types

GetLicensesItem

ActivationDate This property is required. string
The date the license started burning
ClaimDate This property is required. string
The date the license was claimed into the organization
DeviceSerial This property is required. string
Serial number of the device the license is assigned to
DurationInDays This property is required. int
The duration of the individual license
ExpirationDate This property is required. string
The date the license will expire
HeadLicenseId This property is required. string
The id of the head license this license is queued behind. If there is no head license, it returns nil.
Id This property is required. string
License ID
LicenseKey This property is required. string
License key
LicenseType This property is required. string
License type
NetworkId This property is required. string
ID of the network the license is assigned to
OrderNumber This property is required. string
Order number
PermanentlyQueuedLicenses This property is required. List<GetLicensesItemPermanentlyQueuedLicense>
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
SeatCount This property is required. int
The number of seats of the license. Only applicable to SM licenses.
State This property is required. string
The state of the license. All queued licenses have a status of recentlyQueued.
TotalDurationInDays This property is required. int
The duration of the license plus all permanently queued licenses associated with it
ActivationDate This property is required. string
The date the license started burning
ClaimDate This property is required. string
The date the license was claimed into the organization
DeviceSerial This property is required. string
Serial number of the device the license is assigned to
DurationInDays This property is required. int
The duration of the individual license
ExpirationDate This property is required. string
The date the license will expire
HeadLicenseId This property is required. string
The id of the head license this license is queued behind. If there is no head license, it returns nil.
Id This property is required. string
License ID
LicenseKey This property is required. string
License key
LicenseType This property is required. string
License type
NetworkId This property is required. string
ID of the network the license is assigned to
OrderNumber This property is required. string
Order number
PermanentlyQueuedLicenses This property is required. []GetLicensesItemPermanentlyQueuedLicense
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
SeatCount This property is required. int
The number of seats of the license. Only applicable to SM licenses.
State This property is required. string
The state of the license. All queued licenses have a status of recentlyQueued.
TotalDurationInDays This property is required. int
The duration of the license plus all permanently queued licenses associated with it
activationDate This property is required. String
The date the license started burning
claimDate This property is required. String
The date the license was claimed into the organization
deviceSerial This property is required. String
Serial number of the device the license is assigned to
durationInDays This property is required. Integer
The duration of the individual license
expirationDate This property is required. String
The date the license will expire
headLicenseId This property is required. String
The id of the head license this license is queued behind. If there is no head license, it returns nil.
id This property is required. String
License ID
licenseKey This property is required. String
License key
licenseType This property is required. String
License type
networkId This property is required. String
ID of the network the license is assigned to
orderNumber This property is required. String
Order number
permanentlyQueuedLicenses This property is required. List<GetLicensesItemPermanentlyQueuedLicense>
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
seatCount This property is required. Integer
The number of seats of the license. Only applicable to SM licenses.
state This property is required. String
The state of the license. All queued licenses have a status of recentlyQueued.
totalDurationInDays This property is required. Integer
The duration of the license plus all permanently queued licenses associated with it
activationDate This property is required. string
The date the license started burning
claimDate This property is required. string
The date the license was claimed into the organization
deviceSerial This property is required. string
Serial number of the device the license is assigned to
durationInDays This property is required. number
The duration of the individual license
expirationDate This property is required. string
The date the license will expire
headLicenseId This property is required. string
The id of the head license this license is queued behind. If there is no head license, it returns nil.
id This property is required. string
License ID
licenseKey This property is required. string
License key
licenseType This property is required. string
License type
networkId This property is required. string
ID of the network the license is assigned to
orderNumber This property is required. string
Order number
permanentlyQueuedLicenses This property is required. GetLicensesItemPermanentlyQueuedLicense[]
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
seatCount This property is required. number
The number of seats of the license. Only applicable to SM licenses.
state This property is required. string
The state of the license. All queued licenses have a status of recentlyQueued.
totalDurationInDays This property is required. number
The duration of the license plus all permanently queued licenses associated with it
activation_date This property is required. str
The date the license started burning
claim_date This property is required. str
The date the license was claimed into the organization
device_serial This property is required. str
Serial number of the device the license is assigned to
duration_in_days This property is required. int
The duration of the individual license
expiration_date This property is required. str
The date the license will expire
head_license_id This property is required. str
The id of the head license this license is queued behind. If there is no head license, it returns nil.
id This property is required. str
License ID
license_key This property is required. str
License key
license_type This property is required. str
License type
network_id This property is required. str
ID of the network the license is assigned to
order_number This property is required. str
Order number
permanently_queued_licenses This property is required. Sequence[GetLicensesItemPermanentlyQueuedLicense]
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
seat_count This property is required. int
The number of seats of the license. Only applicable to SM licenses.
state This property is required. str
The state of the license. All queued licenses have a status of recentlyQueued.
total_duration_in_days This property is required. int
The duration of the license plus all permanently queued licenses associated with it
activationDate This property is required. String
The date the license started burning
claimDate This property is required. String
The date the license was claimed into the organization
deviceSerial This property is required. String
Serial number of the device the license is assigned to
durationInDays This property is required. Number
The duration of the individual license
expirationDate This property is required. String
The date the license will expire
headLicenseId This property is required. String
The id of the head license this license is queued behind. If there is no head license, it returns nil.
id This property is required. String
License ID
licenseKey This property is required. String
License key
licenseType This property is required. String
License type
networkId This property is required. String
ID of the network the license is assigned to
orderNumber This property is required. String
Order number
permanentlyQueuedLicenses This property is required. List<Property Map>
DEPRECATED List of permanently queued licenses attached to the license. Instead, use /organizations/{organizationId}/licenses?deviceSerial= to retrieved queued licenses for a given device.
seatCount This property is required. Number
The number of seats of the license. Only applicable to SM licenses.
state This property is required. String
The state of the license. All queued licenses have a status of recentlyQueued.
totalDurationInDays This property is required. Number
The duration of the license plus all permanently queued licenses associated with it

GetLicensesItemPermanentlyQueuedLicense

DurationInDays This property is required. int
The duration of the individual license
Id This property is required. string
Permanently queued license ID
LicenseKey This property is required. string
License key
LicenseType This property is required. string
License type
OrderNumber This property is required. string
Order number
DurationInDays This property is required. int
The duration of the individual license
Id This property is required. string
Permanently queued license ID
LicenseKey This property is required. string
License key
LicenseType This property is required. string
License type
OrderNumber This property is required. string
Order number
durationInDays This property is required. Integer
The duration of the individual license
id This property is required. String
Permanently queued license ID
licenseKey This property is required. String
License key
licenseType This property is required. String
License type
orderNumber This property is required. String
Order number
durationInDays This property is required. number
The duration of the individual license
id This property is required. string
Permanently queued license ID
licenseKey This property is required. string
License key
licenseType This property is required. string
License type
orderNumber This property is required. string
Order number
duration_in_days This property is required. int
The duration of the individual license
id This property is required. str
Permanently queued license ID
license_key This property is required. str
License key
license_type This property is required. str
License type
order_number This property is required. str
Order number
durationInDays This property is required. Number
The duration of the individual license
id This property is required. String
Permanently queued license ID
licenseKey This property is required. String
License key
licenseType This property is required. String
License type
orderNumber This property is required. String
Order number

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi