meraki.organizations.InventoryClaim
Explore with Pulumi AI
~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.organizations.InventoryClaim("example", {
organizationId: "string",
parameters: {
licenses: [{
key: "Z2XXXXXXXXXX",
mode: "addDevices",
}],
orders: ["4CXXXXXXX"],
serials: ["Q234-ABCD-5678"],
},
});
export const merakiOrganizationsInventoryClaimExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.InventoryClaim("example",
organization_id="string",
parameters={
"licenses": [{
"key": "Z2XXXXXXXXXX",
"mode": "addDevices",
}],
"orders": ["4CXXXXXXX"],
"serials": ["Q234-ABCD-5678"],
})
pulumi.export("merakiOrganizationsInventoryClaimExample", 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.NewInventoryClaim(ctx, "example", &organizations.InventoryClaimArgs{
OrganizationId: pulumi.String("string"),
Parameters: &organizations.InventoryClaimParametersArgs{
Licenses: organizations.InventoryClaimParametersLicenseArray{
&organizations.InventoryClaimParametersLicenseArgs{
Key: pulumi.String("Z2XXXXXXXXXX"),
Mode: pulumi.String("addDevices"),
},
},
Orders: pulumi.StringArray{
pulumi.String("4CXXXXXXX"),
},
Serials: pulumi.StringArray{
pulumi.String("Q234-ABCD-5678"),
},
},
})
if err != nil {
return err
}
ctx.Export("merakiOrganizationsInventoryClaimExample", 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.InventoryClaim("example", new()
{
OrganizationId = "string",
Parameters = new Meraki.Organizations.Inputs.InventoryClaimParametersArgs
{
Licenses = new[]
{
new Meraki.Organizations.Inputs.InventoryClaimParametersLicenseArgs
{
Key = "Z2XXXXXXXXXX",
Mode = "addDevices",
},
},
Orders = new[]
{
"4CXXXXXXX",
},
Serials = new[]
{
"Q234-ABCD-5678",
},
},
});
return new Dictionary<string, object?>
{
["merakiOrganizationsInventoryClaimExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.InventoryClaim;
import com.pulumi.meraki.organizations.InventoryClaimArgs;
import com.pulumi.meraki.organizations.inputs.InventoryClaimParametersArgs;
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 InventoryClaim("example", InventoryClaimArgs.builder()
.organizationId("string")
.parameters(InventoryClaimParametersArgs.builder()
.licenses(InventoryClaimParametersLicenseArgs.builder()
.key("Z2XXXXXXXXXX")
.mode("addDevices")
.build())
.orders("4CXXXXXXX")
.serials("Q234-ABCD-5678")
.build())
.build());
ctx.export("merakiOrganizationsInventoryClaimExample", example);
}
}
resources:
example:
type: meraki:organizations:InventoryClaim
properties:
organizationId: string
parameters:
licenses:
- key: Z2XXXXXXXXXX
mode: addDevices
orders:
- 4CXXXXXXX
serials:
- Q234-ABCD-5678
outputs:
merakiOrganizationsInventoryClaimExample: ${example}
Create InventoryClaim Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InventoryClaim(name: string, args: InventoryClaimArgs, opts?: CustomResourceOptions);
@overload
def InventoryClaim(resource_name: str,
args: InventoryClaimArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InventoryClaim(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
parameters: Optional[InventoryClaimParametersArgs] = None)
func NewInventoryClaim(ctx *Context, name string, args InventoryClaimArgs, opts ...ResourceOption) (*InventoryClaim, error)
public InventoryClaim(string name, InventoryClaimArgs args, CustomResourceOptions? opts = null)
public InventoryClaim(String name, InventoryClaimArgs args)
public InventoryClaim(String name, InventoryClaimArgs args, CustomResourceOptions options)
type: meraki:organizations:InventoryClaim
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 InventoryClaimArgs
- 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 InventoryClaimArgs
- 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 InventoryClaimArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InventoryClaimArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InventoryClaimArgs
- 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 inventoryClaimResource = new Meraki.Organizations.InventoryClaim("inventoryClaimResource", new()
{
OrganizationId = "string",
Parameters = new Meraki.Organizations.Inputs.InventoryClaimParametersArgs
{
Licenses = new[]
{
new Meraki.Organizations.Inputs.InventoryClaimParametersLicenseArgs
{
Key = "string",
Mode = "string",
},
},
Orders = new[]
{
"string",
},
Serials = new[]
{
"string",
},
},
});
example, err := organizations.NewInventoryClaim(ctx, "inventoryClaimResource", &organizations.InventoryClaimArgs{
OrganizationId: pulumi.String("string"),
Parameters: &organizations.InventoryClaimParametersArgs{
Licenses: organizations.InventoryClaimParametersLicenseArray{
&organizations.InventoryClaimParametersLicenseArgs{
Key: pulumi.String("string"),
Mode: pulumi.String("string"),
},
},
Orders: pulumi.StringArray{
pulumi.String("string"),
},
Serials: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var inventoryClaimResource = new InventoryClaim("inventoryClaimResource", InventoryClaimArgs.builder()
.organizationId("string")
.parameters(InventoryClaimParametersArgs.builder()
.licenses(InventoryClaimParametersLicenseArgs.builder()
.key("string")
.mode("string")
.build())
.orders("string")
.serials("string")
.build())
.build());
inventory_claim_resource = meraki.organizations.InventoryClaim("inventoryClaimResource",
organization_id="string",
parameters={
"licenses": [{
"key": "string",
"mode": "string",
}],
"orders": ["string"],
"serials": ["string"],
})
const inventoryClaimResource = new meraki.organizations.InventoryClaim("inventoryClaimResource", {
organizationId: "string",
parameters: {
licenses: [{
key: "string",
mode: "string",
}],
orders: ["string"],
serials: ["string"],
},
});
type: meraki:organizations:InventoryClaim
properties:
organizationId: string
parameters:
licenses:
- key: string
mode: string
orders:
- string
serials:
- string
InventoryClaim 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 InventoryClaim resource accepts the following input properties:
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Inventory
Claim Parameters
- Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Inventory
Claim Parameters Args
- organization
Id String - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters
- organization
Id string - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters
- organization_
id str - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters Args
- organization
Id String - organizationId path parameter. Organization ID
- parameters Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the InventoryClaim resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Inventory
Claim Item
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Inventory
Claim Item
- id String
- The provider-assigned unique ID for this managed resource.
- item
Inventory
Claim Item
- id string
- The provider-assigned unique ID for this managed resource.
- item
Inventory
Claim Item
- id str
- The provider-assigned unique ID for this managed resource.
- item
Inventory
Claim Item
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
Look up Existing InventoryClaim Resource
Get an existing InventoryClaim 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?: InventoryClaimState, opts?: CustomResourceOptions): InventoryClaim
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
item: Optional[InventoryClaimItemArgs] = None,
organization_id: Optional[str] = None,
parameters: Optional[InventoryClaimParametersArgs] = None) -> InventoryClaim
func GetInventoryClaim(ctx *Context, name string, id IDInput, state *InventoryClaimState, opts ...ResourceOption) (*InventoryClaim, error)
public static InventoryClaim Get(string name, Input<string> id, InventoryClaimState? state, CustomResourceOptions? opts = null)
public static InventoryClaim get(String name, Output<String> id, InventoryClaimState 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.
- Item
Inventory
Claim Item - Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Inventory
Claim Parameters
- Item
Inventory
Claim Item Args - Organization
Id string - organizationId path parameter. Organization ID
- Parameters
Inventory
Claim Parameters Args
- item
Inventory
Claim Item - organization
Id String - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters
- item
Inventory
Claim Item - organization
Id string - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters
- item
Inventory
Claim Item Args - organization_
id str - organizationId path parameter. Organization ID
- parameters
Inventory
Claim Parameters Args
- item Property Map
- organization
Id String - organizationId path parameter. Organization ID
- parameters Property Map
Supporting Types
InventoryClaimItem, InventoryClaimItemArgs
- Licenses
List<Inventory
Claim Item License> - The licenses claimed
- Orders List<string>
- The numbers of the orders claimed
- Serials List<string>
- The serials of the devices claimed
- Licenses
[]Inventory
Claim Item License - The licenses claimed
- Orders []string
- The numbers of the orders claimed
- Serials []string
- The serials of the devices claimed
- licenses
List<Inventory
Claim Item License> - The licenses claimed
- orders List<String>
- The numbers of the orders claimed
- serials List<String>
- The serials of the devices claimed
- licenses
Inventory
Claim Item License[] - The licenses claimed
- orders string[]
- The numbers of the orders claimed
- serials string[]
- The serials of the devices claimed
- licenses
Sequence[Inventory
Claim Item License] - The licenses claimed
- orders Sequence[str]
- The numbers of the orders claimed
- serials Sequence[str]
- The serials of the devices claimed
- licenses List<Property Map>
- The licenses claimed
- orders List<String>
- The numbers of the orders claimed
- serials List<String>
- The serials of the devices claimed
InventoryClaimItemLicense, InventoryClaimItemLicenseArgs
InventoryClaimParameters, InventoryClaimParametersArgs
- Licenses
List<Inventory
Claim Parameters License> - The licenses that should be claimed
- Orders List<string>
- The numbers of the orders that should be claimed
- Serials List<string>
- The serials of the devices that should be claimed
- Licenses
[]Inventory
Claim Parameters License - The licenses that should be claimed
- Orders []string
- The numbers of the orders that should be claimed
- Serials []string
- The serials of the devices that should be claimed
- licenses
List<Inventory
Claim Parameters License> - The licenses that should be claimed
- orders List<String>
- The numbers of the orders that should be claimed
- serials List<String>
- The serials of the devices that should be claimed
- licenses
Inventory
Claim Parameters License[] - The licenses that should be claimed
- orders string[]
- The numbers of the orders that should be claimed
- serials string[]
- The serials of the devices that should be claimed
- licenses
Sequence[Inventory
Claim Parameters License] - The licenses that should be claimed
- orders Sequence[str]
- The numbers of the orders that should be claimed
- serials Sequence[str]
- The serials of the devices that should be claimed
- licenses List<Property Map>
- The licenses that should be claimed
- orders List<String>
- The numbers of the orders that should be claimed
- serials List<String>
- The serials of the devices that should be claimed
InventoryClaimParametersLicense, InventoryClaimParametersLicenseArgs
- Key string
- The key of the license
- Mode string
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
- Key string
- The key of the license
- Mode string
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
- key String
- The key of the license
- mode String
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
- key string
- The key of the license
- mode string
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
- key str
- The key of the license
- mode str
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
- key String
- The key of the license
- mode String
- Co-term licensing only: either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while 'renew' will extend the amount of time until expiration. Defaults to 'addDevices'. All licenses must be claimed with the same mode, and at most one renewal can be claimed at a time. Does not apply to organizations using per-device licensing model.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.