1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. VlanProfiles
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.networks.VlanProfiles

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    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=[meraki.networks.VlanProfilesVlanGroupArgs(
            name="string",
            vlan_ids="string",
        )],
        vlan_names=[meraki.networks.VlanProfilesVlanNameArgs(
            adaptive_policy_group=meraki.networks.VlanProfilesVlanNameAdaptivePolicyGroupArgs(
                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

    The VlanProfiles resource accepts the following input properties:

    Iname string
    IName of the VLAN profile
    NetworkId string
    networkId path parameter. Network ID
    Name string
    Name of the profile, string length must be from 1 to 255 characters
    VlanGroups List<VlanProfilesVlanGroup>
    An array of named VLANs
    VlanNames List<VlanProfilesVlanName>
    An array of named VLANs
    Iname string
    IName of the VLAN profile
    NetworkId string
    networkId path parameter. Network ID
    Name string
    Name of the profile, string length must be from 1 to 255 characters
    VlanGroups []VlanProfilesVlanGroupArgs
    An array of named VLANs
    VlanNames []VlanProfilesVlanNameArgs
    An array of named VLANs
    iname String
    IName of the VLAN profile
    networkId String
    networkId path parameter. Network ID
    name String
    Name of the profile, string length must be from 1 to 255 characters
    vlanGroups List<VlanProfilesVlanGroup>
    An array of named VLANs
    vlanNames List<VlanProfilesVlanName>
    An array of named VLANs
    iname string
    IName of the VLAN profile
    networkId string
    networkId path parameter. Network ID
    name string
    Name of the profile, string length must be from 1 to 255 characters
    vlanGroups VlanProfilesVlanGroup[]
    An array of named VLANs
    vlanNames VlanProfilesVlanName[]
    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[VlanProfilesVlanGroupArgs]
    An array of named VLANs
    vlan_names Sequence[VlanProfilesVlanNameArgs]
    An array of named VLANs
    iname String
    IName of the VLAN profile
    networkId String
    networkId path parameter. Network ID
    name String
    Name of the profile, string length must be from 1 to 255 characters
    vlanGroups List<Property Map>
    An array of named VLANs
    vlanNames 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 string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Boolean indicating the default VLAN Profile for any device that does not have a profile explicitly assigned
    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
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    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.
    The following state arguments are supported:
    Iname string
    IName of the VLAN profile
    IsDefault 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
    NetworkId string
    networkId path parameter. Network ID
    VlanGroups List<VlanProfilesVlanGroup>
    An array of named VLANs
    VlanNames List<VlanProfilesVlanName>
    An array of named VLANs
    Iname string
    IName of the VLAN profile
    IsDefault 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
    NetworkId string
    networkId path parameter. Network ID
    VlanGroups []VlanProfilesVlanGroupArgs
    An array of named VLANs
    VlanNames []VlanProfilesVlanNameArgs
    An array of named VLANs
    iname String
    IName of the VLAN profile
    isDefault 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
    networkId String
    networkId path parameter. Network ID
    vlanGroups List<VlanProfilesVlanGroup>
    An array of named VLANs
    vlanNames List<VlanProfilesVlanName>
    An array of named VLANs
    iname string
    IName of the VLAN profile
    isDefault 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
    networkId string
    networkId path parameter. Network ID
    vlanGroups VlanProfilesVlanGroup[]
    An array of named VLANs
    vlanNames VlanProfilesVlanName[]
    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[VlanProfilesVlanGroupArgs]
    An array of named VLANs
    vlan_names Sequence[VlanProfilesVlanNameArgs]
    An array of named VLANs
    iname String
    IName of the VLAN profile
    isDefault 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
    networkId String
    networkId path parameter. Network ID
    vlanGroups List<Property Map>
    An array of named VLANs
    vlanNames List<Property Map>
    An array of named VLANs

    Supporting Types

    VlanProfilesVlanGroup, VlanProfilesVlanGroupArgs

    Name string
    Name of the VLAN, string length must be from 1 to 32 characters
    VlanIds string
    Comma-separated VLAN IDs or ID ranges
    Name string
    Name of the VLAN, string length must be from 1 to 32 characters
    VlanIds string
    Comma-separated VLAN IDs or ID ranges
    name String
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanIds String
    Comma-separated VLAN IDs or ID ranges
    name string
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanIds string
    Comma-separated VLAN IDs or ID ranges
    name str
    Name of the VLAN, string length must be from 1 to 32 characters
    vlan_ids str
    Comma-separated VLAN IDs or ID ranges
    name String
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanIds String
    Comma-separated VLAN IDs or ID ranges

    VlanProfilesVlanName, VlanProfilesVlanNameArgs

    AdaptivePolicyGroup VlanProfilesVlanNameAdaptivePolicyGroup
    Adaptive Policy Group assigned to Vlan ID
    Name string
    Name of the VLAN, string length must be from 1 to 32 characters
    VlanId string
    VLAN ID
    AdaptivePolicyGroup VlanProfilesVlanNameAdaptivePolicyGroup
    Adaptive Policy Group assigned to Vlan ID
    Name string
    Name of the VLAN, string length must be from 1 to 32 characters
    VlanId string
    VLAN ID
    adaptivePolicyGroup VlanProfilesVlanNameAdaptivePolicyGroup
    Adaptive Policy Group assigned to Vlan ID
    name String
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanId String
    VLAN ID
    adaptivePolicyGroup VlanProfilesVlanNameAdaptivePolicyGroup
    Adaptive Policy Group assigned to Vlan ID
    name string
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanId string
    VLAN ID
    adaptive_policy_group VlanProfilesVlanNameAdaptivePolicyGroup
    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
    adaptivePolicyGroup Property Map
    Adaptive Policy Group assigned to Vlan ID
    name String
    Name of the VLAN, string length must be from 1 to 32 characters
    vlanId String
    VLAN ID

    VlanProfilesVlanNameAdaptivePolicyGroup, VlanProfilesVlanNameAdaptivePolicyGroupArgs

    Id string
    Adaptive Policy Group ID
    Name string
    Adaptive Policy Group name
    Id string
    Adaptive Policy Group ID
    Name string
    Adaptive Policy Group name
    id String
    Adaptive Policy Group ID
    name String
    Adaptive Policy Group name
    id string
    Adaptive Policy Group ID
    name string
    Adaptive Policy Group name
    id str
    Adaptive Policy Group ID
    name str
    Adaptive Policy Group name
    id String
    Adaptive Policy Group ID
    name String
    Adaptive Policy Group name

    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.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi