Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.networks.getSyslogServers
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.networks.getSyslogServers({
networkId: "string",
});
export const merakiNetworksSyslogServersExample = example.then(example => example.item);
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.get_syslog_servers(network_id="string")
pulumi.export("merakiNetworksSyslogServersExample", example.item)
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.LookupSyslogServers(ctx, &networks.LookupSyslogServersArgs{
NetworkId: "string",
}, nil)
if err != nil {
return err
}
ctx.Export("merakiNetworksSyslogServersExample", example.Item)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Networks.GetSyslogServers.Invoke(new()
{
NetworkId = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksSyslogServersExample"] = example.Apply(getSyslogServersResult => getSyslogServersResult.Item),
};
});
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.GetSyslogServersArgs;
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.getSyslogServers(GetSyslogServersArgs.builder()
.networkId("string")
.build());
ctx.export("merakiNetworksSyslogServersExample", example.applyValue(getSyslogServersResult -> getSyslogServersResult.item()));
}
}
variables:
example:
fn::invoke:
Function: meraki:networks:getSyslogServers
Arguments:
networkId: string
outputs:
merakiNetworksSyslogServersExample: ${example.item}
Using getSyslogServers
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 getSyslogServers(args: GetSyslogServersArgs, opts?: InvokeOptions): Promise<GetSyslogServersResult>
function getSyslogServersOutput(args: GetSyslogServersOutputArgs, opts?: InvokeOptions): Output<GetSyslogServersResult>
def get_syslog_servers(network_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSyslogServersResult
def get_syslog_servers_output(network_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSyslogServersResult]
func LookupSyslogServers(ctx *Context, args *LookupSyslogServersArgs, opts ...InvokeOption) (*LookupSyslogServersResult, error)
func LookupSyslogServersOutput(ctx *Context, args *LookupSyslogServersOutputArgs, opts ...InvokeOption) LookupSyslogServersResultOutput
> Note: This function is named LookupSyslogServers
in the Go SDK.
public static class GetSyslogServers
{
public static Task<GetSyslogServersResult> InvokeAsync(GetSyslogServersArgs args, InvokeOptions? opts = null)
public static Output<GetSyslogServersResult> Invoke(GetSyslogServersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSyslogServersResult> getSyslogServers(GetSyslogServersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:networks/getSyslogServers:getSyslogServers
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Id string - networkId path parameter. Network ID
- Network
Id string - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
- network
Id string - networkId path parameter. Network ID
- network_
id str - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
getSyslogServers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Syslog Servers Item - Network
Id string - networkId path parameter. Network ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Syslog Servers Item - Network
Id string - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- item
Get
Syslog Servers Item - network
Id String - networkId path parameter. Network ID
- id string
- The provider-assigned unique ID for this managed resource.
- item
Get
Syslog Servers Item - network
Id string - networkId path parameter. Network ID
- id str
- The provider-assigned unique ID for this managed resource.
- item
Get
Syslog Servers Item - network_
id str - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
- network
Id String - networkId path parameter. Network ID
Supporting Types
GetSyslogServersItem
- Servers
List<Get
Syslog Servers Item Server> - List of the syslog servers for this network
- Servers
[]Get
Syslog Servers Item Server - List of the syslog servers for this network
- servers
List<Get
Syslog Servers Item Server> - List of the syslog servers for this network
- servers
Get
Syslog Servers Item Server[] - List of the syslog servers for this network
- servers
Sequence[Get
Syslog Servers Item Server] - List of the syslog servers for this network
- servers List<Property Map>
- List of the syslog servers for this network
GetSyslogServersItemServer
- Host string
- The IP address of the syslog server
- Port int
- The port of the syslog server
- Roles List<string>
- A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
- host String
- The IP address of the syslog server
- port Integer
- The port of the syslog server
- roles List<String>
- A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
- host string
- The IP address of the syslog server
- port number
- The port of the syslog server
- roles string[]
- A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
- host str
- The IP address of the syslog server
- port int
- The port of the syslog server
- roles Sequence[str]
- A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
- host String
- The IP address of the syslog server
- port Number
- The port of the syslog server
- roles List<String>
- A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.