meraki.networks.VlanProfiles
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.VlanProfiles;
import com.pulumi.meraki.networks.VlanProfilesArgs;
import com.pulumi.meraki.networks.inputs.VlanProfilesVlanGroupArgs;
import com.pulumi.meraki.networks.inputs.VlanProfilesVlanNameArgs;
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 VlanProfiles("example", VlanProfilesArgs.builder()
.iname("string")
.name("My VLAN profile name")
.networkId("string")
.vlanGroups(VlanProfilesVlanGroupArgs.builder()
.name("named-group-1")
.vlan_ids("2,5-7")
.build())
.vlanNames(VlanProfilesVlanNameArgs.builder()
.adaptive_policy_group(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.name("named-1")
.vlan_id("1")
.build())
.build());
ctx.export("merakiNetworksVlanProfilesExample", example);
}
}
resources:
example:
type: meraki:networks:VlanProfiles
properties:
iname: string
name: My VLAN profile name
networkId: string
vlanGroups:
- name: named-group-1
vlan_ids: 2,5-7
vlanNames:
- adaptive_policy_group:
id: '791'
name: named-1
vlan_id: '1'
outputs:
merakiNetworksVlanProfilesExample: ${example}
Create VlanProfiles Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VlanProfiles(name: string, args: VlanProfilesArgs, opts?: CustomResourceOptions);
@overload
def VlanProfiles(resource_name: str,
args: VlanProfilesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VlanProfiles(resource_name: str,
opts: Optional[ResourceOptions] = None,
iname: Optional[str] = None,
network_id: Optional[str] = None,
name: Optional[str] = None,
vlan_groups: Optional[Sequence[VlanProfilesVlanGroupArgs]] = None,
vlan_names: Optional[Sequence[VlanProfilesVlanNameArgs]] = None)
func NewVlanProfiles(ctx *Context, name string, args VlanProfilesArgs, opts ...ResourceOption) (*VlanProfiles, error)
public VlanProfiles(string name, VlanProfilesArgs args, CustomResourceOptions? opts = null)
public VlanProfiles(String name, VlanProfilesArgs args)
public VlanProfiles(String name, VlanProfilesArgs args, CustomResourceOptions options)
type: meraki:networks:VlanProfiles
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 VlanProfilesArgs
- 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 VlanProfilesArgs
- 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 VlanProfilesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VlanProfilesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VlanProfilesArgs
- 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 vlanProfilesResource = new Meraki.Networks.VlanProfiles("vlanProfilesResource", new()
{
Iname = "string",
NetworkId = "string",
Name = "string",
VlanGroups = new[]
{
new Meraki.Networks.Inputs.VlanProfilesVlanGroupArgs
{
Name = "string",
VlanIds = "string",
},
},
VlanNames = new[]
{
new Meraki.Networks.Inputs.VlanProfilesVlanNameArgs
{
AdaptivePolicyGroup = new Meraki.Networks.Inputs.VlanProfilesVlanNameAdaptivePolicyGroupArgs
{
Id = "string",
Name = "string",
},
Name = "string",
VlanId = "string",
},
},
});
example, err := networks.NewVlanProfiles(ctx, "vlanProfilesResource", &networks.VlanProfilesArgs{
Iname: pulumi.String("string"),
NetworkId: pulumi.String("string"),
Name: pulumi.String("string"),
VlanGroups: networks.VlanProfilesVlanGroupArray{
&networks.VlanProfilesVlanGroupArgs{
Name: pulumi.String("string"),
VlanIds: pulumi.String("string"),
},
},
VlanNames: networks.VlanProfilesVlanNameArray{
&networks.VlanProfilesVlanNameArgs{
AdaptivePolicyGroup: &networks.VlanProfilesVlanNameAdaptivePolicyGroupArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
Name: pulumi.String("string"),
VlanId: pulumi.String("string"),
},
},
})
var vlanProfilesResource = new VlanProfiles("vlanProfilesResource", VlanProfilesArgs.builder()
.iname("string")
.networkId("string")
.name("string")
.vlanGroups(VlanProfilesVlanGroupArgs.builder()
.name("string")
.vlanIds("string")
.build())
.vlanNames(VlanProfilesVlanNameArgs.builder()
.adaptivePolicyGroup(VlanProfilesVlanNameAdaptivePolicyGroupArgs.builder()
.id("string")
.name("string")
.build())
.name("string")
.vlanId("string")
.build())
.build());
vlan_profiles_resource = meraki.networks.VlanProfiles("vlanProfilesResource",
iname="string",
network_id="string",
name="string",
vlan_groups=[{
"name": "string",
"vlan_ids": "string",
}],
vlan_names=[{
"adaptive_policy_group": {
"id": "string",
"name": "string",
},
"name": "string",
"vlan_id": "string",
}])
const vlanProfilesResource = new meraki.networks.VlanProfiles("vlanProfilesResource", {
iname: "string",
networkId: "string",
name: "string",
vlanGroups: [{
name: "string",
vlanIds: "string",
}],
vlanNames: [{
adaptivePolicyGroup: {
id: "string",
name: "string",
},
name: "string",
vlanId: "string",
}],
});
type: meraki:networks:VlanProfiles
properties:
iname: string
name: string
networkId: string
vlanGroups:
- name: string
vlanIds: string
vlanNames:
- adaptivePolicyGroup:
id: string
name: string
name: string
vlanId: string
VlanProfiles 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 VlanProfiles resource accepts the following input properties:
- Iname string
- IName of the VLAN profile
- Network
Id string - networkId path parameter. Network ID
- Name string
- Name of the profile, string length must be from 1 to 255 characters
- Vlan
Groups List<VlanProfiles Vlan Group> - An array of named VLANs
- Vlan
Names List<VlanProfiles Vlan Name> - An array of named VLANs
- Iname string
- IName of the VLAN profile
- Network
Id string - networkId path parameter. Network ID
- Name string
- Name of the profile, string length must be from 1 to 255 characters
- Vlan
Groups []VlanProfiles Vlan Group Args - An array of named VLANs
- Vlan
Names []VlanProfiles Vlan Name Args - An array of named VLANs
- iname String
- IName of the VLAN profile
- network
Id String - networkId path parameter. Network ID
- name String
- Name of the profile, string length must be from 1 to 255 characters
- vlan
Groups List<VlanProfiles Vlan Group> - An array of named VLANs
- vlan
Names List<VlanProfiles Vlan Name> - An array of named VLANs
- iname string
- IName of the VLAN profile
- network
Id string - networkId path parameter. Network ID
- name string
- Name of the profile, string length must be from 1 to 255 characters
- vlan
Groups VlanProfiles Vlan Group[] - An array of named VLANs
- vlan
Names VlanProfiles Vlan Name[] - An array of named VLANs
- iname str
- IName of the VLAN profile
- network_
id str - networkId path parameter. Network ID
- name str
- Name of the profile, string length must be from 1 to 255 characters
- vlan_
groups Sequence[VlanProfiles Vlan Group Args] - An array of named VLANs
- vlan_
names Sequence[VlanProfiles Vlan Name Args] - An array of named VLANs
- iname String
- IName of the VLAN profile
- network
Id String - networkId path parameter. Network ID
- name String
- Name of the profile, string length must be from 1 to 255 characters
- vlan
Groups List<Property Map> - An array of named VLANs
- vlan
Names List<Property Map> - An array of named VLANs
Outputs
All input properties are implicitly available as output properties. Additionally, the VlanProfiles resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
Look up Existing VlanProfiles Resource
Get an existing VlanProfiles 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?: VlanProfilesState, opts?: CustomResourceOptions): VlanProfiles
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
iname: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
vlan_groups: Optional[Sequence[VlanProfilesVlanGroupArgs]] = None,
vlan_names: Optional[Sequence[VlanProfilesVlanNameArgs]] = None) -> VlanProfiles
func GetVlanProfiles(ctx *Context, name string, id IDInput, state *VlanProfilesState, opts ...ResourceOption) (*VlanProfiles, error)
public static VlanProfiles Get(string name, Input<string> id, VlanProfilesState? state, CustomResourceOptions? opts = null)
public static VlanProfiles get(String name, Output<String> id, VlanProfilesState 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.
- Iname string
- IName of the VLAN profile
- Is
Default bool - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- Name string
- Name of the profile, string length must be from 1 to 255 characters
- Network
Id string - networkId path parameter. Network ID
- Vlan
Groups List<VlanProfiles Vlan Group> - An array of named VLANs
- Vlan
Names List<VlanProfiles Vlan Name> - An array of named VLANs
- Iname string
- IName of the VLAN profile
- Is
Default bool - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- Name string
- Name of the profile, string length must be from 1 to 255 characters
- Network
Id string - networkId path parameter. Network ID
- Vlan
Groups []VlanProfiles Vlan Group Args - An array of named VLANs
- Vlan
Names []VlanProfiles Vlan Name Args - An array of named VLANs
- iname String
- IName of the VLAN profile
- is
Default Boolean - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- name String
- Name of the profile, string length must be from 1 to 255 characters
- network
Id String - networkId path parameter. Network ID
- vlan
Groups List<VlanProfiles Vlan Group> - An array of named VLANs
- vlan
Names List<VlanProfiles Vlan Name> - An array of named VLANs
- iname string
- IName of the VLAN profile
- is
Default boolean - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- name string
- Name of the profile, string length must be from 1 to 255 characters
- network
Id string - networkId path parameter. Network ID
- vlan
Groups VlanProfiles Vlan Group[] - An array of named VLANs
- vlan
Names VlanProfiles Vlan Name[] - An array of named VLANs
- iname str
- IName of the VLAN profile
- is_
default bool - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- name str
- Name of the profile, string length must be from 1 to 255 characters
- network_
id str - networkId path parameter. Network ID
- vlan_
groups Sequence[VlanProfiles Vlan Group Args] - An array of named VLANs
- vlan_
names Sequence[VlanProfiles Vlan Name Args] - An array of named VLANs
- iname String
- IName of the VLAN profile
- is
Default Boolean - Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
- name String
- Name of the profile, string length must be from 1 to 255 characters
- network
Id String - networkId path parameter. Network ID
- vlan
Groups List<Property Map> - An array of named VLANs
- vlan
Names List<Property Map> - An array of named VLANs
Supporting Types
VlanProfilesVlanGroup, VlanProfilesVlanGroupArgs
VlanProfilesVlanName, VlanProfilesVlanNameArgs
- Adaptive
Policy VlanGroup Profiles Vlan Name Adaptive Policy Group - Adaptive Policy Group assigned to Vlan ID
- Name string
- Name of the VLAN, string length must be from 1 to 32 characters
- Vlan
Id string - VLAN ID
- Adaptive
Policy VlanGroup Profiles Vlan Name Adaptive Policy Group - Adaptive Policy Group assigned to Vlan ID
- Name string
- Name of the VLAN, string length must be from 1 to 32 characters
- Vlan
Id string - VLAN ID
- adaptive
Policy VlanGroup Profiles Vlan Name Adaptive Policy Group - Adaptive Policy Group assigned to Vlan ID
- name String
- Name of the VLAN, string length must be from 1 to 32 characters
- vlan
Id String - VLAN ID
- adaptive
Policy VlanGroup Profiles Vlan Name Adaptive Policy Group - Adaptive Policy Group assigned to Vlan ID
- name string
- Name of the VLAN, string length must be from 1 to 32 characters
- vlan
Id string - VLAN ID
- adaptive_
policy_ Vlangroup Profiles Vlan Name Adaptive Policy Group - Adaptive Policy Group assigned to Vlan ID
- name str
- Name of the VLAN, string length must be from 1 to 32 characters
- vlan_
id str - VLAN ID
- adaptive
Policy Property MapGroup - Adaptive Policy Group assigned to Vlan ID
- name String
- Name of the VLAN, string length must be from 1 to 32 characters
- vlan
Id String - VLAN ID
VlanProfilesVlanNameAdaptivePolicyGroup, VlanProfilesVlanNameAdaptivePolicyGroupArgs
Import
$ pulumi import meraki:networks/vlanProfiles:VlanProfiles example "iname,network_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.