ionoscloud.logging.getPipeline
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.logging.getPipeline({
location: "de/txl",
id: "pipeline_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.logging.get_pipeline(location="de/txl",
id="pipeline_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/logging"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logging.LookupPipeline(ctx, &logging.LookupPipelineArgs{
Location: pulumi.StringRef("de/txl"),
Id: pulumi.StringRef("pipeline_id"),
}, 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.Logging.GetPipeline.Invoke(new()
{
Location = "de/txl",
Id = "pipeline_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.logging.LoggingFunctions;
import com.pulumi.ionoscloud.logging.inputs.GetPipelineArgs;
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 = LoggingFunctions.getPipeline(GetPipelineArgs.builder()
.location("de/txl")
.id("pipeline_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:logging:getPipeline
arguments:
location: de/txl
id: pipeline_id
By name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.logging.getPipeline({
location: "de/txl",
name: "pipeline_name",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.logging.get_pipeline(location="de/txl",
name="pipeline_name")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/logging"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logging.LookupPipeline(ctx, &logging.LookupPipelineArgs{
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.Logging.GetPipeline.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.logging.LoggingFunctions;
import com.pulumi.ionoscloud.logging.inputs.GetPipelineArgs;
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 = LoggingFunctions.getPipeline(GetPipelineArgs.builder()
.location("de/txl")
.name("pipeline_name")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:logging:getPipeline
arguments:
location: de/txl
name: pipeline_name
Using getPipeline
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 getPipeline(args: GetPipelineArgs, opts?: InvokeOptions): Promise<GetPipelineResult>
function getPipelineOutput(args: GetPipelineOutputArgs, opts?: InvokeOptions): Output<GetPipelineResult>
def get_pipeline(id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPipelineResult
def get_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[GetPipelineResult]
func LookupPipeline(ctx *Context, args *LookupPipelineArgs, opts ...InvokeOption) (*LookupPipelineResult, error)
func LookupPipelineOutput(ctx *Context, args *LookupPipelineOutputArgs, opts ...InvokeOption) LookupPipelineResultOutput
> Note: This function is named LookupPipeline
in the Go SDK.
public static class GetPipeline
{
public static Task<GetPipelineResult> InvokeAsync(GetPipelineArgs args, InvokeOptions? opts = null)
public static Output<GetPipelineResult> Invoke(GetPipelineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPipelineResult> getPipeline(GetPipelineArgs args, InvokeOptions options)
public static Output<GetPipelineResult> getPipeline(GetPipelineArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:logging/getPipeline:getPipeline
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.
getPipeline 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<Ionoscloud.
Get 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
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
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
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
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
GetPipelineLog
- Destinations
List<Ionoscloud.
Get 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
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
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
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
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.
GetPipelineLogDestination
- Retention
In intDays - [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 intDays - [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 IntegerDays - [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_ intdays - [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/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.