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:
- License
Id string - licenseId path parameter. License ID
- Organization
Id string - organizationId path parameter. Organization ID
- Device
Serial string - Serial number of the device the license is assigned to
- License
Id string - licenseId path parameter. License ID
- Organization
Id string - organizationId path parameter. Organization ID
- Device
Serial string - Serial number of the device the license is assigned to
- license
Id String - licenseId path parameter. License ID
- organization
Id String - organizationId path parameter. Organization ID
- device
Serial String - Serial number of the device the license is assigned to
- license
Id string - licenseId path parameter. License ID
- organization
Id string - organizationId path parameter. Organization ID
- device
Serial 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
- license
Id String - licenseId path parameter. License ID
- organization
Id String - organizationId path parameter. Organization ID
- device
Serial 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:
- Activation
Date string - The date the license started burning
- Claim
Date string - The date the license was claimed into the organization
- Duration
In intDays - The duration of the individual license
- Expiration
Date string - The date the license will expire
- Head
License 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.
- License
Key string - License key
- License
Type string - License type
- Network
Id string - ID of the network the license is assigned to
- Order
Number string - Order number
- Permanently
Queued 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.
- Seat
Count 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.
- Total
Duration intIn Days - The duration of the license plus all permanently queued licenses associated with it
- Activation
Date string - The date the license started burning
- Claim
Date string - The date the license was claimed into the organization
- Duration
In intDays - The duration of the individual license
- Expiration
Date string - The date the license will expire
- Head
License 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.
- License
Key string - License key
- License
Type string - License type
- Network
Id string - ID of the network the license is assigned to
- Order
Number string - Order number
- Permanently
Queued []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 string
- 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
- activation
Date String - The date the license started burning
- claim
Date String - The date the license was claimed into the organization
- duration
In IntegerDays - The duration of the individual license
- expiration
Date String - The date the license will expire
- head
License 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.
- license
Key String - License key
- license
Type String - License type
- network
Id String - ID of the network the license is assigned to
- order
Number String - Order number
- permanently
Queued 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.
- seat
Count 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.
- total
Duration IntegerIn Days - The duration of the license plus all permanently queued licenses associated with it
- activation
Date string - The date the license started burning
- claim
Date string - The date the license was claimed into the organization
- duration
In numberDays - The duration of the individual license
- expiration
Date string - The date the license will expire
- head
License 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.
- license
Key string - License key
- license
Type string - License type
- network
Id string - ID of the network the license is assigned to
- order
Number string - Order number
- permanently
Queued 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 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.
- total
Duration 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
- activation
Date String - The date the license started burning
- claim
Date String - The date the license was claimed into the organization
- duration
In NumberDays - The duration of the individual license
- expiration
Date String - The date the license will expire
- head
License 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.
- license
Key String - License key
- license
Type String - License type
- network
Id String - ID of the network the license is assigned to
- order
Number String - Order number
- permanently
Queued 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.
- seat
Count 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.
- total
Duration 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) -> Licenses
func 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)
Resource lookup is not supported in YAML
- 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.
- Activation
Date string - The date the license started burning
- Claim
Date string - The date the license was claimed into the organization
- Device
Serial string - Serial number of the device the license is assigned to
- Duration
In intDays - The duration of the individual license
- Expiration
Date string - The date the license will expire
- Head
License stringId - The id of the head license this license is queued behind. If there is no head license, it returns nil.
- License
Id string - licenseId path parameter. License ID
- License
Key string - License key
- License
Type string - License type
- Network
Id string - ID of the network the license is assigned to
- Order
Number string - Order number
- Organization
Id string - organizationId path parameter. Organization ID
- Permanently
Queued 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.
- Seat
Count 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.
- Total
Duration intIn Days - The duration of the license plus all permanently queued licenses associated with it
- Activation
Date string - The date the license started burning
- Claim
Date string - The date the license was claimed into the organization
- Device
Serial string - Serial number of the device the license is assigned to
- Duration
In intDays - The duration of the individual license
- Expiration
Date string - The date the license will expire
- Head
License stringId - The id of the head license this license is queued behind. If there is no head license, it returns nil.
- License
Id string - licenseId path parameter. License ID
- License
Key string - License key
- License
Type string - License type
- Network
Id string - ID of the network the license is assigned to
- Order
Number string - Order number
- Organization
Id string - organizationId path parameter. Organization ID
- Permanently
Queued []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 string
- 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
- activation
Date String - The date the license started burning
- claim
Date String - The date the license was claimed into the organization
- device
Serial String - Serial number of the device the license is assigned to
- duration
In IntegerDays - The duration of the individual license
- expiration
Date String - The date the license will expire
- head
License StringId - The id of the head license this license is queued behind. If there is no head license, it returns nil.
- license
Id String - licenseId path parameter. License ID
- license
Key String - License key
- license
Type String - License type
- network
Id String - ID of the network the license is assigned to
- order
Number String - Order number
- organization
Id String - organizationId path parameter. Organization ID
- permanently
Queued 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.
- seat
Count 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.
- total
Duration IntegerIn Days - The duration of the license plus all permanently queued licenses associated with it
- activation
Date string - The date the license started burning
- claim
Date string - The date the license was claimed into the organization
- device
Serial string - Serial number of the device the license is assigned to
- duration
In numberDays - The duration of the individual license
- expiration
Date string - The date the license will expire
- head
License stringId - The id of the head license this license is queued behind. If there is no head license, it returns nil.
- license
Id string - licenseId path parameter. License ID
- license
Key string - License key
- license
Type string - License type
- network
Id string - ID of the network the license is assigned to
- order
Number string - Order number
- organization
Id string - organizationId path parameter. Organization ID
- permanently
Queued 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 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.
- total
Duration 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
- activation
Date String - The date the license started burning
- claim
Date String - The date the license was claimed into the organization
- device
Serial String - Serial number of the device the license is assigned to
- duration
In NumberDays - The duration of the individual license
- expiration
Date String - The date the license will expire
- head
License StringId - The id of the head license this license is queued behind. If there is no head license, it returns nil.
- license
Id String - licenseId path parameter. License ID
- license
Key String - License key
- license
Type String - License type
- network
Id String - ID of the network the license is assigned to
- order
Number String - Order number
- organization
Id String - organizationId path parameter. Organization ID
- permanently
Queued 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.
- seat
Count 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.
- total
Duration NumberIn Days - The duration of the license plus all permanently queued licenses associated with it
Supporting Types
LicensesPermanentlyQueuedLicense, LicensesPermanentlyQueuedLicenseArgs
- Duration
In intDays - The duration of the individual license
- Id string
- Permanently queued license ID
- License
Key string - License key
- License
Type string - License type
- Order
Number string - Order number
- Duration
In intDays - The duration of the individual license
- Id string
- Permanently queued license ID
- License
Key string - License key
- License
Type string - License type
- Order
Number string - Order number
- duration
In IntegerDays - The duration of the individual license
- id String
- Permanently queued license ID
- license
Key String - License key
- license
Type String - License type
- order
Number String - Order number
- duration
In numberDays - The duration of the individual license
- id string
- Permanently queued license ID
- license
Key string - License key
- license
Type string - License type
- order
Number 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
- duration
In NumberDays - The duration of the individual license
- id String
- Permanently queued license ID
- license
Key String - License key
- license
Type String - License type
- order
Number 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
meraki
Terraform Provider.