Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi
meraki.organizations.getLicenses
Explore with Pulumi AI
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);
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.get_licenses(license_id="string",
    organization_id="string")
pulumi.export("merakiOrganizationsLicensesExample", example.item)
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
	})
}
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),
    };
});
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()));
    }
}
variables:
  example:
    fn::invoke:
      function: meraki:organizations:getLicenses
      arguments:
        licenseId: string
        organizationId: string
outputs:
  merakiOrganizationsLicensesExample: ${example.item}
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>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]func LookupLicenses(ctx *Context, args *LookupLicensesArgs, opts ...InvokeOption) (*LookupLicensesResult, error)
func LookupLicensesOutput(ctx *Context, args *LookupLicensesOutputArgs, opts ...InvokeOption) LookupLicensesResultOutput> 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)
}public static CompletableFuture<GetLicensesResult> getLicenses(GetLicensesArgs args, InvokeOptions options)
public static Output<GetLicensesResult> getLicenses(GetLicensesArgs args, InvokeOptions options)
fn::invoke:
  function: meraki:organizations/getLicenses:getLicenses
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LicenseId string
- licenseId path parameter. License ID
- OrganizationId string
- organizationId path parameter. Organization ID
- LicenseId string
- licenseId path parameter. License ID
- OrganizationId string
- organizationId path parameter. Organization ID
- licenseId String
- licenseId path parameter. License ID
- organizationId String
- organizationId path parameter. Organization ID
- licenseId string
- licenseId path parameter. License ID
- organizationId string
- organizationId path parameter. Organization ID
- license_id str
- licenseId path parameter. License ID
- organization_id str
- organizationId path parameter. Organization ID
- licenseId String
- licenseId path parameter. License ID
- organizationId 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
GetLicenses Item 
- 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
GetLicenses Item 
- 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
GetLicenses Item 
- 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
GetLicenses Item 
- 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
GetLicenses Item 
- 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 string
- The date the license started burning
- ClaimDate string
- The date the license was claimed into the organization
- DeviceSerial string
- Serial number of the device the license is assigned to
- DurationIn intDays 
- The duration of the individual license
- ExpirationDate string
- The date the license will expire
- HeadLicense stringId 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- Id string
- License ID
- LicenseKey string
- License key
- LicenseType string
- License type
- NetworkId string
- ID of the network the license is assigned to
- OrderNumber string
- Order number
- PermanentlyQueued List<GetLicenses Licenses Item Permanently Queued License> 
- 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 int
- The number of seats of the license. Only applicable to SM licenses.
- State string
- The state of the license. All queued licenses have a status of recentlyQueued.
- TotalDuration intIn Days 
- The duration of the license plus all permanently queued licenses associated with it
- ActivationDate string
- The date the license started burning
- ClaimDate string
- The date the license was claimed into the organization
- DeviceSerial string
- Serial number of the device the license is assigned to
- DurationIn intDays 
- The duration of the individual license
- ExpirationDate string
- The date the license will expire
- HeadLicense stringId 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- Id string
- License ID
- LicenseKey string
- License key
- LicenseType string
- License type
- NetworkId string
- ID of the network the license is assigned to
- OrderNumber string
- Order number
- PermanentlyQueued []GetLicenses Licenses Item Permanently Queued License 
- 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 int
- The number of seats of the license. Only applicable to SM licenses.
- State string
- The state of the license. All queued licenses have a status of recentlyQueued.
- TotalDuration intIn Days 
- The duration of the license plus all permanently queued licenses associated with it
- activationDate String
- The date the license started burning
- claimDate String
- The date the license was claimed into the organization
- deviceSerial String
- Serial number of the device the license is assigned to
- durationIn IntegerDays 
- The duration of the individual license
- expirationDate String
- The date the license will expire
- headLicense StringId 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- id String
- License ID
- licenseKey String
- License key
- licenseType String
- License type
- networkId String
- ID of the network the license is assigned to
- orderNumber String
- Order number
- permanentlyQueued List<GetLicenses Licenses Item Permanently Queued License> 
- 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 Integer
- The number of seats of the license. Only applicable to SM licenses.
- state String
- The state of the license. All queued licenses have a status of recentlyQueued.
- totalDuration IntegerIn Days 
- The duration of the license plus all permanently queued licenses associated with it
- activationDate string
- The date the license started burning
- claimDate string
- The date the license was claimed into the organization
- deviceSerial string
- Serial number of the device the license is assigned to
- durationIn numberDays 
- The duration of the individual license
- expirationDate string
- The date the license will expire
- headLicense stringId 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- id string
- License ID
- licenseKey string
- License key
- licenseType string
- License type
- networkId string
- ID of the network the license is assigned to
- orderNumber string
- Order number
- permanentlyQueued GetLicenses Licenses Item Permanently Queued License[] 
- 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 number
- The number of seats of the license. Only applicable to SM licenses.
- state string
- The state of the license. All queued licenses have a status of recentlyQueued.
- totalDuration numberIn Days 
- The duration of the license plus all permanently queued licenses associated with it
- activation_date str
- The date the license started burning
- claim_date str
- The date the license was claimed into the organization
- device_serial str
- Serial number of the device the license is assigned to
- duration_in_ intdays 
- The duration of the individual license
- expiration_date str
- The date the license will expire
- head_license_ strid 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- id str
- License ID
- license_key str
- License key
- license_type str
- License type
- network_id str
- ID of the network the license is assigned to
- order_number str
- Order number
- permanently_queued_ Sequence[Getlicenses Licenses Item Permanently Queued License] 
- 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 int
- The number of seats of the license. Only applicable to SM licenses.
- state str
- The state of the license. All queued licenses have a status of recentlyQueued.
- total_duration_ intin_ days 
- The duration of the license plus all permanently queued licenses associated with it
- activationDate String
- The date the license started burning
- claimDate String
- The date the license was claimed into the organization
- deviceSerial String
- Serial number of the device the license is assigned to
- durationIn NumberDays 
- The duration of the individual license
- expirationDate String
- The date the license will expire
- headLicense StringId 
- The id of the head license this license is queued behind. If there is no head license, it returns nil.
- id String
- License ID
- licenseKey String
- License key
- licenseType String
- License type
- networkId String
- ID of the network the license is assigned to
- orderNumber String
- Order number
- permanentlyQueued List<Property Map>Licenses 
- 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 Number
- The number of seats of the license. Only applicable to SM licenses.
- state String
- The state of the license. All queued licenses have a status of recentlyQueued.
- totalDuration NumberIn Days 
- The duration of the license plus all permanently queued licenses associated with it
GetLicensesItemPermanentlyQueuedLicense     
- DurationIn intDays 
- The duration of the individual license
- Id string
- Permanently queued license ID
- LicenseKey string
- License key
- LicenseType string
- License type
- OrderNumber string
- Order number
- DurationIn intDays 
- The duration of the individual license
- Id string
- Permanently queued license ID
- LicenseKey string
- License key
- LicenseType string
- License type
- OrderNumber string
- Order number
- durationIn IntegerDays 
- The duration of the individual license
- id String
- Permanently queued license ID
- licenseKey String
- License key
- licenseType String
- License type
- orderNumber String
- Order number
- durationIn numberDays 
- The duration of the individual license
- id string
- Permanently queued license ID
- licenseKey string
- License key
- licenseType string
- License type
- orderNumber string
- Order number
- duration_in_ intdays 
- The duration of the individual license
- id str
- Permanently queued license ID
- license_key str
- License key
- license_type str
- License type
- order_number str
- Order number
- durationIn NumberDays 
- The duration of the individual license
- id String
- Permanently queued license ID
- licenseKey String
- License key
- licenseType String
- License type
- orderNumber String
- Order number
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the merakiTerraform Provider.
