meraki.organizations.Licenses
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.organizations.Licenses("example", {
    deviceSerial: "Q234-ABCD-5678",
    licenseId: "string",
    organizationId: "string",
});
export const merakiOrganizationsLicensesExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.Licenses("example",
    device_serial="Q234-ABCD-5678",
    license_id="string",
    organization_id="string")
pulumi.export("merakiOrganizationsLicensesExample", example)
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.NewLicenses(ctx, "example", &organizations.LicensesArgs{
			DeviceSerial:   pulumi.String("Q234-ABCD-5678"),
			LicenseId:      pulumi.String("string"),
			OrganizationId: pulumi.String("string"),
		})
		if err != nil {
			return err
		}
		ctx.Export("merakiOrganizationsLicensesExample", example)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() => 
{
    var example = new Meraki.Organizations.Licenses("example", new()
    {
        DeviceSerial = "Q234-ABCD-5678",
        LicenseId = "string",
        OrganizationId = "string",
    });
    return new Dictionary<string, object?>
    {
        ["merakiOrganizationsLicensesExample"] = example,
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.Licenses;
import com.pulumi.meraki.organizations.LicensesArgs;
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) {
        var example = new Licenses("example", LicensesArgs.builder()
            .deviceSerial("Q234-ABCD-5678")
            .licenseId("string")
            .organizationId("string")
            .build());
        ctx.export("merakiOrganizationsLicensesExample", example);
    }
}
resources:
  example:
    type: meraki:organizations:Licenses
    properties:
      deviceSerial: Q234-ABCD-5678
      licenseId: string
      organizationId: string
outputs:
  merakiOrganizationsLicensesExample: ${example}
Create Licenses Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Licenses(name: string, args: LicensesArgs, opts?: CustomResourceOptions);@overload
def Licenses(resource_name: str,
             args: LicensesArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Licenses(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             license_id: Optional[str] = None,
             organization_id: Optional[str] = None,
             device_serial: Optional[str] = None)func NewLicenses(ctx *Context, name string, args LicensesArgs, opts ...ResourceOption) (*Licenses, error)public Licenses(string name, LicensesArgs args, CustomResourceOptions? opts = null)
public Licenses(String name, LicensesArgs args)
public Licenses(String name, LicensesArgs args, CustomResourceOptions options)
type: meraki:organizations:Licenses
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LicensesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LicensesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LicensesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LicensesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LicensesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var licensesResource = new Meraki.Organizations.Licenses("licensesResource", new()
{
    LicenseId = "string",
    OrganizationId = "string",
    DeviceSerial = "string",
});
example, err := organizations.NewLicenses(ctx, "licensesResource", &organizations.LicensesArgs{
	LicenseId:      pulumi.String("string"),
	OrganizationId: pulumi.String("string"),
	DeviceSerial:   pulumi.String("string"),
})
var licensesResource = new Licenses("licensesResource", LicensesArgs.builder()
    .licenseId("string")
    .organizationId("string")
    .deviceSerial("string")
    .build());
licenses_resource = meraki.organizations.Licenses("licensesResource",
    license_id="string",
    organization_id="string",
    device_serial="string")
const licensesResource = new meraki.organizations.Licenses("licensesResource", {
    licenseId: "string",
    organizationId: "string",
    deviceSerial: "string",
});
type: meraki:organizations:Licenses
properties:
    deviceSerial: string
    licenseId: string
    organizationId: string
Licenses Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Licenses resource accepts the following input properties:
- LicenseId string
- licenseId path parameter. License ID
- OrganizationId string
- organizationId path parameter. Organization ID
- DeviceSerial string
- Serial number of the device the license is assigned to
- LicenseId string
- licenseId path parameter. License ID
- OrganizationId string
- organizationId path parameter. Organization ID
- DeviceSerial string
- Serial number of the device the license is assigned to
- licenseId String
- licenseId path parameter. License ID
- organizationId String
- organizationId path parameter. Organization ID
- deviceSerial String
- Serial number of the device the license is assigned to
- licenseId string
- licenseId path parameter. License ID
- organizationId string
- organizationId path parameter. Organization ID
- deviceSerial string
- Serial number of the device the license is assigned to
- license_id str
- licenseId path parameter. License ID
- organization_id str
- organizationId path parameter. Organization ID
- device_serial str
- Serial number of the device the license is assigned to
- licenseId String
- licenseId path parameter. License ID
- organizationId String
- organizationId path parameter. Organization ID
- deviceSerial String
- Serial number of the device the license is assigned to
Outputs
All input properties are implicitly available as output properties. Additionally, the Licenses resource produces the following output properties:
- ActivationDate string
- The date the license started burning
- ClaimDate string
- The date the license was claimed into the organization
- 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
- The provider-assigned unique ID for this managed resource.
- 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<LicensesLicenses 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
- 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
- The provider-assigned unique ID for this managed resource.
- LicenseKey string
- License key
- LicenseType string
- License type
- NetworkId string
- ID of the network the license is assigned to
- OrderNumber string
- Order number
- PermanentlyQueued []LicensesLicenses 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
- 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
- The provider-assigned unique ID for this managed resource.
- 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<LicensesLicenses 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
- 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
- The provider-assigned unique ID for this managed resource.
- licenseKey string
- License key
- licenseType string
- License type
- networkId string
- ID of the network the license is assigned to
- orderNumber string
- Order number
- permanentlyQueued LicensesLicenses 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
- 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
- The provider-assigned unique ID for this managed resource.
- 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[Licenseslicenses 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
- 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
- The provider-assigned unique ID for this managed resource.
- 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
Look up Existing Licenses Resource
Get an existing Licenses resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LicensesState, opts?: CustomResourceOptions): Licenses@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        activation_date: Optional[str] = None,
        claim_date: Optional[str] = None,
        device_serial: Optional[str] = None,
        duration_in_days: Optional[int] = None,
        expiration_date: Optional[str] = None,
        head_license_id: Optional[str] = None,
        license_id: Optional[str] = None,
        license_key: Optional[str] = None,
        license_type: Optional[str] = None,
        network_id: Optional[str] = None,
        order_number: Optional[str] = None,
        organization_id: Optional[str] = None,
        permanently_queued_licenses: Optional[Sequence[LicensesPermanentlyQueuedLicenseArgs]] = None,
        seat_count: Optional[int] = None,
        state: Optional[str] = None,
        total_duration_in_days: Optional[int] = None) -> Licensesfunc GetLicenses(ctx *Context, name string, id IDInput, state *LicensesState, opts ...ResourceOption) (*Licenses, error)public static Licenses Get(string name, Input<string> id, LicensesState? state, CustomResourceOptions? opts = null)public static Licenses get(String name, Output<String> id, LicensesState state, CustomResourceOptions options)resources:  _:    type: meraki:organizations:Licenses    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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.
- LicenseId string
- licenseId path parameter. 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
- OrganizationId string
- organizationId path parameter. Organization ID
- PermanentlyQueued List<LicensesLicenses 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.
- LicenseId string
- licenseId path parameter. 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
- OrganizationId string
- organizationId path parameter. Organization ID
- PermanentlyQueued []LicensesLicenses Permanently Queued License Args 
- 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.
- licenseId String
- licenseId path parameter. 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
- organizationId String
- organizationId path parameter. Organization ID
- permanentlyQueued List<LicensesLicenses 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.
- licenseId string
- licenseId path parameter. 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
- organizationId string
- organizationId path parameter. Organization ID
- permanentlyQueued LicensesLicenses 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.
- license_id str
- licenseId path parameter. 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
- organization_id str
- organizationId path parameter. Organization ID
- permanently_queued_ Sequence[Licenseslicenses Permanently Queued License Args] 
- 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.
- licenseId String
- licenseId path parameter. 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
- organizationId String
- organizationId path parameter. Organization ID
- 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
Supporting Types
LicensesPermanentlyQueuedLicense, LicensesPermanentlyQueuedLicenseArgs        
- 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
Import
$ pulumi import meraki:organizations/licenses:Licenses example "license_id,organization_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the merakiTerraform Provider.
