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 dictionary
The following arguments are supported:
- License
Id This property is required. string - licenseId path parameter. License ID
- Organization
Id This property is required. string - organizationId path parameter. Organization ID
- License
Id This property is required. string - licenseId path parameter. License ID
- Organization
Id This property is required. string - organizationId path parameter. Organization ID
- license
Id This property is required. String - licenseId path parameter. License ID
- organization
Id This property is required. String - organizationId path parameter. Organization ID
- license
Id This property is required. string - licenseId path parameter. License ID
- organization
Id 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
- license
Id This property is required. String - licenseId path parameter. License ID
- organization
Id 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
Get
Licenses Item - License
Id string - licenseId path parameter. License ID
- Organization
Id string - organizationId path parameter. Organization ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Licenses Item - License
Id string - licenseId path parameter. License ID
- Organization
Id string - organizationId path parameter. Organization ID
- id String
- The provider-assigned unique ID for this managed resource.
- item
Get
Licenses Item - license
Id String - licenseId path parameter. License ID
- organization
Id String - organizationId path parameter. Organization ID
- id string
- The provider-assigned unique ID for this managed resource.
- item
Get
Licenses Item - license
Id string - licenseId path parameter. License ID
- organization
Id string - organizationId path parameter. Organization ID
- id str
- The provider-assigned unique ID for this managed resource.
- item
Get
Licenses 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
- license
Id String - licenseId path parameter. License ID
- organization
Id String - organizationId path parameter. Organization ID
Supporting Types
GetLicensesItem
- Activation
Date This property is required. string - The date the license started burning
- Claim
Date This property is required. string - The date the license was claimed into the organization
- Device
Serial This property is required. string - 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. string - The date the license will expire
- Head
License Id 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
- License
Key This property is required. string - License key
- License
Type This property is required. string - License type
- Network
Id This property is required. string - ID of the network the license is assigned to
- Order
Number This property is required. string - Order number
- Permanently
Queued Licenses This property is required. List<GetLicenses 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 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.
- Total
Duration In Days This property is required. int - The duration of the license plus all permanently queued licenses associated with it
- Activation
Date This property is required. string - The date the license started burning
- Claim
Date This property is required. string - The date the license was claimed into the organization
- Device
Serial This property is required. string - 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. string - The date the license will expire
- Head
License Id 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
- License
Key This property is required. string - License key
- License
Type This property is required. string - License type
- Network
Id This property is required. string - ID of the network the license is assigned to
- Order
Number This property is required. string - Order number
- Permanently
Queued Licenses This property is required. []GetLicenses 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 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.
- Total
Duration In Days This property is required. int - The duration of the license plus all permanently queued licenses associated with it
- activation
Date This property is required. String - The date the license started burning
- claim
Date This property is required. String - The date the license was claimed into the organization
- device
Serial This property is required. String - Serial number of the device the license is assigned to
- duration
In Days This property is required. Integer - The duration of the individual license
- expiration
Date This property is required. String - The date the license will expire
- head
License Id 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
- license
Key This property is required. String - License key
- license
Type This property is required. String - License type
- network
Id This property is required. String - ID of the network the license is assigned to
- order
Number This property is required. String - Order number
- permanently
Queued Licenses This property is required. List<GetLicenses 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 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.
- total
Duration In Days This property is required. Integer - The duration of the license plus all permanently queued licenses associated with it
- activation
Date This property is required. string - The date the license started burning
- claim
Date This property is required. string - The date the license was claimed into the organization
- device
Serial This property is required. string - Serial number of the device the license is assigned to
- duration
In Days This property is required. number - The duration of the individual license
- expiration
Date This property is required. string - The date the license will expire
- head
License Id 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
- license
Key This property is required. string - License key
- license
Type This property is required. string - License type
- network
Id This property is required. string - ID of the network the license is assigned to
- order
Number This property is required. string - Order number
- permanently
Queued Licenses This property is required. GetLicenses 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 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.
- total
Duration In Days 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[GetLicenses 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 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
- activation
Date This property is required. String - The date the license started burning
- claim
Date This property is required. String - The date the license was claimed into the organization
- device
Serial This property is required. String - Serial number of the device the license is assigned to
- duration
In Days This property is required. Number - The duration of the individual license
- expiration
Date This property is required. String - The date the license will expire
- head
License Id 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
- license
Key This property is required. String - License key
- license
Type This property is required. String - License type
- network
Id This property is required. String - ID of the network the license is assigned to
- order
Number This property is required. String - Order number
- permanently
Queued Licenses 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.
- seat
Count 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.
- total
Duration In Days This property is required. Number - The duration of the license plus all permanently queued licenses associated with it
GetLicensesItemPermanentlyQueuedLicense
- Duration
In Days This property is required. int - The duration of the individual license
- Id
This property is required. string - Permanently queued license ID
- License
Key This property is required. string - License key
- License
Type This property is required. string - License type
- Order
Number 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. string - Permanently queued license ID
- License
Key This property is required. string - License key
- License
Type This property is required. string - License type
- Order
Number This property is required. string - Order number
- duration
In Days This property is required. Integer - The duration of the individual license
- id
This property is required. String - Permanently queued license ID
- license
Key This property is required. String - License key
- license
Type This property is required. String - License type
- order
Number This property is required. String - Order number
- duration
In Days This property is required. number - The duration of the individual license
- id
This property is required. string - Permanently queued license ID
- license
Key This property is required. string - License key
- license
Type This property is required. string - License type
- order
Number 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
- duration
In Days This property is required. Number - The duration of the individual license
- id
This property is required. String - Permanently queued license ID
- license
Key This property is required. String - License key
- license
Type This property is required. String - License type
- order
Number 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.