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>",
}));
}
}
Coming soon!
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>function get_cluster_logging(cluster_id=None, opts=None)func LookupClusterLogging(ctx *Context, args *LookupClusterLoggingArgs, opts ...InvokeOption) (*LookupClusterLoggingResult, error)Note: This function is named
LookupClusterLoggingin the Go SDK.
public static class GetClusterLogging {
public static Task<GetClusterLoggingResult> InvokeAsync(GetClusterLoggingArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- 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,splunkandsyslogare 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:
3seconds (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,splunkandsyslogare 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:
3seconds (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,splunkandsyslogare 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:
3seconds (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 Dict[str, Any]
(Computed) Annotations for Cluster Logging object (map)
- cluster_
id str - custom_
target_ Dict[Getconfig Cluster Logging Custom Target Config] - elasticsearch_
config Dict[GetCluster Logging Elasticsearch Config] (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch(list maxitems:1)- enable_
json_ boolparsing - fluentd_
config Dict[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 Dict[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,splunkandsyslogare 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_ floatinterval (Computed) How often buffered logs would be flushed. Default:
3seconds (int)- Dict[str, Any]
(computed) The output tags for Cluster Logging (map)
- splunk_
config Dict[GetCluster Logging Splunk Config] (Computed) The splunk config for Cluster Logging. For
kind = splunk(list maxitems:1)- syslog_
config Dict[GetCluster Logging Syslog Config] (Computed) The syslog config for Cluster Logging. For
kind = syslog(list maxitems:1)
Supporting Types
GetClusterLoggingCustomTargetConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingElasticsearchConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingFluentdConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingFluentdConfigFluentServer
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingKafkaConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingSplunkConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetClusterLoggingSyslogConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.