getClusterLogging
Use this data source to retrieve information about a Rancher v2 Cluster Logging.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetClusterLogging.InvokeAsync(new Rancher2.GetClusterLoggingArgs
{
ClusterId = "<cluster_id>",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupClusterLogging(ctx, &rancher2.LookupClusterLoggingArgs{
ClusterId: "<cluster_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_cluster_logging(cluster_id="<cluster_id>")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getClusterLogging({
clusterId: "<cluster_id>",
}, { async: true }));
Using getClusterLogging
function getClusterLogging(args: GetClusterLoggingArgs, opts?: InvokeOptions): Promise<GetClusterLoggingResult>
def get_cluster_logging(cluster_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetClusterLoggingResult
func LookupClusterLogging(ctx *Context, args *LookupClusterLoggingArgs, opts ...InvokeOption) (*LookupClusterLoggingResult, error)
Note: This function is named
LookupClusterLogging
in the Go SDK.
public static class GetClusterLogging {
public static Task<GetClusterLoggingResult> InvokeAsync(GetClusterLoggingArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Cluster
Id string The cluster id to configure logging (string)
- Cluster
Id string The cluster id to configure logging (string)
- cluster
Id string The cluster id to configure logging (string)
- cluster_
id str The cluster id to configure logging (string)
getClusterLogging Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations for Cluster Logging object (map)
- Cluster
Id string - Custom
Target GetConfig Cluster Logging Custom Target Config - Elasticsearch
Config GetCluster Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch
(list maxitems:1)- Enable
Json boolParsing - Fluentd
Config GetCluster Logging Fluentd Config (Computed) The fluentd config for Cluster Logging. For
kind = fluentd
(list maxitems:1)- Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Config GetCluster Logging Kafka Config (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
andsyslog
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)
- Namespace
Id string (Computed) The namespace id from cluster logging (string)
- Output
Flush intInterval (Computed) How often buffered logs would be flushed. Default:
3
seconds (int)- Dictionary<string, object>
(computed) The output tags for Cluster Logging (map)
- Splunk
Config GetCluster Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk
(list maxitems:1)- Syslog
Config GetCluster Logging Syslog Config (Computed) The syslog config for Cluster Logging. For
kind = syslog
(list maxitems:1)
- Annotations map[string]interface{}
(Computed) Annotations for Cluster Logging object (map)
- Cluster
Id string - Custom
Target GetConfig Cluster Logging Custom Target Config - Elasticsearch
Config GetCluster Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch
(list maxitems:1)- Enable
Json boolParsing - Fluentd
Config GetCluster Logging Fluentd Config (Computed) The fluentd config for Cluster Logging. For
kind = fluentd
(list maxitems:1)- Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Config GetCluster Logging Kafka Config (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
andsyslog
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)
- Namespace
Id string (Computed) The namespace id from cluster logging (string)
- Output
Flush intInterval (Computed) How often buffered logs would be flushed. Default:
3
seconds (int)- map[string]interface{}
(computed) The output tags for Cluster Logging (map)
- Splunk
Config GetCluster Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk
(list maxitems:1)- Syslog
Config GetCluster Logging Syslog Config (Computed) The syslog config for Cluster Logging. For
kind = syslog
(list maxitems:1)
- annotations {[key: string]: any}
(Computed) Annotations for Cluster Logging object (map)
- cluster
Id string - custom
Target GetConfig Cluster Logging Custom Target Config - elasticsearch
Config GetCluster Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch
(list maxitems:1)- enable
Json booleanParsing - fluentd
Config GetCluster Logging Fluentd Config (Computed) The fluentd config for Cluster Logging. For
kind = fluentd
(list maxitems:1)- id string
The provider-assigned unique ID for this managed resource.
- kafka
Config GetCluster Logging Kafka Config (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
andsyslog
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)
- namespace
Id string (Computed) The namespace id from cluster logging (string)
- output
Flush numberInterval (Computed) How often buffered logs would be flushed. Default:
3
seconds (int)- {[key: string]: any}
(computed) The output tags for Cluster Logging (map)
- splunk
Config GetCluster Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk
(list maxitems:1)- syslog
Config GetCluster Logging Syslog Config (Computed) The syslog config for Cluster Logging. For
kind = syslog
(list maxitems:1)
- annotations Mapping[str, Any]
(Computed) Annotations for Cluster Logging object (map)
- cluster_
id str - custom_
target_ Getconfig Cluster Logging Custom Target Config - elasticsearch_
config GetCluster Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch
(list maxitems:1)- enable_
json_ boolparsing - fluentd_
config GetCluster Logging Fluentd Config (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 GetCluster Logging Kafka Config (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
andsyslog
are supported (string)- labels Mapping[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_ intinterval (Computed) How often buffered logs would be flushed. Default:
3
seconds (int)- Mapping[str, Any]
(computed) The output tags for Cluster Logging (map)
- splunk_
config GetCluster Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk
(list maxitems:1)- syslog_
config GetCluster Logging Syslog Config (Computed) The syslog config for Cluster Logging. For
kind = syslog
(list maxitems:1)
Supporting Types
GetClusterLoggingCustomTargetConfig
- Content string
- Certificate string
- Client
Cert string - Client
Key string
- Content string
- Certificate string
- Client
Cert string - Client
Key string
- content string
- certificate string
- client
Cert string - client
Key string
- content str
- certificate str
- client_
cert str - client_
key str
GetClusterLoggingElasticsearchConfig
- Endpoint string
- Ssl
Verify bool - Auth
Password string - Auth
Username string - Certificate string
- Client
Cert string - Client
Key string - Client
Key stringPass - Date
Format string - Index
Prefix string - Ssl
Version string
- Endpoint string
- Ssl
Verify bool - Auth
Password string - Auth
Username string - Certificate string
- Client
Cert string - Client
Key string - Client
Key stringPass - Date
Format string - Index
Prefix string - Ssl
Version string
- endpoint string
- ssl
Verify boolean - auth
Password string - auth
Username string - certificate string
- client
Cert string - client
Key string - client
Key stringPass - date
Format string - index
Prefix string - ssl
Version string
- endpoint str
- ssl_
verify bool - auth_
password str - auth_
username str - certificate str
- client_
cert str - client_
key str - client_
key_ strpass - date_
format str - index_
prefix str - ssl_
version str
GetClusterLoggingFluentdConfig
- fluent
Servers GetCluster Logging Fluentd Config Fluent Server[] - certificate string
- compress boolean
- enable
Tls boolean
GetClusterLoggingFluentdConfigFluentServer
GetClusterLoggingKafkaConfig
- Topic string
- Broker
Endpoints List<string> - Certificate string
- Client
Cert string - Client
Key string - Zookeeper
Endpoint string
- Topic string
- Broker
Endpoints []string - Certificate string
- Client
Cert string - Client
Key string - Zookeeper
Endpoint string
- topic string
- broker
Endpoints string[] - certificate string
- client
Cert string - client
Key string - zookeeper
Endpoint string
- topic str
- broker_
endpoints Sequence[str] - certificate str
- client_
cert str - client_
key str - zookeeper_
endpoint str
GetClusterLoggingSplunkConfig
- Endpoint string
- Ssl
Verify bool - Token string
- Certificate string
- Client
Cert string - Client
Key string - Client
Key stringPass - Index string
- Source string
- Endpoint string
- Ssl
Verify bool - Token string
- Certificate string
- Client
Cert string - Client
Key string - Client
Key stringPass - Index string
- Source string
- endpoint string
- ssl
Verify boolean - token string
- certificate string
- client
Cert string - client
Key string - client
Key stringPass - index string
- source string
- endpoint str
- ssl_
verify bool - token str
- certificate str
- client_
cert str - client_
key str - client_
key_ strpass - index str
- source str
GetClusterLoggingSyslogConfig
- Endpoint string
- Ssl
Verify bool - Certificate string
- Client
Cert string - Client
Key string - Enable
Tls bool - Program string
- Protocol string
- Severity string
- Token string
- Endpoint string
- Ssl
Verify bool - Certificate string
- Client
Cert string - Client
Key string - Enable
Tls bool - Program string
- Protocol string
- Severity string
- Token string
- endpoint string
- ssl
Verify boolean - certificate string
- client
Cert string - client
Key string - enable
Tls boolean - program string
- protocol string
- severity string
- token string
- endpoint str
- ssl_
verify bool - certificate str
- client_
cert str - client_
key str - enable_
tls bool - 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.