GetProjectLogging

Use this data source to retrieve information about a Rancher v2 Project Logging.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetProjectLogging.InvokeAsync(new Rancher2.GetProjectLoggingArgs
        {
            ProjectId = "<project_id>",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_project_logging(project_id="<project_id>")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getProjectLogging({
    projectId: "<project_id>",
}, { async: true }));

Using GetProjectLogging

function getProjectLogging(args: GetProjectLoggingArgs, opts?: InvokeOptions): Promise<GetProjectLoggingResult>
function  get_project_logging(project_id=None, opts=None)
func LookupProjectLogging(ctx *Context, args *LookupProjectLoggingArgs, opts ...InvokeOption) (*LookupProjectLoggingResult, error)

Note: This function is named LookupProjectLogging in the Go SDK.

public static class GetProjectLogging {
    public static Task<GetProjectLoggingResult> InvokeAsync(GetProjectLoggingArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ProjectId string

The project id to configure logging (string)

ProjectId string

The project id to configure logging (string)

projectId string

The project id to configure logging (string)

project_id str

The project id to configure logging (string)

GetProjectLogging Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for Cluster Logging object (map)

CustomTargetConfig GetProjectLoggingCustomTargetConfig
ElasticsearchConfig GetProjectLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

EnableJsonParsing bool
FluentdConfig GetProjectLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

Id string

The provider-assigned unique ID for this managed resource.

KafkaConfig GetProjectLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

Kind string

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

Labels Dictionary<string, object>

(Computed) Labels for Cluster Logging object (map)

Name string

(Computed) The name of the cluster logging config (string)

NamespaceId string

(Computed) The namespace id from cluster logging (string)

OutputFlushInterval int

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

OutputTags Dictionary<string, object>

(computed) The output tags for Cluster Logging (map)

ProjectId string
SplunkConfig GetProjectLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

SyslogConfig GetProjectLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

Annotations map[string]interface{}

(Computed) Annotations for Cluster Logging object (map)

CustomTargetConfig GetProjectLoggingCustomTargetConfig
ElasticsearchConfig GetProjectLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

EnableJsonParsing bool
FluentdConfig GetProjectLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

Id string

The provider-assigned unique ID for this managed resource.

KafkaConfig GetProjectLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

Kind string

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

Labels map[string]interface{}

(Computed) Labels for Cluster Logging object (map)

Name string

(Computed) The name of the cluster logging config (string)

NamespaceId string

(Computed) The namespace id from cluster logging (string)

OutputFlushInterval int

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

OutputTags map[string]interface{}

(computed) The output tags for Cluster Logging (map)

ProjectId string
SplunkConfig GetProjectLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

SyslogConfig GetProjectLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

annotations {[key: string]: any}

(Computed) Annotations for Cluster Logging object (map)

customTargetConfig GetProjectLoggingCustomTargetConfig
elasticsearchConfig GetProjectLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

enableJsonParsing boolean
fluentdConfig GetProjectLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

id string

The provider-assigned unique ID for this managed resource.

kafkaConfig GetProjectLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

kind string

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

labels {[key: string]: any}

(Computed) Labels for Cluster Logging object (map)

name string

(Computed) The name of the cluster logging config (string)

namespaceId string

(Computed) The namespace id from cluster logging (string)

outputFlushInterval number

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

outputTags {[key: string]: any}

(computed) The output tags for Cluster Logging (map)

projectId string
splunkConfig GetProjectLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

syslogConfig GetProjectLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

annotations Dict[str, Any]

(Computed) Annotations for Cluster Logging object (map)

custom_target_config Dict[GetProjectLoggingCustomTargetConfig]
elasticsearch_config Dict[GetProjectLoggingElasticsearchConfig]

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

enable_json_parsing bool
fluentd_config Dict[GetProjectLoggingFluentdConfig]

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

id str

The provider-assigned unique ID for this managed resource.

kafka_config Dict[GetProjectLoggingKafkaConfig]

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

kind str

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

labels Dict[str, Any]

(Computed) Labels for Cluster Logging object (map)

name str

(Computed) The name of the cluster logging config (string)

namespace_id str

(Computed) The namespace id from cluster logging (string)

output_flush_interval float

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

output_tags Dict[str, Any]

(computed) The output tags for Cluster Logging (map)

project_id str
splunk_config Dict[GetProjectLoggingSplunkConfig]

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

syslog_config Dict[GetProjectLoggingSyslogConfig]

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

Supporting Types

GetProjectLoggingCustomTargetConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Content string
Certificate string
ClientCert string
ClientKey string
Content string
Certificate string
ClientCert string
ClientKey string
content string
certificate string
clientCert string
clientKey string
content str
certificate str
clientCert str
clientKey str

GetProjectLoggingElasticsearchConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
AuthPassword string
AuthUsername string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
DateFormat string
IndexPrefix string
SslVersion string
Endpoint string
SslVerify bool
AuthPassword string
AuthUsername string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
DateFormat string
IndexPrefix string
SslVersion string
endpoint string
sslVerify boolean
authPassword string
authUsername string
certificate string
clientCert string
clientKey string
clientKeyPass string
dateFormat string
indexPrefix string
sslVersion string
endpoint str
sslVerify bool
authPassword str
authUsername str
certificate str
clientCert str
clientKey str
clientKeyPass str
dateFormat str
indexPrefix str
sslVersion str

GetProjectLoggingFluentdConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

FluentServers List<GetProjectLoggingFluentdConfigFluentServerArgs>
Certificate string
Compress bool
EnableTls bool
FluentServers []GetProjectLoggingFluentdConfigFluentServer
Certificate string
Compress bool
EnableTls bool
fluentServers GetProjectLoggingFluentdConfigFluentServer[]
certificate string
compress boolean
enableTls boolean
fluentServers List[GetProjectLoggingFluentdConfigFluentServer]
certificate str
compress bool
enableTls bool

GetProjectLoggingFluentdConfigFluentServer

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
Hostname string
Password string
SharedKey string
Standby bool
Username string
Weight int
Endpoint string
Hostname string
Password string
SharedKey string
Standby bool
Username string
Weight int
endpoint string
hostname string
password string
sharedKey string
standby boolean
username string
weight number
endpoint str
hostname str
password str
sharedKey str
standby bool
username str
weight float

GetProjectLoggingKafkaConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Topic string
BrokerEndpoints List<string>
Certificate string
ClientCert string
ClientKey string
ZookeeperEndpoint string
Topic string
BrokerEndpoints []string
Certificate string
ClientCert string
ClientKey string
ZookeeperEndpoint string
topic string
brokerEndpoints string[]
certificate string
clientCert string
clientKey string
zookeeperEndpoint string
topic str
brokerEndpoints List[str]
certificate str
clientCert str
clientKey str
zookeeperEndpoint str

GetProjectLoggingSplunkConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
Token string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
Index string
Source string
Endpoint string
SslVerify bool
Token string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
Index string
Source string
endpoint string
sslVerify boolean
token string
certificate string
clientCert string
clientKey string
clientKeyPass string
index string
source string
endpoint str
sslVerify bool
token str
certificate str
clientCert str
clientKey str
clientKeyPass str
index str
source str

GetProjectLoggingSyslogConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
Certificate string
ClientCert string
ClientKey string
Program string
Protocol string
Severity string
Token string
Endpoint string
SslVerify bool
Certificate string
ClientCert string
ClientKey string
Program string
Protocol string
Severity string
Token string
endpoint string
sslVerify boolean
certificate string
clientCert string
clientKey string
program string
protocol string
severity string
token string
endpoint str
sslVerify bool
certificate str
clientCert str
clientKey str
program str
protocol str
severity str
token str

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.