1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. LoggingPipeline
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.LoggingPipeline

Explore with Pulumi AI

Import

In order to import a Logging pipeline, you can define an empty Logging pipeline resource in the plan:

hcl

resource “ionoscloud_logging_pipeline” “example” {

}

The resource can be imported using the location and pipeline_id, for example:

$ pulumi import ionoscloud:index/loggingPipeline:LoggingPipeline example location:pipeline_id
Copy

Create LoggingPipeline Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LoggingPipeline(name: string, args: LoggingPipelineArgs, opts?: CustomResourceOptions);
@overload
def LoggingPipeline(resource_name: str,
                    args: LoggingPipelineArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def LoggingPipeline(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    logs: Optional[Sequence[LoggingPipelineLogArgs]] = None,
                    location: Optional[str] = None,
                    logging_pipeline_id: Optional[str] = None,
                    name: Optional[str] = None,
                    timeouts: Optional[LoggingPipelineTimeoutsArgs] = None)
func NewLoggingPipeline(ctx *Context, name string, args LoggingPipelineArgs, opts ...ResourceOption) (*LoggingPipeline, error)
public LoggingPipeline(string name, LoggingPipelineArgs args, CustomResourceOptions? opts = null)
public LoggingPipeline(String name, LoggingPipelineArgs args)
public LoggingPipeline(String name, LoggingPipelineArgs args, CustomResourceOptions options)
type: ionoscloud:LoggingPipeline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LoggingPipelineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LoggingPipelineArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LoggingPipelineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoggingPipelineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LoggingPipelineArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var loggingPipelineResource = new Ionoscloud.LoggingPipeline("loggingPipelineResource", new()
{
    Logs = new[]
    {
        new Ionoscloud.Inputs.LoggingPipelineLogArgs
        {
            Protocol = "string",
            Source = "string",
            Tag = "string",
            Destinations = new[]
            {
                new Ionoscloud.Inputs.LoggingPipelineLogDestinationArgs
                {
                    RetentionInDays = 0,
                    Type = "string",
                },
            },
            Public = false,
        },
    },
    Location = "string",
    LoggingPipelineId = "string",
    Name = "string",
    Timeouts = new Ionoscloud.Inputs.LoggingPipelineTimeoutsArgs
    {
        Create = "string",
        Default = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := ionoscloud.NewLoggingPipeline(ctx, "loggingPipelineResource", &ionoscloud.LoggingPipelineArgs{
Logs: .LoggingPipelineLogArray{
&.LoggingPipelineLogArgs{
Protocol: pulumi.String("string"),
Source: pulumi.String("string"),
Tag: pulumi.String("string"),
Destinations: .LoggingPipelineLogDestinationArray{
&.LoggingPipelineLogDestinationArgs{
RetentionInDays: pulumi.Float64(0),
Type: pulumi.String("string"),
},
},
Public: pulumi.Bool(false),
},
},
Location: pulumi.String("string"),
LoggingPipelineId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &.LoggingPipelineTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var loggingPipelineResource = new LoggingPipeline("loggingPipelineResource", LoggingPipelineArgs.builder()
    .logs(LoggingPipelineLogArgs.builder()
        .protocol("string")
        .source("string")
        .tag("string")
        .destinations(LoggingPipelineLogDestinationArgs.builder()
            .retentionInDays(0)
            .type("string")
            .build())
        .public_(false)
        .build())
    .location("string")
    .loggingPipelineId("string")
    .name("string")
    .timeouts(LoggingPipelineTimeoutsArgs.builder()
        .create("string")
        .default_("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
logging_pipeline_resource = ionoscloud.LoggingPipeline("loggingPipelineResource",
    logs=[{
        "protocol": "string",
        "source": "string",
        "tag": "string",
        "destinations": [{
            "retention_in_days": 0,
            "type": "string",
        }],
        "public": False,
    }],
    location="string",
    logging_pipeline_id="string",
    name="string",
    timeouts={
        "create": "string",
        "default": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const loggingPipelineResource = new ionoscloud.LoggingPipeline("loggingPipelineResource", {
    logs: [{
        protocol: "string",
        source: "string",
        tag: "string",
        destinations: [{
            retentionInDays: 0,
            type: "string",
        }],
        "public": false,
    }],
    location: "string",
    loggingPipelineId: "string",
    name: "string",
    timeouts: {
        create: "string",
        "default": "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: ionoscloud:LoggingPipeline
properties:
    location: string
    loggingPipelineId: string
    logs:
        - destinations:
            - retentionInDays: 0
              type: string
          protocol: string
          public: false
          source: string
          tag: string
    name: string
    timeouts:
        create: string
        default: string
        delete: string
        update: string
Copy

LoggingPipeline Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LoggingPipeline resource accepts the following input properties:

Logs This property is required. List<LoggingPipelineLog>
[list] Pipeline logs, a list that contains elements with the following structure:
Location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
LoggingPipelineId string
Name string
[string] The name of the Logging pipeline.
Timeouts LoggingPipelineTimeouts
Logs This property is required. []LoggingPipelineLogArgs
[list] Pipeline logs, a list that contains elements with the following structure:
Location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
LoggingPipelineId string
Name string
[string] The name of the Logging pipeline.
Timeouts LoggingPipelineTimeoutsArgs
logs This property is required. List<LoggingPipelineLog>
[list] Pipeline logs, a list that contains elements with the following structure:
location String
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId String
name String
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeouts
logs This property is required. LoggingPipelineLog[]
[list] Pipeline logs, a list that contains elements with the following structure:
location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId string
name string
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeouts
logs This property is required. Sequence[LoggingPipelineLogArgs]
[list] Pipeline logs, a list that contains elements with the following structure:
location str
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
logging_pipeline_id str
name str
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeoutsArgs
logs This property is required. List<Property Map>
[list] Pipeline logs, a list that contains elements with the following structure:
location String
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId String
name String
[string] The name of the Logging pipeline.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the LoggingPipeline resource produces the following output properties:

GrafanaAddress string
[string] The address of the client's grafana instance.
Id string
The provider-assigned unique ID for this managed resource.
GrafanaAddress string
[string] The address of the client's grafana instance.
Id string
The provider-assigned unique ID for this managed resource.
grafanaAddress String
[string] The address of the client's grafana instance.
id String
The provider-assigned unique ID for this managed resource.
grafanaAddress string
[string] The address of the client's grafana instance.
id string
The provider-assigned unique ID for this managed resource.
grafana_address str
[string] The address of the client's grafana instance.
id str
The provider-assigned unique ID for this managed resource.
grafanaAddress String
[string] The address of the client's grafana instance.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing LoggingPipeline Resource

Get an existing LoggingPipeline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LoggingPipelineState, opts?: CustomResourceOptions): LoggingPipeline
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        grafana_address: Optional[str] = None,
        location: Optional[str] = None,
        logging_pipeline_id: Optional[str] = None,
        logs: Optional[Sequence[LoggingPipelineLogArgs]] = None,
        name: Optional[str] = None,
        timeouts: Optional[LoggingPipelineTimeoutsArgs] = None) -> LoggingPipeline
func GetLoggingPipeline(ctx *Context, name string, id IDInput, state *LoggingPipelineState, opts ...ResourceOption) (*LoggingPipeline, error)
public static LoggingPipeline Get(string name, Input<string> id, LoggingPipelineState? state, CustomResourceOptions? opts = null)
public static LoggingPipeline get(String name, Output<String> id, LoggingPipelineState state, CustomResourceOptions options)
resources:  _:    type: ionoscloud:LoggingPipeline    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
GrafanaAddress string
[string] The address of the client's grafana instance.
Location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
LoggingPipelineId string
Logs List<LoggingPipelineLog>
[list] Pipeline logs, a list that contains elements with the following structure:
Name string
[string] The name of the Logging pipeline.
Timeouts LoggingPipelineTimeouts
GrafanaAddress string
[string] The address of the client's grafana instance.
Location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
LoggingPipelineId string
Logs []LoggingPipelineLogArgs
[list] Pipeline logs, a list that contains elements with the following structure:
Name string
[string] The name of the Logging pipeline.
Timeouts LoggingPipelineTimeoutsArgs
grafanaAddress String
[string] The address of the client's grafana instance.
location String
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId String
logs List<LoggingPipelineLog>
[list] Pipeline logs, a list that contains elements with the following structure:
name String
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeouts
grafanaAddress string
[string] The address of the client's grafana instance.
location string
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId string
logs LoggingPipelineLog[]
[list] Pipeline logs, a list that contains elements with the following structure:
name string
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeouts
grafana_address str
[string] The address of the client's grafana instance.
location str
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
logging_pipeline_id str
logs Sequence[LoggingPipelineLogArgs]
[list] Pipeline logs, a list that contains elements with the following structure:
name str
[string] The name of the Logging pipeline.
timeouts LoggingPipelineTimeoutsArgs
grafanaAddress String
[string] The address of the client's grafana instance.
location String
[string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par. If this is not set and if no value is provided for the IONOS_API_URL env var, the default location will be: de/fra.
loggingPipelineId String
logs List<Property Map>
[list] Pipeline logs, a list that contains elements with the following structure:
name String
[string] The name of the Logging pipeline.
timeouts Property Map

Supporting Types

LoggingPipelineLog
, LoggingPipelineLogArgs

Protocol This property is required. string
[string] "Protocol to use as intake. Possible values are: http, tcp."
Source This property is required. string
[string] The source parser to be used.
Tag This property is required. string
[string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
Destinations List<LoggingPipelineLogDestination>
[list] The configuration of the logs datastore, a list that contains elements with the following structure:
Public bool
[bool]
Protocol This property is required. string
[string] "Protocol to use as intake. Possible values are: http, tcp."
Source This property is required. string
[string] The source parser to be used.
Tag This property is required. string
[string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
Destinations []LoggingPipelineLogDestination
[list] The configuration of the logs datastore, a list that contains elements with the following structure:
Public bool
[bool]
protocol This property is required. String
[string] "Protocol to use as intake. Possible values are: http, tcp."
source This property is required. String
[string] The source parser to be used.
tag This property is required. String
[string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
destinations List<LoggingPipelineLogDestination>
[list] The configuration of the logs datastore, a list that contains elements with the following structure:
public_ Boolean
[bool]
protocol This property is required. string
[string] "Protocol to use as intake. Possible values are: http, tcp."
source This property is required. string
[string] The source parser to be used.
tag This property is required. string
[string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
destinations LoggingPipelineLogDestination[]
[list] The configuration of the logs datastore, a list that contains elements with the following structure:
public boolean
[bool]
protocol This property is required. str
[string] "Protocol to use as intake. Possible values are: http, tcp."
source This property is required. str
[string] The source parser to be used.
tag This property is required. str
[string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
destinations Sequence[LoggingPipelineLogDestination]
[list] The configuration of the logs datastore, a list that contains elements with the following structure:
public bool
[bool]
protocol This property is required. String
[string] "Protocol to use as intake. Possible values are: http, tcp."
source This property is required. String
[string] The source parser to be used.
tag This property is required. String
[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:
public Boolean
[bool]

LoggingPipelineLogDestination
, LoggingPipelineLogDestinationArgs

RetentionInDays double
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
Type string
[string] The internal output stream to send logs to.
RetentionInDays float64
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
Type string
[string] The internal output stream to send logs to.
retentionInDays Double
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
type String
[string] The internal output stream to send logs to.
retentionInDays number
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
type string
[string] The internal output stream to send logs to.
retention_in_days float
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
type str
[string] The internal output stream to send logs to.
retentionInDays Number
[int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
type String
[string] The internal output stream to send logs to.

LoggingPipelineTimeouts
, LoggingPipelineTimeoutsArgs

Create string
Default string
Delete string
Update string
Create string
Default string
Delete string
Update string
create String
default_ String
delete String
update String
create string
default string
delete string
update string
create String
default String
delete String
update String

Package Details

Repository
ionoscloud ionos-cloud/terraform-provider-ionoscloud
License
Notes
This Pulumi package is based on the ionoscloud Terraform Provider.