1. Packages
  2. Cisco Meraki
  3. API Docs
  4. organizations
  5. ConfigTemplates
Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi

meraki.organizations.ConfigTemplates

Explore with Pulumi AI

meraki logo
Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.organizations.ConfigTemplates("example", {
        name: "My config template",
        organizationId: "string",
        timeZone: "America/Los_Angeles",
    });
    export const merakiOrganizationsConfigTemplatesExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.ConfigTemplates("example",
        name="My config template",
        organization_id="string",
        time_zone="America/Los_Angeles")
    pulumi.export("merakiOrganizationsConfigTemplatesExample", 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.NewConfigTemplates(ctx, "example", &organizations.ConfigTemplatesArgs{
    			Name:           pulumi.String("My config template"),
    			OrganizationId: pulumi.String("string"),
    			TimeZone:       pulumi.String("America/Los_Angeles"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsConfigTemplatesExample", 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.ConfigTemplates("example", new()
        {
            Name = "My config template",
            OrganizationId = "string",
            TimeZone = "America/Los_Angeles",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsConfigTemplatesExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.ConfigTemplates;
    import com.pulumi.meraki.organizations.ConfigTemplatesArgs;
    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 ConfigTemplates("example", ConfigTemplatesArgs.builder()        
                .name("My config template")
                .organizationId("string")
                .timeZone("America/Los_Angeles")
                .build());
    
            ctx.export("merakiOrganizationsConfigTemplatesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:organizations:ConfigTemplates
        properties:
          name: My config template
          organizationId: string
          timeZone: America/Los_Angeles
    outputs:
      merakiOrganizationsConfigTemplatesExample: ${example}
    

    Create ConfigTemplates Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConfigTemplates(name: string, args: ConfigTemplatesArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigTemplates(resource_name: str,
                        args: ConfigTemplatesArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigTemplates(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        organization_id: Optional[str] = None,
                        config_template_id: Optional[str] = None,
                        name: Optional[str] = None,
                        time_zone: Optional[str] = None)
    func NewConfigTemplates(ctx *Context, name string, args ConfigTemplatesArgs, opts ...ResourceOption) (*ConfigTemplates, error)
    public ConfigTemplates(string name, ConfigTemplatesArgs args, CustomResourceOptions? opts = null)
    public ConfigTemplates(String name, ConfigTemplatesArgs args)
    public ConfigTemplates(String name, ConfigTemplatesArgs args, CustomResourceOptions options)
    
    type: meraki:organizations:ConfigTemplates
    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 ConfigTemplatesArgs
    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 ConfigTemplatesArgs
    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 ConfigTemplatesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigTemplatesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigTemplatesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var configTemplatesResource = new Meraki.Organizations.ConfigTemplates("configTemplatesResource", new()
    {
        OrganizationId = "string",
        ConfigTemplateId = "string",
        Name = "string",
        TimeZone = "string",
    });
    
    example, err := organizations.NewConfigTemplates(ctx, "configTemplatesResource", &organizations.ConfigTemplatesArgs{
    	OrganizationId:   pulumi.String("string"),
    	ConfigTemplateId: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	TimeZone:         pulumi.String("string"),
    })
    
    var configTemplatesResource = new ConfigTemplates("configTemplatesResource", ConfigTemplatesArgs.builder()        
        .organizationId("string")
        .configTemplateId("string")
        .name("string")
        .timeZone("string")
        .build());
    
    config_templates_resource = meraki.organizations.ConfigTemplates("configTemplatesResource",
        organization_id="string",
        config_template_id="string",
        name="string",
        time_zone="string")
    
    const configTemplatesResource = new meraki.organizations.ConfigTemplates("configTemplatesResource", {
        organizationId: "string",
        configTemplateId: "string",
        name: "string",
        timeZone: "string",
    });
    
    type: meraki:organizations:ConfigTemplates
    properties:
        configTemplateId: string
        name: string
        organizationId: string
        timeZone: string
    

    ConfigTemplates Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ConfigTemplates resource accepts the following input properties:

    OrganizationId string
    organizationId path parameter. Organization ID
    ConfigTemplateId string
    configTemplateId path parameter. Config template ID
    Name string
    The name of the configuration template
    TimeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    OrganizationId string
    organizationId path parameter. Organization ID
    ConfigTemplateId string
    configTemplateId path parameter. Config template ID
    Name string
    The name of the configuration template
    TimeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    organizationId String
    organizationId path parameter. Organization ID
    configTemplateId String
    configTemplateId path parameter. Config template ID
    name String
    The name of the configuration template
    timeZone String
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    organizationId string
    organizationId path parameter. Organization ID
    configTemplateId string
    configTemplateId path parameter. Config template ID
    name string
    The name of the configuration template
    timeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    organization_id str
    organizationId path parameter. Organization ID
    config_template_id str
    configTemplateId path parameter. Config template ID
    name str
    The name of the configuration template
    time_zone str
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    organizationId String
    organizationId path parameter. Organization ID
    configTemplateId String
    configTemplateId path parameter. Config template ID
    name String
    The name of the configuration template
    timeZone String
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConfigTemplates resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProductTypes List<string>
    The product types of the configuration template
    Id string
    The provider-assigned unique ID for this managed resource.
    ProductTypes []string
    The product types of the configuration template
    id String
    The provider-assigned unique ID for this managed resource.
    productTypes List<String>
    The product types of the configuration template
    id string
    The provider-assigned unique ID for this managed resource.
    productTypes string[]
    The product types of the configuration template
    id str
    The provider-assigned unique ID for this managed resource.
    product_types Sequence[str]
    The product types of the configuration template
    id String
    The provider-assigned unique ID for this managed resource.
    productTypes List<String>
    The product types of the configuration template

    Look up Existing ConfigTemplates Resource

    Get an existing ConfigTemplates 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?: ConfigTemplatesState, opts?: CustomResourceOptions): ConfigTemplates
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_template_id: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            product_types: Optional[Sequence[str]] = None,
            time_zone: Optional[str] = None) -> ConfigTemplates
    func GetConfigTemplates(ctx *Context, name string, id IDInput, state *ConfigTemplatesState, opts ...ResourceOption) (*ConfigTemplates, error)
    public static ConfigTemplates Get(string name, Input<string> id, ConfigTemplatesState? state, CustomResourceOptions? opts = null)
    public static ConfigTemplates get(String name, Output<String> id, ConfigTemplatesState 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.
    The following state arguments are supported:
    ConfigTemplateId string
    configTemplateId path parameter. Config template ID
    Name string
    The name of the configuration template
    OrganizationId string
    organizationId path parameter. Organization ID
    ProductTypes List<string>
    The product types of the configuration template
    TimeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    ConfigTemplateId string
    configTemplateId path parameter. Config template ID
    Name string
    The name of the configuration template
    OrganizationId string
    organizationId path parameter. Organization ID
    ProductTypes []string
    The product types of the configuration template
    TimeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    configTemplateId String
    configTemplateId path parameter. Config template ID
    name String
    The name of the configuration template
    organizationId String
    organizationId path parameter. Organization ID
    productTypes List<String>
    The product types of the configuration template
    timeZone String
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    configTemplateId string
    configTemplateId path parameter. Config template ID
    name string
    The name of the configuration template
    organizationId string
    organizationId path parameter. Organization ID
    productTypes string[]
    The product types of the configuration template
    timeZone string
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    config_template_id str
    configTemplateId path parameter. Config template ID
    name str
    The name of the configuration template
    organization_id str
    organizationId path parameter. Organization ID
    product_types Sequence[str]
    The product types of the configuration template
    time_zone str
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template
    configTemplateId String
    configTemplateId path parameter. Config template ID
    name String
    The name of the configuration template
    organizationId String
    organizationId path parameter. Organization ID
    productTypes List<String>
    The product types of the configuration template
    timeZone String
    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in \n\nthis article\n\n. Not applicable if copying from existing network or template

    Import

    $ pulumi import meraki:organizations/configTemplates:ConfigTemplates example "config_template_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.
    meraki logo
    Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi