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
LookupProjectLoggingin the Go SDK.
public static class GetProjectLogging {
public static Task<GetProjectLoggingResult> InvokeAsync(GetProjectLoggingArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- 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)
- Custom
Target GetConfig Project Logging Custom Target Config - Elasticsearch
Config GetProject Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch(list maxitems:1)- Enable
Json boolParsing - Fluentd
Config GetProject 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 GetProject 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)
- Project
Id string - Splunk
Config GetProject Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk(list maxitems:1)- Syslog
Config GetProject 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)
- Custom
Target GetConfig Project Logging Custom Target Config - Elasticsearch
Config GetProject Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch(list maxitems:1)- Enable
Json boolParsing - Fluentd
Config GetProject 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 GetProject 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)
- Project
Id string - Splunk
Config GetProject Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk(list maxitems:1)- Syslog
Config GetProject 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)
- custom
Target GetConfig Project Logging Custom Target Config - elasticsearch
Config GetProject Logging Elasticsearch Config (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch(list maxitems:1)- enable
Json booleanParsing - fluentd
Config GetProject 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 GetProject 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)
- project
Id string - splunk
Config GetProject Logging Splunk Config (Computed) The splunk config for Cluster Logging. For
kind = splunk(list maxitems:1)- syslog
Config GetProject 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)
- custom_
target_ Dict[Getconfig Project Logging Custom Target Config] - elasticsearch_
config Dict[GetProject Logging Elasticsearch Config] (Computed) The elasticsearch config for Cluster Logging. For
kind = elasticsearch(list maxitems:1)- enable_
json_ boolparsing - fluentd_
config Dict[GetProject 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[GetProject 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)
- project_
id str - splunk_
config Dict[GetProject Logging Splunk Config] (Computed) The splunk config for Cluster Logging. For
kind = splunk(list maxitems:1)- syslog_
config Dict[GetProject Logging Syslog Config] (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.
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.
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.
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.
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.
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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.