Show / Hide Table of Contents

Class ProjectLogging

Provides a Rancher v2 Project Logging resource. This can be used to create Project Logging for Rancher v2 environments and retrieve their information.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
public MyStack()
{
    // Create a new rancher2 Project Logging
    var foo = new Rancher2.ProjectLogging("foo", new Rancher2.ProjectLoggingArgs
    {
        Kind = "syslog",
        ProjectId = "<project_id>",
        SyslogConfig = new Rancher2.Inputs.ProjectLoggingSyslogConfigArgs
        {
            Endpoint = "<syslog_endpoint>",
            Protocol = "udp",
            Severity = "notice",
            SslVerify = false,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ProjectLogging
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ProjectLogging : CustomResource

Constructors

View Source

ProjectLogging(String, ProjectLoggingArgs, CustomResourceOptions)

Create a ProjectLogging resource with the given unique name, arguments, and options.

Declaration
public ProjectLogging(string name, ProjectLoggingArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ProjectLoggingArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Annotations

Annotations for Project Logging object (map)

Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

CustomTargetConfig

The custom target config for Cluster Logging. For kind = custom. Conflicts with elasticsearch_config, fluentd_config, kafka_config, splunk_config and syslog_config (list maxitems:1)

Declaration
public Output<ProjectLoggingCustomTargetConfig> CustomTargetConfig { get; }
Property Value
Type Description
Output<ProjectLoggingCustomTargetConfig>
View Source

ElasticsearchConfig

The elasticsearch config for Project Logging. For kind = elasticsearch. Conflicts with custom_target_config, fluentd_config, kafka_config, splunk_config and syslog_config (list maxitems:1)

Declaration
public Output<ProjectLoggingElasticsearchConfig> ElasticsearchConfig { get; }
Property Value
Type Description
Output<ProjectLoggingElasticsearchConfig>
View Source

EnableJsonParsing

Enable json log parsing. Default: false (bool)

Declaration
public Output<bool?> EnableJsonParsing { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

FluentdConfig

The fluentd config for Project Logging. For kind = fluentd. Conflicts with custom_target_config, elasticsearch_config, kafka_config, splunk_config and syslog_config (list maxitems:1)

Declaration
public Output<ProjectLoggingFluentdConfig> FluentdConfig { get; }
Property Value
Type Description
Output<ProjectLoggingFluentdConfig>
View Source

KafkaConfig

The kafka config for Project Logging. For kind = kafka. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, splunk_config and syslog_config (list maxitems:1)

Declaration
public Output<ProjectLoggingKafkaConfig> KafkaConfig { get; }
Property Value
Type Description
Output<ProjectLoggingKafkaConfig>
View Source

Kind

The kind of the Project Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)

Declaration
public Output<string> Kind { get; }
Property Value
Type Description
Output<System.String>
View Source

Labels

Labels for Project Logging object (map)

Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Name

The name of the Project Logging config (string)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NamespaceId

The namespace id from Project logging (string)

Declaration
public Output<string> NamespaceId { get; }
Property Value
Type Description
Output<System.String>
View Source

OutputFlushInterval

How often buffered logs would be flushed. Default: 3 seconds (int)

Declaration
public Output<int?> OutputFlushInterval { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

OutputTags

The output tags for Project Logging (map)

Declaration
public Output<ImmutableDictionary<string, object>> OutputTags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

ProjectId

The project id to configure logging (string)

Declaration
public Output<string> ProjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

SplunkConfig

The splunk config for Project Logging. For kind = splunk. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, kafka_config, and syslog_config (list maxitems:1)

Declaration
public Output<ProjectLoggingSplunkConfig> SplunkConfig { get; }
Property Value
Type Description
Output<ProjectLoggingSplunkConfig>
View Source

SyslogConfig

The syslog config for Project Logging. For kind = syslog. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, kafka_config, and splunk_config (list maxitems:1)

Declaration
public Output<ProjectLoggingSyslogConfig> SyslogConfig { get; }
Property Value
Type Description
Output<ProjectLoggingSyslogConfig>

Methods

View Source

Get(String, Input<String>, ProjectLoggingState, CustomResourceOptions)

Get an existing ProjectLogging resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ProjectLogging Get(string name, Input<string> id, ProjectLoggingState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ProjectLoggingState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ProjectLogging
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.