ionoscloud.getLoggingPipeline
Explore with Pulumi AI
The Logging pipeline datasource can be used to search for and return an existing Logging pipeline. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned.
⚠️ Only tokens are accepted for authorization in the logging_pipeline data source. Please ensure you are using tokens as other methods will not be valid.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getLoggingPipeline({
id: "pipeline_id",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_logging_pipeline(id="pipeline_id",
location="de/txl")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupLoggingPipeline(ctx, &ionoscloud.LookupLoggingPipelineArgs{
Id: pulumi.StringRef("pipeline_id"),
Location: pulumi.StringRef("de/txl"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetLoggingPipeline.Invoke(new()
{
Id = "pipeline_id",
Location = "de/txl",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetLoggingPipelineArgs;
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 example = IonoscloudFunctions.getLoggingPipeline(GetLoggingPipelineArgs.builder()
.id("pipeline_id")
.location("de/txl")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getLoggingPipeline
arguments:
id: pipeline_id
location: de/txl
By name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getLoggingPipeline({
location: "de/txl",
name: "pipeline_name",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_logging_pipeline(location="de/txl",
name="pipeline_name")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupLoggingPipeline(ctx, &ionoscloud.LookupLoggingPipelineArgs{
Location: pulumi.StringRef("de/txl"),
Name: pulumi.StringRef("pipeline_name"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetLoggingPipeline.Invoke(new()
{
Location = "de/txl",
Name = "pipeline_name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetLoggingPipelineArgs;
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 example = IonoscloudFunctions.getLoggingPipeline(GetLoggingPipelineArgs.builder()
.location("de/txl")
.name("pipeline_name")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getLoggingPipeline
arguments:
location: de/txl
name: pipeline_name
Using getLoggingPipeline
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 getLoggingPipeline(args: GetLoggingPipelineArgs, opts?: InvokeOptions): Promise<GetLoggingPipelineResult>
function getLoggingPipelineOutput(args: GetLoggingPipelineOutputArgs, opts?: InvokeOptions): Output<GetLoggingPipelineResult>
def get_logging_pipeline(id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLoggingPipelineResult
def get_logging_pipeline_output(id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLoggingPipelineResult]
func LookupLoggingPipeline(ctx *Context, args *LookupLoggingPipelineArgs, opts ...InvokeOption) (*LookupLoggingPipelineResult, error)
func LookupLoggingPipelineOutput(ctx *Context, args *LookupLoggingPipelineOutputArgs, opts ...InvokeOption) LookupLoggingPipelineResultOutput
> Note: This function is named LookupLoggingPipeline
in the Go SDK.
public static class GetLoggingPipeline
{
public static Task<GetLoggingPipelineResult> InvokeAsync(GetLoggingPipelineArgs args, InvokeOptions? opts = null)
public static Output<GetLoggingPipelineResult> Invoke(GetLoggingPipelineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoggingPipelineResult> getLoggingPipeline(GetLoggingPipelineArgs args, InvokeOptions options)
public static Output<GetLoggingPipelineResult> getLoggingPipeline(GetLoggingPipelineArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getLoggingPipeline:getLoggingPipeline
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- [string] The ID of the Logging pipeline you want to search for.
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - Name string
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
- Id string
- [string] The ID of the Logging pipeline you want to search for.
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - Name string
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
- id String
- [string] The ID of the Logging pipeline you want to search for.
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - name String
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
- id string
- [string] The ID of the Logging pipeline you want to search for.
- location string
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - name string
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
- id str
- [string] The ID of the Logging pipeline you want to search for.
- location str
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - name str
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
- id String
- [string] The ID of the Logging pipeline you want to search for.
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
. One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. - name String
[string] The name of the Logging pipeline you want to search for.
Either
id
orname
must be provided. If none, or both are provided, the datasource will return an error.
getLoggingPipeline Result
The following output properties are available:
- Grafana
Address string - The address of the client's grafana instance.
- Id string
- The UUID of the Logging pipeline.
- Logs
List<Get
Logging Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- Name string
- The name of the Logging pipeline.
- Location string
- Grafana
Address string - The address of the client's grafana instance.
- Id string
- The UUID of the Logging pipeline.
- Logs
[]Get
Logging Pipeline Log - [list] Pipeline logs, a list that contains elements with the following structure:
- Name string
- The name of the Logging pipeline.
- Location string
- grafana
Address String - The address of the client's grafana instance.
- id String
- The UUID of the Logging pipeline.
- logs
List<Get
Logging Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- name String
- The name of the Logging pipeline.
- location String
- grafana
Address string - The address of the client's grafana instance.
- id string
- The UUID of the Logging pipeline.
- logs
Get
Logging Pipeline Log[] - [list] Pipeline logs, a list that contains elements with the following structure:
- name string
- The name of the Logging pipeline.
- location string
- grafana_
address str - The address of the client's grafana instance.
- id str
- The UUID of the Logging pipeline.
- logs
Sequence[Get
Logging Pipeline Log] - [list] Pipeline logs, a list that contains elements with the following structure:
- name str
- The name of the Logging pipeline.
- location str
- grafana
Address String - The address of the client's grafana instance.
- id String
- The UUID of the Logging pipeline.
- logs List<Property Map>
- [list] Pipeline logs, a list that contains elements with the following structure:
- name String
- The name of the Logging pipeline.
- location String
Supporting Types
GetLoggingPipelineLog
- Destinations
List<Get
Logging Pipeline Log Destination> - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- Protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- Public bool
- [bool]
- Source string
- [string] The source parser to be used.
- Tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- Destinations
[]Get
Logging Pipeline Log Destination - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- Protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- Public bool
- [bool]
- Source string
- [string] The source parser to be used.
- Tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
List<Get
Logging Pipeline Log Destination> - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- protocol String
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- public_ Boolean
- [bool]
- source String
- [string] The source parser to be used.
- tag String
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
Get
Logging Pipeline Log Destination[] - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- public boolean
- [bool]
- source string
- [string] The source parser to be used.
- tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
Sequence[Get
Logging Pipeline Log Destination] - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- protocol str
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- public bool
- [bool]
- source str
- [string] The source parser to be used.
- tag str
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations List<Property Map>
- [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- protocol String
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- public Boolean
- [bool]
- source String
- [string] The source parser to be used.
- tag String
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
GetLoggingPipelineLogDestination
- Retention
In doubleDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- Type string
- [string] The internal output stream to send logs to.
- Retention
In float64Days - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- Type string
- [string] The internal output stream to send logs to.
- retention
In DoubleDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- type String
- [string] The internal output stream to send logs to.
- retention
In numberDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- type string
- [string] The internal output stream to send logs to.
- retention_
in_ floatdays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- type str
- [string] The internal output stream to send logs to.
- retention
In NumberDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only.
- type String
- [string] The internal output stream to send logs to.
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.