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

meraki.networks.getClients

Explore with Pulumi AI

Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

Example Usage

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

const example = meraki.networks.getClients({
    clientId: "string",
    networkId: "string",
});
export const merakiNetworksClientsExample = example.then(example => example.item);
Copy
import pulumi
import pulumi_meraki as meraki

example = meraki.networks.get_clients(client_id="string",
    network_id="string")
pulumi.export("merakiNetworksClientsExample", example.item)
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.GetClients(ctx, &networks.GetClientsArgs{
			ClientId:  "string",
			NetworkId: "string",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("merakiNetworksClientsExample", example.Item)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;

return await Deployment.RunAsync(() => 
{
    var example = Meraki.Networks.GetClients.Invoke(new()
    {
        ClientId = "string",
        NetworkId = "string",
    });

    return new Dictionary<string, object?>
    {
        ["merakiNetworksClientsExample"] = example.Apply(getClientsResult => getClientsResult.Item),
    };
});
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.GetClientsArgs;
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.getClients(GetClientsArgs.builder()
            .clientId("string")
            .networkId("string")
            .build());

        ctx.export("merakiNetworksClientsExample", example.applyValue(getClientsResult -> getClientsResult.item()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: meraki:networks:getClients
      arguments:
        clientId: string
        networkId: string
outputs:
  merakiNetworksClientsExample: ${example.item}
Copy

Using getClients

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 getClients(args: GetClientsArgs, opts?: InvokeOptions): Promise<GetClientsResult>
function getClientsOutput(args: GetClientsOutputArgs, opts?: InvokeOptions): Output<GetClientsResult>
Copy
def get_clients(client_id: Optional[str] = None,
                network_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetClientsResult
def get_clients_output(client_id: Optional[pulumi.Input[str]] = None,
                network_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClientsResult]
Copy
func GetClients(ctx *Context, args *GetClientsArgs, opts ...InvokeOption) (*GetClientsResult, error)
func GetClientsOutput(ctx *Context, args *GetClientsOutputArgs, opts ...InvokeOption) GetClientsResultOutput
Copy

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

public static class GetClients 
{
    public static Task<GetClientsResult> InvokeAsync(GetClientsArgs args, InvokeOptions? opts = null)
    public static Output<GetClientsResult> Invoke(GetClientsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetClientsResult> getClients(GetClientsArgs args, InvokeOptions options)
public static Output<GetClientsResult> getClients(GetClientsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: meraki:networks/getClients:getClients
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClientId This property is required. string
clientId path parameter. Client ID
NetworkId This property is required. string
networkId path parameter. Network ID
ClientId This property is required. string
clientId path parameter. Client ID
NetworkId This property is required. string
networkId path parameter. Network ID
clientId This property is required. String
clientId path parameter. Client ID
networkId This property is required. String
networkId path parameter. Network ID
clientId This property is required. string
clientId path parameter. Client ID
networkId This property is required. string
networkId path parameter. Network ID
client_id This property is required. str
clientId path parameter. Client ID
network_id This property is required. str
networkId path parameter. Network ID
clientId This property is required. String
clientId path parameter. Client ID
networkId This property is required. String
networkId path parameter. Network ID

getClients Result

The following output properties are available:

ClientId string
clientId path parameter. Client ID
Id string
The provider-assigned unique ID for this managed resource.
Item GetClientsItem
NetworkId string
networkId path parameter. Network ID
ClientId string
clientId path parameter. Client ID
Id string
The provider-assigned unique ID for this managed resource.
Item GetClientsItem
NetworkId string
networkId path parameter. Network ID
clientId String
clientId path parameter. Client ID
id String
The provider-assigned unique ID for this managed resource.
item GetClientsItem
networkId String
networkId path parameter. Network ID
clientId string
clientId path parameter. Client ID
id string
The provider-assigned unique ID for this managed resource.
item GetClientsItem
networkId string
networkId path parameter. Network ID
client_id str
clientId path parameter. Client ID
id str
The provider-assigned unique ID for this managed resource.
item GetClientsItem
network_id str
networkId path parameter. Network ID
clientId String
clientId path parameter. Client ID
id String
The provider-assigned unique ID for this managed resource.
item Property Map
networkId String
networkId path parameter. Network ID

Supporting Types

GetClientsItem

Cdps This property is required. List<GetClientsItemCdp>
The Cisco discover protocol settings for the client
ClientVpnConnections This property is required. List<GetClientsItemClientVpnConnection>
VPN connections associated with the client
Description This property is required. string
Short description of the client
FirstSeen This property is required. int
Timestamp client was first seen in the network
Id This property is required. string
The ID of the client
Ip This property is required. string
The IP address of the client
Ip6 This property is required. string
The IPv6 address of the client
LastSeen This property is required. int
Timestamp client was last seen in the network
Lldps This property is required. List<GetClientsItemLldp>
The link layer discover protocol settings for the client
Mac This property is required. string
The MAC address of the client
Manufacturer This property is required. string
Manufacturer of the client
Os This property is required. string
The operating system of the client
RecentDeviceMac This property is required. string
The MAC address of the node that the device was last connected to
SmInstalled This property is required. bool
Status of SM for the client
Ssid This property is required. string
The name of the SSID that the client is connected to
Status This property is required. string
The connection status of the client
Switchport This property is required. string
The switch port that the client is connected to
User This property is required. string
The username of the user of the client
Vlan This property is required. string
The name of the VLAN that the client is connected to
WirelessCapabilities This property is required. string
Wireless capabilities of the client
Cdps This property is required. []GetClientsItemCdp
The Cisco discover protocol settings for the client
ClientVpnConnections This property is required. []GetClientsItemClientVpnConnection
VPN connections associated with the client
Description This property is required. string
Short description of the client
FirstSeen This property is required. int
Timestamp client was first seen in the network
Id This property is required. string
The ID of the client
Ip This property is required. string
The IP address of the client
Ip6 This property is required. string
The IPv6 address of the client
LastSeen This property is required. int
Timestamp client was last seen in the network
Lldps This property is required. []GetClientsItemLldp
The link layer discover protocol settings for the client
Mac This property is required. string
The MAC address of the client
Manufacturer This property is required. string
Manufacturer of the client
Os This property is required. string
The operating system of the client
RecentDeviceMac This property is required. string
The MAC address of the node that the device was last connected to
SmInstalled This property is required. bool
Status of SM for the client
Ssid This property is required. string
The name of the SSID that the client is connected to
Status This property is required. string
The connection status of the client
Switchport This property is required. string
The switch port that the client is connected to
User This property is required. string
The username of the user of the client
Vlan This property is required. string
The name of the VLAN that the client is connected to
WirelessCapabilities This property is required. string
Wireless capabilities of the client
cdps This property is required. List<GetClientsItemCdp>
The Cisco discover protocol settings for the client
clientVpnConnections This property is required. List<GetClientsItemClientVpnConnection>
VPN connections associated with the client
description This property is required. String
Short description of the client
firstSeen This property is required. Integer
Timestamp client was first seen in the network
id This property is required. String
The ID of the client
ip This property is required. String
The IP address of the client
ip6 This property is required. String
The IPv6 address of the client
lastSeen This property is required. Integer
Timestamp client was last seen in the network
lldps This property is required. List<GetClientsItemLldp>
The link layer discover protocol settings for the client
mac This property is required. String
The MAC address of the client
manufacturer This property is required. String
Manufacturer of the client
os This property is required. String
The operating system of the client
recentDeviceMac This property is required. String
The MAC address of the node that the device was last connected to
smInstalled This property is required. Boolean
Status of SM for the client
ssid This property is required. String
The name of the SSID that the client is connected to
status This property is required. String
The connection status of the client
switchport This property is required. String
The switch port that the client is connected to
user This property is required. String
The username of the user of the client
vlan This property is required. String
The name of the VLAN that the client is connected to
wirelessCapabilities This property is required. String
Wireless capabilities of the client
cdps This property is required. GetClientsItemCdp[]
The Cisco discover protocol settings for the client
clientVpnConnections This property is required. GetClientsItemClientVpnConnection[]
VPN connections associated with the client
description This property is required. string
Short description of the client
firstSeen This property is required. number
Timestamp client was first seen in the network
id This property is required. string
The ID of the client
ip This property is required. string
The IP address of the client
ip6 This property is required. string
The IPv6 address of the client
lastSeen This property is required. number
Timestamp client was last seen in the network
lldps This property is required. GetClientsItemLldp[]
The link layer discover protocol settings for the client
mac This property is required. string
The MAC address of the client
manufacturer This property is required. string
Manufacturer of the client
os This property is required. string
The operating system of the client
recentDeviceMac This property is required. string
The MAC address of the node that the device was last connected to
smInstalled This property is required. boolean
Status of SM for the client
ssid This property is required. string
The name of the SSID that the client is connected to
status This property is required. string
The connection status of the client
switchport This property is required. string
The switch port that the client is connected to
user This property is required. string
The username of the user of the client
vlan This property is required. string
The name of the VLAN that the client is connected to
wirelessCapabilities This property is required. string
Wireless capabilities of the client
cdps This property is required. Sequence[GetClientsItemCdp]
The Cisco discover protocol settings for the client
client_vpn_connections This property is required. Sequence[GetClientsItemClientVpnConnection]
VPN connections associated with the client
description This property is required. str
Short description of the client
first_seen This property is required. int
Timestamp client was first seen in the network
id This property is required. str
The ID of the client
ip This property is required. str
The IP address of the client
ip6 This property is required. str
The IPv6 address of the client
last_seen This property is required. int
Timestamp client was last seen in the network
lldps This property is required. Sequence[GetClientsItemLldp]
The link layer discover protocol settings for the client
mac This property is required. str
The MAC address of the client
manufacturer This property is required. str
Manufacturer of the client
os This property is required. str
The operating system of the client
recent_device_mac This property is required. str
The MAC address of the node that the device was last connected to
sm_installed This property is required. bool
Status of SM for the client
ssid This property is required. str
The name of the SSID that the client is connected to
status This property is required. str
The connection status of the client
switchport This property is required. str
The switch port that the client is connected to
user This property is required. str
The username of the user of the client
vlan This property is required. str
The name of the VLAN that the client is connected to
wireless_capabilities This property is required. str
Wireless capabilities of the client
cdps This property is required. List<Property Map>
The Cisco discover protocol settings for the client
clientVpnConnections This property is required. List<Property Map>
VPN connections associated with the client
description This property is required. String
Short description of the client
firstSeen This property is required. Number
Timestamp client was first seen in the network
id This property is required. String
The ID of the client
ip This property is required. String
The IP address of the client
ip6 This property is required. String
The IPv6 address of the client
lastSeen This property is required. Number
Timestamp client was last seen in the network
lldps This property is required. List<Property Map>
The link layer discover protocol settings for the client
mac This property is required. String
The MAC address of the client
manufacturer This property is required. String
Manufacturer of the client
os This property is required. String
The operating system of the client
recentDeviceMac This property is required. String
The MAC address of the node that the device was last connected to
smInstalled This property is required. Boolean
Status of SM for the client
ssid This property is required. String
The name of the SSID that the client is connected to
status This property is required. String
The connection status of the client
switchport This property is required. String
The switch port that the client is connected to
user This property is required. String
The username of the user of the client
vlan This property is required. String
The name of the VLAN that the client is connected to
wirelessCapabilities This property is required. String
Wireless capabilities of the client

GetClientsItemClientVpnConnection

ConnectedAt This property is required. int
The time the client last connected to the VPN
DisconnectedAt This property is required. int
The time the client last disconnectd from the VPN
RemoteIp This property is required. string
The IP address of the VPN the client last connected to
ConnectedAt This property is required. int
The time the client last connected to the VPN
DisconnectedAt This property is required. int
The time the client last disconnectd from the VPN
RemoteIp This property is required. string
The IP address of the VPN the client last connected to
connectedAt This property is required. Integer
The time the client last connected to the VPN
disconnectedAt This property is required. Integer
The time the client last disconnectd from the VPN
remoteIp This property is required. String
The IP address of the VPN the client last connected to
connectedAt This property is required. number
The time the client last connected to the VPN
disconnectedAt This property is required. number
The time the client last disconnectd from the VPN
remoteIp This property is required. string
The IP address of the VPN the client last connected to
connected_at This property is required. int
The time the client last connected to the VPN
disconnected_at This property is required. int
The time the client last disconnectd from the VPN
remote_ip This property is required. str
The IP address of the VPN the client last connected to
connectedAt This property is required. Number
The time the client last connected to the VPN
disconnectedAt This property is required. Number
The time the client last disconnectd from the VPN
remoteIp This property is required. String
The IP address of the VPN the client last connected to

Package Details

Repository
meraki pulumi/pulumi-meraki
License
Apache-2.0
Notes
This Pulumi package is based on the meraki Terraform Provider.
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi