Rancher2
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>",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v3/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupProjectLogging(ctx, &GetProjectLoggingArgs{
ProjectId: "<project_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
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>",
}));
Coming soon!
Using getProjectLogging
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 getProjectLogging(args: GetProjectLoggingArgs, opts?: InvokeOptions): Promise<GetProjectLoggingResult>
function getProjectLoggingOutput(args: GetProjectLoggingOutputArgs, opts?: InvokeOptions): Output<GetProjectLoggingResult>
def get_project_logging(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectLoggingResult
def get_project_logging_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectLoggingResult]
func LookupProjectLogging(ctx *Context, args *LookupProjectLoggingArgs, opts ...InvokeOption) (*LookupProjectLoggingResult, error)
func LookupProjectLoggingOutput(ctx *Context, args *LookupProjectLoggingOutputArgs, opts ...InvokeOption) LookupProjectLoggingResultOutput
> Note: This function is named LookupProjectLogging
in the Go SDK.
public static class GetProjectLogging
{
public static Task<GetProjectLoggingResult> InvokeAsync(GetProjectLoggingArgs args, InvokeOptions? opts = null)
public static Output<GetProjectLoggingResult> Invoke(GetProjectLoggingInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectLoggingResult> getProjectLogging(GetProjectLoggingArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: rancher2:index/getProjectLogging:getProjectLogging
Arguments:
# Arguments dictionary
The following arguments are supported:
- Project
Id string The project id to configure logging (string)
- Project
Id string The project id to configure logging (string)
- project
Id String The project id to configure logging (string)
- project
Id string The project id to configure logging (string)
- project_
id str The project id to configure logging (string)
- project
Id String 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
,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)
- 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
,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)
- 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,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 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
,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)
- 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
,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)
- 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 Mapping[str, 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_ boolparsing - fluentd_
config 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 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
,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)
- project_
id str - 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<Any>
(Computed) Annotations for Cluster Logging object (map)
- 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)
- project
Id String - 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
GetProjectLoggingCustomTargetConfig
- 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
GetProjectLoggingElasticsearchConfig
- 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
GetProjectLoggingFluentdConfig
- fluent
Servers List<GetProject Logging Fluentd Config Fluent Server> - certificate String
- compress Boolean
- enable
Tls Boolean
- fluent
Servers GetProject Logging Fluentd Config Fluent Server[] - certificate string
- compress boolean
- enable
Tls boolean
- fluent
Servers List<Property Map> - certificate String
- compress Boolean
- enable
Tls Boolean
GetProjectLoggingFluentdConfigFluentServer
GetProjectLoggingKafkaConfig
- 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
GetProjectLoggingSplunkConfig
- 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
GetProjectLoggingSyslogConfig
- 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
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rancher2
Terraform Provider.