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

meraki.networks.getVlanProfilesAssignmentsByDevice

Explore with Pulumi AI

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

    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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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}
    

    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>
    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]
    func GetVlanProfilesAssignmentsByDevice(ctx *Context, args *GetVlanProfilesAssignmentsByDeviceArgs, opts ...InvokeOption) (*GetVlanProfilesAssignmentsByDeviceResult, error)
    func GetVlanProfilesAssignmentsByDeviceOutput(ctx *Context, args *GetVlanProfilesAssignmentsByDeviceOutputArgs, opts ...InvokeOption) GetVlanProfilesAssignmentsByDeviceResultOutput

    > 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)
    }
    public static CompletableFuture<GetVlanProfilesAssignmentsByDeviceResult> getVlanProfilesAssignmentsByDevice(GetVlanProfilesAssignmentsByDeviceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:networks/getVlanProfilesAssignmentsByDevice:getVlanProfilesAssignmentsByDevice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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.
    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.
    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.
    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.
    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.
    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.

    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 string
    MAC address of the device
    Name string
    Name of the Device
    ProductType string
    The product type
    Serial string
    Serial of the Device
    Stack GetVlanProfilesAssignmentsByDeviceItemStack
    The Switch Stack the device belongs to
    VlanProfile GetVlanProfilesAssignmentsByDeviceItemVlanProfile
    The VLAN Profile
    Mac string
    MAC address of the device
    Name string
    Name of the Device
    ProductType string
    The product type
    Serial string
    Serial of the Device
    Stack GetVlanProfilesAssignmentsByDeviceItemStack
    The Switch Stack the device belongs to
    VlanProfile GetVlanProfilesAssignmentsByDeviceItemVlanProfile
    The VLAN Profile
    mac String
    MAC address of the device
    name String
    Name of the Device
    productType String
    The product type
    serial String
    Serial of the Device
    stack GetVlanProfilesAssignmentsByDeviceItemStack
    The Switch Stack the device belongs to
    vlanProfile GetVlanProfilesAssignmentsByDeviceItemVlanProfile
    The VLAN Profile
    mac string
    MAC address of the device
    name string
    Name of the Device
    productType string
    The product type
    serial string
    Serial of the Device
    stack GetVlanProfilesAssignmentsByDeviceItemStack
    The Switch Stack the device belongs to
    vlanProfile GetVlanProfilesAssignmentsByDeviceItemVlanProfile
    The VLAN Profile
    mac str
    MAC address of the device
    name str
    Name of the Device
    product_type str
    The product type
    serial str
    Serial of the Device
    stack GetVlanProfilesAssignmentsByDeviceItemStack
    The Switch Stack the device belongs to
    vlan_profile GetVlanProfilesAssignmentsByDeviceItemVlanProfile
    The VLAN Profile
    mac String
    MAC address of the device
    name String
    Name of the Device
    productType String
    The product type
    serial String
    Serial of the Device
    stack Property Map
    The Switch Stack the device belongs to
    vlanProfile Property Map
    The VLAN Profile

    GetVlanProfilesAssignmentsByDeviceItemStack

    Id string
    ID of the Switch Stack
    Id string
    ID of the Switch Stack
    id String
    ID of the Switch Stack
    id string
    ID of the Switch Stack
    id str
    ID of the Switch Stack
    id String
    ID of the Switch Stack

    GetVlanProfilesAssignmentsByDeviceItemVlanProfile

    Iname string
    IName of the VLAN Profile
    IsDefault bool
    Is this VLAN profile the default for the network?
    Name string
    Name of the VLAN Profile
    Iname string
    IName of the VLAN Profile
    IsDefault bool
    Is this VLAN profile the default for the network?
    Name string
    Name of the VLAN Profile
    iname String
    IName of the VLAN Profile
    isDefault Boolean
    Is this VLAN profile the default for the network?
    name String
    Name of the VLAN Profile
    iname string
    IName of the VLAN Profile
    isDefault boolean
    Is this VLAN profile the default for the network?
    name string
    Name of the VLAN Profile
    iname str
    IName of the VLAN Profile
    is_default bool
    Is this VLAN profile the default for the network?
    name str
    Name of the VLAN Profile
    iname String
    IName of the VLAN Profile
    isDefault Boolean
    Is this VLAN profile the default for the network?
    name 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.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi