meraki.networks.SyslogServers
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.SyslogServers("example", {
networkId: "string",
servers: [{
host: "1.2.3.4",
port: 443,
roles: [
"Wireless event log",
"URLs",
],
}],
});
export const merakiNetworksSyslogServersExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.SyslogServers("example",
network_id="string",
servers=[meraki.networks.SyslogServersServerArgs(
host="1.2.3.4",
port=443,
roles=[
"Wireless event log",
"URLs",
],
)])
pulumi.export("merakiNetworksSyslogServersExample", example)
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.NewSyslogServers(ctx, "example", &networks.SyslogServersArgs{
NetworkId: pulumi.String("string"),
Servers: networks.SyslogServersServerArray{
&networks.SyslogServersServerArgs{
Host: pulumi.String("1.2.3.4"),
Port: pulumi.Int(443),
Roles: pulumi.StringArray{
pulumi.String("Wireless event log"),
pulumi.String("URLs"),
},
},
},
})
if err != nil {
return err
}
ctx.Export("merakiNetworksSyslogServersExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Networks.SyslogServers("example", new()
{
NetworkId = "string",
Servers = new[]
{
new Meraki.Networks.Inputs.SyslogServersServerArgs
{
Host = "1.2.3.4",
Port = 443,
Roles = new[]
{
"Wireless event log",
"URLs",
},
},
},
});
return new Dictionary<string, object?>
{
["merakiNetworksSyslogServersExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SyslogServers;
import com.pulumi.meraki.networks.SyslogServersArgs;
import com.pulumi.meraki.networks.inputs.SyslogServersServerArgs;
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 SyslogServers("example", SyslogServersArgs.builder()
.networkId("string")
.servers(SyslogServersServerArgs.builder()
.host("1.2.3.4")
.port(443)
.roles(
"Wireless event log",
"URLs")
.build())
.build());
ctx.export("merakiNetworksSyslogServersExample", example);
}
}
resources:
example:
type: meraki:networks:SyslogServers
properties:
networkId: string
servers:
- host: 1.2.3.4
port: 443
roles:
- Wireless event log
- URLs
outputs:
merakiNetworksSyslogServersExample: ${example}
Create SyslogServers Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SyslogServers(name: string, args: SyslogServersArgs, opts?: CustomResourceOptions);
@overload
def SyslogServers(resource_name: str,
args: SyslogServersArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SyslogServers(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
servers: Optional[Sequence[SyslogServersServerArgs]] = None)
func NewSyslogServers(ctx *Context, name string, args SyslogServersArgs, opts ...ResourceOption) (*SyslogServers, error)
public SyslogServers(string name, SyslogServersArgs args, CustomResourceOptions? opts = null)
public SyslogServers(String name, SyslogServersArgs args)
public SyslogServers(String name, SyslogServersArgs args, CustomResourceOptions options)
type: meraki:networks:SyslogServers
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 SyslogServersArgs
- 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 SyslogServersArgs
- 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 SyslogServersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SyslogServersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SyslogServersArgs
- 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 syslogServersResource = new Meraki.Networks.SyslogServers("syslogServersResource", new()
{
NetworkId = "string",
Servers = new[]
{
new Meraki.Networks.Inputs.SyslogServersServerArgs
{
Host = "string",
Port = 0,
Roles = new[]
{
"string",
},
},
},
});
example, err := networks.NewSyslogServers(ctx, "syslogServersResource", &networks.SyslogServersArgs{
NetworkId: pulumi.String("string"),
Servers: networks.SyslogServersServerArray{
&networks.SyslogServersServerArgs{
Host: pulumi.String("string"),
Port: pulumi.Int(0),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var syslogServersResource = new SyslogServers("syslogServersResource", SyslogServersArgs.builder()
.networkId("string")
.servers(SyslogServersServerArgs.builder()
.host("string")
.port(0)
.roles("string")
.build())
.build());
syslog_servers_resource = meraki.networks.SyslogServers("syslogServersResource",
network_id="string",
servers=[meraki.networks.SyslogServersServerArgs(
host="string",
port=0,
roles=["string"],
)])
const syslogServersResource = new meraki.networks.SyslogServers("syslogServersResource", {
networkId: "string",
servers: [{
host: "string",
port: 0,
roles: ["string"],
}],
});
type: meraki:networks:SyslogServers
properties:
networkId: string
servers:
- host: string
port: 0
roles:
- string
SyslogServers 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 SyslogServers resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Servers
List<Syslog
Servers Server> - List of the syslog servers for this network
- Network
Id string - networkId path parameter. Network ID
- Servers
[]Syslog
Servers Server Args - List of the syslog servers for this network
- network
Id String - networkId path parameter. Network ID
- servers
List<Syslog
Servers Server> - List of the syslog servers for this network
- network
Id string - networkId path parameter. Network ID
- servers
Syslog
Servers Server[] - List of the syslog servers for this network
- network_
id str - networkId path parameter. Network ID
- servers
Sequence[Syslog
Servers Server Args] - List of the syslog servers for this network
- network
Id String - networkId path parameter. Network ID
- servers List<Property Map>
- List of the syslog servers for this network
Outputs
All input properties are implicitly available as output properties. Additionally, the SyslogServers resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SyslogServers Resource
Get an existing SyslogServers 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?: SyslogServersState, opts?: CustomResourceOptions): SyslogServers
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
servers: Optional[Sequence[SyslogServersServerArgs]] = None) -> SyslogServers
func GetSyslogServers(ctx *Context, name string, id IDInput, state *SyslogServersState, opts ...ResourceOption) (*SyslogServers, error)
public static SyslogServers Get(string name, Input<string> id, SyslogServersState? state, CustomResourceOptions? opts = null)
public static SyslogServers get(String name, Output<String> id, SyslogServersState 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.
- Network
Id string - networkId path parameter. Network ID
- Servers
List<Syslog
Servers Server> - List of the syslog servers for this network
- Network
Id string - networkId path parameter. Network ID
- Servers
[]Syslog
Servers Server Args - List of the syslog servers for this network
- network
Id String - networkId path parameter. Network ID
- servers
List<Syslog
Servers Server> - List of the syslog servers for this network
- network
Id string - networkId path parameter. Network ID
- servers
Syslog
Servers Server[] - List of the syslog servers for this network
- network_
id str - networkId path parameter. Network ID
- servers
Sequence[Syslog
Servers Server Args] - List of the syslog servers for this network
- network
Id String - networkId path parameter. Network ID
- servers List<Property Map>
- List of the syslog servers for this network
Supporting Types
SyslogServersServer, SyslogServersServerArgs
- 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'
Import
$ pulumi import meraki:networks/syslogServers:SyslogServers example "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.