1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. networks
  5. getVlanProfilesAssignmentsByDevice
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.networks.getVlanProfilesAssignmentsByDevice

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";

const example = meraki.networks.getVlanProfilesAssignmentsByDevice({
    endingBefore: "string",
    networkId: "string",
    perPage: 1,
    productTypes: ["string"],
    serials: ["string"],
    stackIds: ["string"],
    startingAfter: "string",
});
export const merakiNetworksVlanProfilesAssignmentsByDeviceExample = example.then(example => example.items);
Copy
import pulumi
import pulumi_meraki as meraki

example = meraki.networks.get_vlan_profiles_assignments_by_device(ending_before="string",
    network_id="string",
    per_page=1,
    product_types=["string"],
    serials=["string"],
    stack_ids=["string"],
    starting_after="string")
pulumi.export("merakiNetworksVlanProfilesAssignmentsByDeviceExample", example.items)
Copy
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.GetVlanProfilesAssignmentsByDevice(ctx, &networks.GetVlanProfilesAssignmentsByDeviceArgs{
			EndingBefore: pulumi.StringRef("string"),
			NetworkId:    "string",
			PerPage:      pulumi.IntRef(1),
			ProductTypes: []string{
				"string",
			},
			Serials: []string{
				"string",
			},
			StackIds: []string{
				"string",
			},
			StartingAfter: pulumi.StringRef("string"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("merakiNetworksVlanProfilesAssignmentsByDeviceExample", example.Items)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;

return await Deployment.RunAsync(() => 
{
    var example = Meraki.Networks.GetVlanProfilesAssignmentsByDevice.Invoke(new()
    {
        EndingBefore = "string",
        NetworkId = "string",
        PerPage = 1,
        ProductTypes = new[]
        {
            "string",
        },
        Serials = new[]
        {
            "string",
        },
        StackIds = new[]
        {
            "string",
        },
        StartingAfter = "string",
    });

    return new Dictionary<string, object?>
    {
        ["merakiNetworksVlanProfilesAssignmentsByDeviceExample"] = example.Apply(getVlanProfilesAssignmentsByDeviceResult => getVlanProfilesAssignmentsByDeviceResult.Items),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.NetworksFunctions;
import com.pulumi.meraki.networks.inputs.GetVlanProfilesAssignmentsByDeviceArgs;
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) {
        final var example = NetworksFunctions.getVlanProfilesAssignmentsByDevice(GetVlanProfilesAssignmentsByDeviceArgs.builder()
            .endingBefore("string")
            .networkId("string")
            .perPage(1)
            .productTypes("string")
            .serials("string")
            .stackIds("string")
            .startingAfter("string")
            .build());

        ctx.export("merakiNetworksVlanProfilesAssignmentsByDeviceExample", example.applyValue(getVlanProfilesAssignmentsByDeviceResult -> getVlanProfilesAssignmentsByDeviceResult.items()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: meraki:networks:getVlanProfilesAssignmentsByDevice
      arguments:
        endingBefore: string
        networkId: string
        perPage: 1
        productTypes:
          - string
        serials:
          - string
        stackIds:
          - string
        startingAfter: string
outputs:
  merakiNetworksVlanProfilesAssignmentsByDeviceExample: ${example.items}
Copy

Using getVlanProfilesAssignmentsByDevice

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVlanProfilesAssignmentsByDevice(args: GetVlanProfilesAssignmentsByDeviceArgs, opts?: InvokeOptions): Promise<GetVlanProfilesAssignmentsByDeviceResult>
function getVlanProfilesAssignmentsByDeviceOutput(args: GetVlanProfilesAssignmentsByDeviceOutputArgs, opts?: InvokeOptions): Output<GetVlanProfilesAssignmentsByDeviceResult>
Copy
def get_vlan_profiles_assignments_by_device(ending_before: Optional[str] = None,
                                            network_id: Optional[str] = None,
                                            per_page: Optional[int] = None,
                                            product_types: Optional[Sequence[str]] = None,
                                            serials: Optional[Sequence[str]] = None,
                                            stack_ids: Optional[Sequence[str]] = None,
                                            starting_after: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetVlanProfilesAssignmentsByDeviceResult
def get_vlan_profiles_assignments_by_device_output(ending_before: Optional[pulumi.Input[str]] = None,
                                            network_id: Optional[pulumi.Input[str]] = None,
                                            per_page: Optional[pulumi.Input[int]] = None,
                                            product_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            serials: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            stack_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            starting_after: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetVlanProfilesAssignmentsByDeviceResult]
Copy
func GetVlanProfilesAssignmentsByDevice(ctx *Context, args *GetVlanProfilesAssignmentsByDeviceArgs, opts ...InvokeOption) (*GetVlanProfilesAssignmentsByDeviceResult, error)
func GetVlanProfilesAssignmentsByDeviceOutput(ctx *Context, args *GetVlanProfilesAssignmentsByDeviceOutputArgs, opts ...InvokeOption) GetVlanProfilesAssignmentsByDeviceResultOutput
Copy

> Note: This function is named GetVlanProfilesAssignmentsByDevice in the Go SDK.

public static class GetVlanProfilesAssignmentsByDevice 
{
    public static Task<GetVlanProfilesAssignmentsByDeviceResult> InvokeAsync(GetVlanProfilesAssignmentsByDeviceArgs args, InvokeOptions? opts = null)
    public static Output<GetVlanProfilesAssignmentsByDeviceResult> Invoke(GetVlanProfilesAssignmentsByDeviceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVlanProfilesAssignmentsByDeviceResult> getVlanProfilesAssignmentsByDevice(GetVlanProfilesAssignmentsByDeviceArgs args, InvokeOptions options)
public static Output<GetVlanProfilesAssignmentsByDeviceResult> getVlanProfilesAssignmentsByDevice(GetVlanProfilesAssignmentsByDeviceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: meraki:networks/getVlanProfilesAssignmentsByDevice:getVlanProfilesAssignmentsByDevice
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NetworkId This property is required. string
networkId path parameter. Network ID
EndingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
PerPage int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
ProductTypes List<string>
productTypes query parameter. Optional parameter to filter devices by product types.
Serials List<string>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
StackIds List<string>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
StartingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
NetworkId This property is required. string
networkId path parameter. Network ID
EndingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
PerPage int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
ProductTypes []string
productTypes query parameter. Optional parameter to filter devices by product types.
Serials []string
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
StackIds []string
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
StartingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
networkId This property is required. String
networkId path parameter. Network ID
endingBefore String
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage Integer
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes List<String>
productTypes query parameter. Optional parameter to filter devices by product types.
serials List<String>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds List<String>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter String
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
networkId This property is required. string
networkId path parameter. Network ID
endingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage number
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes string[]
productTypes query parameter. Optional parameter to filter devices by product types.
serials string[]
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds string[]
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
network_id This property is required. str
networkId path parameter. Network ID
ending_before str
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
per_page int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
product_types Sequence[str]
productTypes query parameter. Optional parameter to filter devices by product types.
serials Sequence[str]
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stack_ids Sequence[str]
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
starting_after str
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
networkId This property is required. String
networkId path parameter. Network ID
endingBefore String
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage Number
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes List<String>
productTypes query parameter. Optional parameter to filter devices by product types.
serials List<String>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds List<String>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter String
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

getVlanProfilesAssignmentsByDevice Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Items List<GetVlanProfilesAssignmentsByDeviceItem>
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
NetworkId string
networkId path parameter. Network ID
EndingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
PerPage int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
ProductTypes List<string>
productTypes query parameter. Optional parameter to filter devices by product types.
Serials List<string>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
StackIds List<string>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
StartingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
Id string
The provider-assigned unique ID for this managed resource.
Items []GetVlanProfilesAssignmentsByDeviceItem
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
NetworkId string
networkId path parameter. Network ID
EndingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
PerPage int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
ProductTypes []string
productTypes query parameter. Optional parameter to filter devices by product types.
Serials []string
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
StackIds []string
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
StartingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
id String
The provider-assigned unique ID for this managed resource.
items List<GetVlanProfilesAssignmentsByDeviceItem>
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
networkId String
networkId path parameter. Network ID
endingBefore String
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage Integer
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes List<String>
productTypes query parameter. Optional parameter to filter devices by product types.
serials List<String>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds List<String>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter String
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
id string
The provider-assigned unique ID for this managed resource.
items GetVlanProfilesAssignmentsByDeviceItem[]
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
networkId string
networkId path parameter. Network ID
endingBefore string
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage number
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes string[]
productTypes query parameter. Optional parameter to filter devices by product types.
serials string[]
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds string[]
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter string
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
id str
The provider-assigned unique ID for this managed resource.
items Sequence[GetVlanProfilesAssignmentsByDeviceItem]
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
network_id str
networkId path parameter. Network ID
ending_before str
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
per_page int
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
product_types Sequence[str]
productTypes query parameter. Optional parameter to filter devices by product types.
serials Sequence[str]
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stack_ids Sequence[str]
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
starting_after str
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
Array of ResponseNetworksGetNetworkVlanProfilesAssignmentsByDevice
networkId String
networkId path parameter. Network ID
endingBefore String
endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
perPage Number
perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 1000.
productTypes List<String>
productTypes query parameter. Optional parameter to filter devices by product types.
serials List<String>
serials query parameter. Optional parameter to filter devices by serials. All devices returned belong to serial numbers that are an exact match.
stackIds List<String>
stackIds query parameter. Optional parameter to filter devices by Switch Stack ids.
startingAfter String
startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

Supporting Types

GetVlanProfilesAssignmentsByDeviceItem

Mac This property is required. string
MAC address of the device
Name This property is required. string
Name of the Device
ProductType This property is required. string
The product type
Serial This property is required. string
Serial of the Device
Stack This property is required. GetVlanProfilesAssignmentsByDeviceItemStack
The Switch Stack the device belongs to
VlanProfile This property is required. GetVlanProfilesAssignmentsByDeviceItemVlanProfile
The VLAN Profile
Mac This property is required. string
MAC address of the device
Name This property is required. string
Name of the Device
ProductType This property is required. string
The product type
Serial This property is required. string
Serial of the Device
Stack This property is required. GetVlanProfilesAssignmentsByDeviceItemStack
The Switch Stack the device belongs to
VlanProfile This property is required. GetVlanProfilesAssignmentsByDeviceItemVlanProfile
The VLAN Profile
mac This property is required. String
MAC address of the device
name This property is required. String
Name of the Device
productType This property is required. String
The product type
serial This property is required. String
Serial of the Device
stack This property is required. GetVlanProfilesAssignmentsByDeviceItemStack
The Switch Stack the device belongs to
vlanProfile This property is required. GetVlanProfilesAssignmentsByDeviceItemVlanProfile
The VLAN Profile
mac This property is required. string
MAC address of the device
name This property is required. string
Name of the Device
productType This property is required. string
The product type
serial This property is required. string
Serial of the Device
stack This property is required. GetVlanProfilesAssignmentsByDeviceItemStack
The Switch Stack the device belongs to
vlanProfile This property is required. GetVlanProfilesAssignmentsByDeviceItemVlanProfile
The VLAN Profile
mac This property is required. str
MAC address of the device
name This property is required. str
Name of the Device
product_type This property is required. str
The product type
serial This property is required. str
Serial of the Device
stack This property is required. GetVlanProfilesAssignmentsByDeviceItemStack
The Switch Stack the device belongs to
vlan_profile This property is required. GetVlanProfilesAssignmentsByDeviceItemVlanProfile
The VLAN Profile
mac This property is required. String
MAC address of the device
name This property is required. String
Name of the Device
productType This property is required. String
The product type
serial This property is required. String
Serial of the Device
stack This property is required. Property Map
The Switch Stack the device belongs to
vlanProfile This property is required. Property Map
The VLAN Profile

GetVlanProfilesAssignmentsByDeviceItemStack

Id This property is required. string
ID of the Switch Stack
Id This property is required. string
ID of the Switch Stack
id This property is required. String
ID of the Switch Stack
id This property is required. string
ID of the Switch Stack
id This property is required. str
ID of the Switch Stack
id This property is required. String
ID of the Switch Stack

GetVlanProfilesAssignmentsByDeviceItemVlanProfile

Iname This property is required. string
IName of the VLAN Profile
IsDefault This property is required. bool
Is this VLAN profile the default for the network?
Name This property is required. string
Name of the VLAN Profile
Iname This property is required. string
IName of the VLAN Profile
IsDefault This property is required. bool
Is this VLAN profile the default for the network?
Name This property is required. string
Name of the VLAN Profile
iname This property is required. String
IName of the VLAN Profile
isDefault This property is required. Boolean
Is this VLAN profile the default for the network?
name This property is required. String
Name of the VLAN Profile
iname This property is required. string
IName of the VLAN Profile
isDefault This property is required. boolean
Is this VLAN profile the default for the network?
name This property is required. string
Name of the VLAN Profile
iname This property is required. str
IName of the VLAN Profile
is_default This property is required. bool
Is this VLAN profile the default for the network?
name This property is required. str
Name of the VLAN Profile
iname This property is required. String
IName of the VLAN Profile
isDefault This property is required. Boolean
Is this VLAN profile the default for the network?
name This property is required. String
Name of the VLAN Profile

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.