Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi
meraki.networks.Base
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.Base("example", {
name: "Main Office",
notes: "Additional description of the network",
organizationId: "string",
productTypes: [
"appliance",
"switch",
"wireless",
],
tags: [
"tag1",
"tag2",
],
timeZone: "America/Los_Angeles",
});
export const merakiNetworksExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.Base("example",
name="Main Office",
notes="Additional description of the network",
organization_id="string",
product_types=[
"appliance",
"switch",
"wireless",
],
tags=[
"tag1",
"tag2",
],
time_zone="America/Los_Angeles")
pulumi.export("merakiNetworksExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.Newbase(ctx, "example", &networks.baseArgs{
Name: pulumi.String("Main Office"),
Notes: pulumi.String("Additional description of the network"),
OrganizationId: pulumi.String("string"),
ProductTypes: pulumi.StringArray{
pulumi.String("appliance"),
pulumi.String("switch"),
pulumi.String("wireless"),
},
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
},
TimeZone: pulumi.String("America/Los_Angeles"),
})
if err != nil {
return err
}
ctx.Export("merakiNetworksExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Networks.Base("example", new()
{
Name = "Main Office",
Notes = "Additional description of the network",
OrganizationId = "string",
ProductTypes = new[]
{
"appliance",
"switch",
"wireless",
},
Tags = new[]
{
"tag1",
"tag2",
},
TimeZone = "America/Los_Angeles",
});
return new Dictionary<string, object?>
{
["merakiNetworksExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.base;
import com.pulumi.meraki.networks.BaseArgs;
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 Base("example", BaseArgs.builder()
.name("Main Office")
.notes("Additional description of the network")
.organizationId("string")
.productTypes(
"appliance",
"switch",
"wireless")
.tags(
"tag1",
"tag2")
.timeZone("America/Los_Angeles")
.build());
ctx.export("merakiNetworksExample", example);
}
}
resources:
example:
type: meraki:networks:base
properties:
name: Main Office
notes: Additional description of the network
organizationId: string
productTypes:
- appliance
- switch
- wireless
tags:
- tag1
- tag2
timeZone: America/Los_Angeles
outputs:
merakiNetworksExample: ${example}
Create Base Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Base(name: string, args: BaseArgs, opts?: CustomResourceOptions);
@overload
def Base(resource_name: str,
args: BaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Base(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
enrollment_string: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
notes: Optional[str] = None,
product_types: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
time_zone: Optional[str] = None)
func NewBase(ctx *Context, name string, args BaseArgs, opts ...ResourceOption) (*Base, error)
public Base(string name, BaseArgs args, CustomResourceOptions? opts = null)
type: meraki:networks/base:base
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 BaseArgs
- 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 BaseArgs
- 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 BaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Base 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 Base resource accepts the following input properties:
- Organization
Id string - Organization ID
- Enrollment
String string - Enrollment string for the network
- Name string
- Network name
- Network
Id string - networkId path parameter. Network ID
- Notes string
- Notes for the network
- Product
Types List<string> - List of the product types that the network supports
- List<string>
- Network tags
- Time
Zone string - Timezone of the network
- Organization
Id string - Organization ID
- Enrollment
String string - Enrollment string for the network
- Name string
- Network name
- Network
Id string - networkId path parameter. Network ID
- Notes string
- Notes for the network
- Product
Types []string - List of the product types that the network supports
- []string
- Network tags
- Time
Zone string - Timezone of the network
- organization
Id String - Organization ID
- enrollment
String String - Enrollment string for the network
- name String
- Network name
- network
Id String - networkId path parameter. Network ID
- notes String
- Notes for the network
- product
Types List<String> - List of the product types that the network supports
- List<String>
- Network tags
- time
Zone String - Timezone of the network
- organization
Id string - Organization ID
- enrollment
String string - Enrollment string for the network
- name string
- Network name
- network
Id string - networkId path parameter. Network ID
- notes string
- Notes for the network
- product
Types string[] - List of the product types that the network supports
- string[]
- Network tags
- time
Zone string - Timezone of the network
- organization_
id str - Organization ID
- enrollment_
string str - Enrollment string for the network
- name str
- Network name
- network_
id str - networkId path parameter. Network ID
- notes str
- Notes for the network
- product_
types Sequence[str] - List of the product types that the network supports
- Sequence[str]
- Network tags
- time_
zone str - Timezone of the network
- organization
Id String - Organization ID
- enrollment
String String - Enrollment string for the network
- name String
- Network name
- network
Id String - networkId path parameter. Network ID
- notes String
- Notes for the network
- product
Types List<String> - List of the product types that the network supports
- List<String>
- Network tags
- time
Zone String - Timezone of the network
Outputs
All input properties are implicitly available as output properties. Additionally, the Base resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Bound boolTo Config Template - If the network is bound to a config template
- Url string
- URL to the network Dashboard UI
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Bound boolTo Config Template - If the network is bound to a config template
- Url string
- URL to the network Dashboard UI
- id String
- The provider-assigned unique ID for this managed resource.
- is
Bound BooleanTo Config Template - If the network is bound to a config template
- url String
- URL to the network Dashboard UI
- id string
- The provider-assigned unique ID for this managed resource.
- is
Bound booleanTo Config Template - If the network is bound to a config template
- url string
- URL to the network Dashboard UI
- id str
- The provider-assigned unique ID for this managed resource.
- is_
bound_ boolto_ config_ template - If the network is bound to a config template
- url str
- URL to the network Dashboard UI
- id String
- The provider-assigned unique ID for this managed resource.
- is
Bound BooleanTo Config Template - If the network is bound to a config template
- url String
- URL to the network Dashboard UI
Look up Existing Base Resource
Get an existing Base 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?: BaseState, opts?: CustomResourceOptions): Base
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enrollment_string: Optional[str] = None,
is_bound_to_config_template: Optional[bool] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
notes: Optional[str] = None,
organization_id: Optional[str] = None,
product_types: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
time_zone: Optional[str] = None,
url: Optional[str] = None) -> Base
func GetBase(ctx *Context, name string, id IDInput, state *BaseState, opts ...ResourceOption) (*Base, error)
public static Base Get(string name, Input<string> id, BaseState? state, CustomResourceOptions? opts = null)
public static Base get(String name, Output<String> id, BaseState 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.
- Enrollment
String string - Enrollment string for the network
- Is
Bound boolTo Config Template - If the network is bound to a config template
- Name string
- Network name
- Network
Id string - networkId path parameter. Network ID
- Notes string
- Notes for the network
- Organization
Id string - Organization ID
- Product
Types List<string> - List of the product types that the network supports
- List<string>
- Network tags
- Time
Zone string - Timezone of the network
- Url string
- URL to the network Dashboard UI
- Enrollment
String string - Enrollment string for the network
- Is
Bound boolTo Config Template - If the network is bound to a config template
- Name string
- Network name
- Network
Id string - networkId path parameter. Network ID
- Notes string
- Notes for the network
- Organization
Id string - Organization ID
- Product
Types []string - List of the product types that the network supports
- []string
- Network tags
- Time
Zone string - Timezone of the network
- Url string
- URL to the network Dashboard UI
- enrollment
String String - Enrollment string for the network
- is
Bound BooleanTo Config Template - If the network is bound to a config template
- name String
- Network name
- network
Id String - networkId path parameter. Network ID
- notes String
- Notes for the network
- organization
Id String - Organization ID
- product
Types List<String> - List of the product types that the network supports
- List<String>
- Network tags
- time
Zone String - Timezone of the network
- url String
- URL to the network Dashboard UI
- enrollment
String string - Enrollment string for the network
- is
Bound booleanTo Config Template - If the network is bound to a config template
- name string
- Network name
- network
Id string - networkId path parameter. Network ID
- notes string
- Notes for the network
- organization
Id string - Organization ID
- product
Types string[] - List of the product types that the network supports
- string[]
- Network tags
- time
Zone string - Timezone of the network
- url string
- URL to the network Dashboard UI
- enrollment_
string str - Enrollment string for the network
- is_
bound_ boolto_ config_ template - If the network is bound to a config template
- name str
- Network name
- network_
id str - networkId path parameter. Network ID
- notes str
- Notes for the network
- organization_
id str - Organization ID
- product_
types Sequence[str] - List of the product types that the network supports
- Sequence[str]
- Network tags
- time_
zone str - Timezone of the network
- url str
- URL to the network Dashboard UI
- enrollment
String String - Enrollment string for the network
- is
Bound BooleanTo Config Template - If the network is bound to a config template
- name String
- Network name
- network
Id String - networkId path parameter. Network ID
- notes String
- Notes for the network
- organization
Id String - Organization ID
- product
Types List<String> - List of the product types that the network supports
- List<String>
- Network tags
- time
Zone String - Timezone of the network
- url String
- URL to the network Dashboard UI
Import
$ pulumi import meraki:networks/base:base example "network_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.