Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.organizations.getLicensingCotermLicenses
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.organizations.getLicensingCotermLicenses({
endingBefore: "string",
expired: false,
invalidated: false,
organizationId: "string",
perPage: 1,
startingAfter: "string",
});
export const merakiOrganizationsLicensingCotermLicensesExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.get_licensing_coterm_licenses(ending_before="string",
expired=False,
invalidated=False,
organization_id="string",
per_page=1,
starting_after="string")
pulumi.export("merakiOrganizationsLicensingCotermLicensesExample", example.items)
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.GetLicensingCotermLicenses(ctx, &organizations.GetLicensingCotermLicensesArgs{
EndingBefore: pulumi.StringRef("string"),
Expired: pulumi.BoolRef(false),
Invalidated: pulumi.BoolRef(false),
OrganizationId: "string",
PerPage: pulumi.IntRef(1),
StartingAfter: pulumi.StringRef("string"),
}, nil)
if err != nil {
return err
}
ctx.Export("merakiOrganizationsLicensingCotermLicensesExample", example.Items)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Organizations.GetLicensingCotermLicenses.Invoke(new()
{
EndingBefore = "string",
Expired = false,
Invalidated = false,
OrganizationId = "string",
PerPage = 1,
StartingAfter = "string",
});
return new Dictionary<string, object?>
{
["merakiOrganizationsLicensingCotermLicensesExample"] = example.Apply(getLicensingCotermLicensesResult => getLicensingCotermLicensesResult.Items),
};
});
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.GetLicensingCotermLicensesArgs;
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.getLicensingCotermLicenses(GetLicensingCotermLicensesArgs.builder()
.endingBefore("string")
.expired(false)
.invalidated(false)
.organizationId("string")
.perPage(1)
.startingAfter("string")
.build());
ctx.export("merakiOrganizationsLicensingCotermLicensesExample", example.applyValue(getLicensingCotermLicensesResult -> getLicensingCotermLicensesResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:organizations:getLicensingCotermLicenses
Arguments:
endingBefore: string
expired: false
invalidated: false
organizationId: string
perPage: 1
startingAfter: string
outputs:
merakiOrganizationsLicensingCotermLicensesExample: ${example.items}
Using getLicensingCotermLicenses
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 getLicensingCotermLicenses(args: GetLicensingCotermLicensesArgs, opts?: InvokeOptions): Promise<GetLicensingCotermLicensesResult>
function getLicensingCotermLicensesOutput(args: GetLicensingCotermLicensesOutputArgs, opts?: InvokeOptions): Output<GetLicensingCotermLicensesResult>
def get_licensing_coterm_licenses(ending_before: Optional[str] = None,
expired: Optional[bool] = None,
invalidated: Optional[bool] = None,
organization_id: Optional[str] = None,
per_page: Optional[int] = None,
starting_after: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLicensingCotermLicensesResult
def get_licensing_coterm_licenses_output(ending_before: Optional[pulumi.Input[str]] = None,
expired: Optional[pulumi.Input[bool]] = None,
invalidated: Optional[pulumi.Input[bool]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
per_page: Optional[pulumi.Input[int]] = None,
starting_after: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLicensingCotermLicensesResult]
func GetLicensingCotermLicenses(ctx *Context, args *GetLicensingCotermLicensesArgs, opts ...InvokeOption) (*GetLicensingCotermLicensesResult, error)
func GetLicensingCotermLicensesOutput(ctx *Context, args *GetLicensingCotermLicensesOutputArgs, opts ...InvokeOption) GetLicensingCotermLicensesResultOutput
> Note: This function is named GetLicensingCotermLicenses
in the Go SDK.
public static class GetLicensingCotermLicenses
{
public static Task<GetLicensingCotermLicensesResult> InvokeAsync(GetLicensingCotermLicensesArgs args, InvokeOptions? opts = null)
public static Output<GetLicensingCotermLicensesResult> Invoke(GetLicensingCotermLicensesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLicensingCotermLicensesResult> getLicensingCotermLicenses(GetLicensingCotermLicensesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:organizations/getLicensingCotermLicenses:getLicensingCotermLicenses
arguments:
# arguments dictionary
The following arguments are supported:
- Organization
Id string - organizationId path parameter. Organization ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Expired bool
- expired query parameter. Filter for licenses that are expired
- Invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Organization
Id string - organizationId path parameter. Organization ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Expired bool
- expired query parameter. Filter for licenses that are expired
- Invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- organization
Id String - organizationId path parameter. Organization ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired Boolean
- expired query parameter. Filter for licenses that are expired
- invalidated Boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page Integer - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- organization
Id string - organizationId path parameter. Organization ID
- ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired boolean
- expired query parameter. Filter for licenses that are expired
- invalidated boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- organization_
id str - organizationId path parameter. Organization ID
- ending_
before str - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired bool
- expired query parameter. Filter for licenses that are expired
- invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- per_
page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting_
after str - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- organization
Id String - organizationId path parameter. Organization ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired Boolean
- expired query parameter. Filter for licenses that are expired
- invalidated Boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page Number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
getLicensingCotermLicenses Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Licensing Coterm Licenses Item> - Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- Organization
Id string - organizationId path parameter. Organization ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Expired bool
- expired query parameter. Filter for licenses that are expired
- Invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Licensing Coterm Licenses Item - Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- Organization
Id string - organizationId path parameter. Organization ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Expired bool
- expired query parameter. Filter for licenses that are expired
- Invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Licensing Coterm Licenses Item> - Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- organization
Id String - organizationId path parameter. Organization ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired Boolean
- expired query parameter. Filter for licenses that are expired
- invalidated Boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page Integer - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Licensing Coterm Licenses Item[] - Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- organization
Id string - organizationId path parameter. Organization ID
- ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired boolean
- expired query parameter. Filter for licenses that are expired
- invalidated boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Licensing Coterm Licenses Item] - Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- organization_
id str - organizationId path parameter. Organization ID
- ending_
before str - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired bool
- expired query parameter. Filter for licenses that are expired
- invalidated bool
- invalidated query parameter. Filter for licenses that are invalidated
- per_
page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting_
after str - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseLicensingGetOrganizationLicensingCotermLicenses
- organization
Id String - organizationId path parameter. Organization ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- expired Boolean
- expired query parameter. Filter for licenses that are expired
- invalidated Boolean
- invalidated query parameter. Filter for licenses that are invalidated
- per
Page Number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
Supporting Types
GetLicensingCotermLicensesItem
- Claimed
At string - When the license was claimed into the organization
- Counts
List<Get
Licensing Coterm Licenses Item Count> - The counts of the license by model type
- Duration int
- The duration (term length) of the license, measured in days
- Editions
List<Get
Licensing Coterm Licenses Item Edition> - The editions of the license for each relevant product type
- Expired bool
- Flag to indicate if the license is expired
- Invalidated bool
- Flag to indicated that the license is invalidated
- Invalidated
At string - When the license was invalidated. Will be null for active licenses
- Key string
- The key of the license
- Mode string
- The operation mode of the license when it was claimed
- Organization
Id string - The ID of the organization that the license is claimed in
- Started
At string - When the license's term began (approximately the date when the license was created)
- Claimed
At string - When the license was claimed into the organization
- Counts
[]Get
Licensing Coterm Licenses Item Count - The counts of the license by model type
- Duration int
- The duration (term length) of the license, measured in days
- Editions
[]Get
Licensing Coterm Licenses Item Edition - The editions of the license for each relevant product type
- Expired bool
- Flag to indicate if the license is expired
- Invalidated bool
- Flag to indicated that the license is invalidated
- Invalidated
At string - When the license was invalidated. Will be null for active licenses
- Key string
- The key of the license
- Mode string
- The operation mode of the license when it was claimed
- Organization
Id string - The ID of the organization that the license is claimed in
- Started
At string - When the license's term began (approximately the date when the license was created)
- claimed
At String - When the license was claimed into the organization
- counts
List<Get
Licensing Coterm Licenses Item Count> - The counts of the license by model type
- duration Integer
- The duration (term length) of the license, measured in days
- editions
List<Get
Licensing Coterm Licenses Item Edition> - The editions of the license for each relevant product type
- expired Boolean
- Flag to indicate if the license is expired
- invalidated Boolean
- Flag to indicated that the license is invalidated
- invalidated
At String - When the license was invalidated. Will be null for active licenses
- key String
- The key of the license
- mode String
- The operation mode of the license when it was claimed
- organization
Id String - The ID of the organization that the license is claimed in
- started
At String - When the license's term began (approximately the date when the license was created)
- claimed
At string - When the license was claimed into the organization
- counts
Get
Licensing Coterm Licenses Item Count[] - The counts of the license by model type
- duration number
- The duration (term length) of the license, measured in days
- editions
Get
Licensing Coterm Licenses Item Edition[] - The editions of the license for each relevant product type
- expired boolean
- Flag to indicate if the license is expired
- invalidated boolean
- Flag to indicated that the license is invalidated
- invalidated
At string - When the license was invalidated. Will be null for active licenses
- key string
- The key of the license
- mode string
- The operation mode of the license when it was claimed
- organization
Id string - The ID of the organization that the license is claimed in
- started
At string - When the license's term began (approximately the date when the license was created)
- claimed_
at str - When the license was claimed into the organization
- counts
Sequence[Get
Licensing Coterm Licenses Item Count] - The counts of the license by model type
- duration int
- The duration (term length) of the license, measured in days
- editions
Sequence[Get
Licensing Coterm Licenses Item Edition] - The editions of the license for each relevant product type
- expired bool
- Flag to indicate if the license is expired
- invalidated bool
- Flag to indicated that the license is invalidated
- invalidated_
at str - When the license was invalidated. Will be null for active licenses
- key str
- The key of the license
- mode str
- The operation mode of the license when it was claimed
- organization_
id str - The ID of the organization that the license is claimed in
- started_
at str - When the license's term began (approximately the date when the license was created)
- claimed
At String - When the license was claimed into the organization
- counts List<Property Map>
- The counts of the license by model type
- duration Number
- The duration (term length) of the license, measured in days
- editions List<Property Map>
- The editions of the license for each relevant product type
- expired Boolean
- Flag to indicate if the license is expired
- invalidated Boolean
- Flag to indicated that the license is invalidated
- invalidated
At String - When the license was invalidated. Will be null for active licenses
- key String
- The key of the license
- mode String
- The operation mode of the license when it was claimed
- organization
Id String - The ID of the organization that the license is claimed in
- started
At String - When the license's term began (approximately the date when the license was created)
GetLicensingCotermLicensesItemCount
GetLicensingCotermLicensesItemEdition
- Edition string
- The name of the license edition
- Product
Type string - The product type of the license edition
- Edition string
- The name of the license edition
- Product
Type string - The product type of the license edition
- edition String
- The name of the license edition
- product
Type String - The product type of the license edition
- edition string
- The name of the license edition
- product
Type string - The product type of the license edition
- edition str
- The name of the license edition
- product_
type str - The product type of the license edition
- edition String
- The name of the license edition
- product
Type String - The product type of the license edition
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.