1. Packages
  2. Meraki Provider
  3. API Docs
  4. organizations
  5. getLicenses
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.organizations.getLicenses

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 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);
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:organizations/getLicenses:getLicenses
      arguments:
        # arguments dictionary

    The 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 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 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
    DurationInDays int
    The duration of the individual license
    ExpirationDate string
    The date the license will expire
    HeadLicenseId string
    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
    PermanentlyQueuedLicenses 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 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.
    TotalDurationInDays int
    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
    DurationInDays int
    The duration of the individual license
    ExpirationDate string
    The date the license will expire
    HeadLicenseId string
    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
    PermanentlyQueuedLicenses []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 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.
    TotalDurationInDays int
    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
    durationInDays Integer
    The duration of the individual license
    expirationDate String
    The date the license will expire
    headLicenseId String
    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
    permanentlyQueuedLicenses 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 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.
    totalDurationInDays Integer
    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
    durationInDays number
    The duration of the individual license
    expirationDate string
    The date the license will expire
    headLicenseId string
    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
    permanentlyQueuedLicenses 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 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.
    totalDurationInDays number
    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_days int
    The duration of the individual license
    expiration_date str
    The date the license will expire
    head_license_id str
    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_licenses 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 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_in_days int
    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
    durationInDays Number
    The duration of the individual license
    expirationDate String
    The date the license will expire
    headLicenseId String
    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
    permanentlyQueuedLicenses 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 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.
    totalDurationInDays Number
    The duration of the license plus all permanently queued licenses associated with it

    GetLicensesItemPermanentlyQueuedLicense

    DurationInDays int
    The duration of the individual license
    Id string
    Permanently queued license ID
    LicenseKey string
    License key
    LicenseType string
    License type
    OrderNumber string
    Order number
    DurationInDays int
    The duration of the individual license
    Id string
    Permanently queued license ID
    LicenseKey string
    License key
    LicenseType string
    License type
    OrderNumber string
    Order number
    durationInDays Integer
    The duration of the individual license
    id String
    Permanently queued license ID
    licenseKey String
    License key
    licenseType String
    License type
    orderNumber String
    Order number
    durationInDays number
    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_days int
    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
    durationInDays Number
    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 meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi