rancher2.getClusterLogging
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 Cluster Logging.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
var foo = Rancher2.GetClusterLogging.Invoke(new()
{
ClusterId = "<cluster_id>",
});
});
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v4/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetClusterLoggingArgs;
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) {
final var foo = Rancher2Functions.getClusterLogging(GetClusterLoggingArgs.builder()
.clusterId("<cluster_id>")
.build());
}
}
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 = rancher2.getClusterLogging({
clusterId: "<cluster_id>",
});
variables:
foo:
fn::invoke:
Function: rancher2:getClusterLogging
Arguments:
clusterId: <cluster_id>
Using getClusterLogging
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClusterLogging(args: GetClusterLoggingArgs, opts?: InvokeOptions): Promise<GetClusterLoggingResult>
function getClusterLoggingOutput(args: GetClusterLoggingOutputArgs, opts?: InvokeOptions): Output<GetClusterLoggingResult>
def get_cluster_logging(cluster_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterLoggingResult
def get_cluster_logging_output(cluster_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterLoggingResult]
func LookupClusterLogging(ctx *Context, args *LookupClusterLoggingArgs, opts ...InvokeOption) (*LookupClusterLoggingResult, error)
func LookupClusterLoggingOutput(ctx *Context, args *LookupClusterLoggingOutputArgs, opts ...InvokeOption) LookupClusterLoggingResultOutput
> Note: This function is named LookupClusterLogging
in the Go SDK.
public static class GetClusterLogging
{
public static Task<GetClusterLoggingResult> InvokeAsync(GetClusterLoggingArgs args, InvokeOptions? opts = null)
public static Output<GetClusterLoggingResult> Invoke(GetClusterLoggingInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterLoggingResult> getClusterLogging(GetClusterLoggingArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rancher2:index/getClusterLogging:getClusterLogging
arguments:
# arguments dictionary
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 string The cluster id to configure logging (string)
- cluster_
id str The cluster id to configure logging (string)
- cluster
Id String 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 Map<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 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 Map<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 IntegerInterval (Computed) How often buffered logs would be flushed. Default:
3
seconds (int)- Map<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 {[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)
- annotations Map<Any>
(Computed) Annotations for Cluster Logging object (map)
- cluster
Id String - custom
Target Property MapConfig - elasticsearch
Config Property Map (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch
(list maxitems:1)- enable
Json BooleanParsing - fluentd
Config Property Map (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 Property Map (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<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)- Map<Any>
(computed) The output tags for Cluster Logging (map)
- splunk
Config Property Map (Computed) The splunk config for Cluster Logging. For
kind = splunk
(list maxitems:1)- syslog
Config Property Map (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 string
- certificate string
- client
Cert string - client
Key string
- content str
- certificate str
- client_
cert str - client_
key str
- content String
- certificate String
- client
Cert String - client
Key String
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 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
- 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
GetClusterLoggingFluentdConfig
- fluent
Servers List<GetCluster Logging Fluentd Config Fluent Server> - certificate String
- compress Boolean
- enable
Tls Boolean
- fluent
Servers GetCluster Logging Fluentd Config Fluent Server[] - certificate string
- compress boolean
- enable
Tls boolean
- fluent
Servers List<Property Map> - 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 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 str
- broker_
endpoints Sequence[str] - certificate str
- client_
cert str - client_
key str - zookeeper_
endpoint str
- topic String
- broker
Endpoints List<String> - certificate String
- client
Cert String - client
Key String - zookeeper
Endpoint String
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 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
- endpoint String
- ssl
Verify Boolean - token String
- certificate String
- client
Cert String - client
Key String - client
Key StringPass - index String
- source String
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 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
- endpoint String
- ssl
Verify Boolean - certificate String
- client
Cert String - client
Key String - enable
Tls Boolean - program String
- protocol String
- severity String
- token String
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rancher2
Terraform Provider.