1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. LogsOutputOpenSearchAlias
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Dbaas.LogsOutputOpenSearchAlias

Explore with Pulumi AI

Creates a DBaaS Logs Opensearch output alias.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";

const alias = new ovh.dbaas.LogsOutputOpenSearchAlias("alias", {
    description: "my opensearch alias",
    serviceName: "....",
    suffix: "alias",
});
Copy
import pulumi
import pulumi_ovh as ovh

alias = ovh.dbaas.LogsOutputOpenSearchAlias("alias",
    description="my opensearch alias",
    service_name="....",
    suffix="alias")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/dbaas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbaas.NewLogsOutputOpenSearchAlias(ctx, "alias", &dbaas.LogsOutputOpenSearchAliasArgs{
			Description: pulumi.String("my opensearch alias"),
			ServiceName: pulumi.String("...."),
			Suffix:      pulumi.String("alias"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var @alias = new Ovh.Dbaas.LogsOutputOpenSearchAlias("alias", new()
    {
        Description = "my opensearch alias",
        ServiceName = "....",
        Suffix = "alias",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Dbaas.LogsOutputOpenSearchAlias;
import com.ovhcloud.pulumi.ovh.Dbaas.LogsOutputOpenSearchAliasArgs;
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) {
        var alias = new LogsOutputOpenSearchAlias("alias", LogsOutputOpenSearchAliasArgs.builder()
            .description("my opensearch alias")
            .serviceName("....")
            .suffix("alias")
            .build());

    }
}
Copy
resources:
  alias:
    type: ovh:Dbaas:LogsOutputOpenSearchAlias
    properties:
      description: my opensearch alias
      serviceName: '....'
      suffix: alias
Copy

Create LogsOutputOpenSearchAlias Resource

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

Constructor syntax

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

@overload
def LogsOutputOpenSearchAlias(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              description: Optional[str] = None,
                              service_name: Optional[str] = None,
                              suffix: Optional[str] = None,
                              indexes: Optional[Sequence[str]] = None,
                              nb_index: Optional[int] = None,
                              nb_stream: Optional[int] = None,
                              streams: Optional[Sequence[str]] = None)
func NewLogsOutputOpenSearchAlias(ctx *Context, name string, args LogsOutputOpenSearchAliasArgs, opts ...ResourceOption) (*LogsOutputOpenSearchAlias, error)
public LogsOutputOpenSearchAlias(string name, LogsOutputOpenSearchAliasArgs args, CustomResourceOptions? opts = null)
public LogsOutputOpenSearchAlias(String name, LogsOutputOpenSearchAliasArgs args)
public LogsOutputOpenSearchAlias(String name, LogsOutputOpenSearchAliasArgs args, CustomResourceOptions options)
type: ovh:Dbaas:LogsOutputOpenSearchAlias
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. LogsOutputOpenSearchAliasArgs
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. LogsOutputOpenSearchAliasArgs
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. LogsOutputOpenSearchAliasArgs
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. LogsOutputOpenSearchAliasArgs
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. LogsOutputOpenSearchAliasArgs
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 logsOutputOpenSearchAliasResource = new Ovh.Dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", new()
{
    Description = "string",
    ServiceName = "string",
    Suffix = "string",
    Indexes = new[]
    {
        "string",
    },
    NbIndex = 0,
    NbStream = 0,
    Streams = new[]
    {
        "string",
    },
});
Copy
example, err := Dbaas.NewLogsOutputOpenSearchAlias(ctx, "logsOutputOpenSearchAliasResource", &Dbaas.LogsOutputOpenSearchAliasArgs{
	Description: pulumi.String("string"),
	ServiceName: pulumi.String("string"),
	Suffix:      pulumi.String("string"),
	Indexes: pulumi.StringArray{
		pulumi.String("string"),
	},
	NbIndex:  pulumi.Int(0),
	NbStream: pulumi.Int(0),
	Streams: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var logsOutputOpenSearchAliasResource = new LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", LogsOutputOpenSearchAliasArgs.builder()
    .description("string")
    .serviceName("string")
    .suffix("string")
    .indexes("string")
    .nbIndex(0)
    .nbStream(0)
    .streams("string")
    .build());
Copy
logs_output_open_search_alias_resource = ovh.dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource",
    description="string",
    service_name="string",
    suffix="string",
    indexes=["string"],
    nb_index=0,
    nb_stream=0,
    streams=["string"])
Copy
const logsOutputOpenSearchAliasResource = new ovh.dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", {
    description: "string",
    serviceName: "string",
    suffix: "string",
    indexes: ["string"],
    nbIndex: 0,
    nbStream: 0,
    streams: ["string"],
});
Copy
type: ovh:Dbaas:LogsOutputOpenSearchAlias
properties:
    description: string
    indexes:
        - string
    nbIndex: 0
    nbStream: 0
    serviceName: string
    streams:
        - string
    suffix: string
Copy

LogsOutputOpenSearchAlias 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 LogsOutputOpenSearchAlias resource accepts the following input properties:

Description This property is required. string
Index description
ServiceName This property is required. string
The service name
Suffix This property is required. string
Index suffix
Indexes List<string>
List of attached indexes id
NbIndex int
Number of indices linked
NbStream int
Number of streams linked
Streams List<string>
List of attached streams id
Description This property is required. string
Index description
ServiceName This property is required. string
The service name
Suffix This property is required. string
Index suffix
Indexes []string
List of attached indexes id
NbIndex int
Number of indices linked
NbStream int
Number of streams linked
Streams []string
List of attached streams id
description This property is required. String
Index description
serviceName This property is required. String
The service name
suffix This property is required. String
Index suffix
indexes List<String>
List of attached indexes id
nbIndex Integer
Number of indices linked
nbStream Integer
Number of streams linked
streams List<String>
List of attached streams id
description This property is required. string
Index description
serviceName This property is required. string
The service name
suffix This property is required. string
Index suffix
indexes string[]
List of attached indexes id
nbIndex number
Number of indices linked
nbStream number
Number of streams linked
streams string[]
List of attached streams id
description This property is required. str
Index description
service_name This property is required. str
The service name
suffix This property is required. str
Index suffix
indexes Sequence[str]
List of attached indexes id
nb_index int
Number of indices linked
nb_stream int
Number of streams linked
streams Sequence[str]
List of attached streams id
description This property is required. String
Index description
serviceName This property is required. String
The service name
suffix This property is required. String
Index suffix
indexes List<String>
List of attached indexes id
nbIndex Number
Number of indices linked
nbStream Number
Number of streams linked
streams List<String>
List of attached streams id

Outputs

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

AliasId string
Alias Id
CreatedAt string
Alias creation
CurrentSize int
Current alias size (in bytes)
Id string
The provider-assigned unique ID for this managed resource.
IsEditable bool
Indicates if you are allowed to edit entry
Name string
Alias name
UpdatedAt string
Input last update
AliasId string
Alias Id
CreatedAt string
Alias creation
CurrentSize int
Current alias size (in bytes)
Id string
The provider-assigned unique ID for this managed resource.
IsEditable bool
Indicates if you are allowed to edit entry
Name string
Alias name
UpdatedAt string
Input last update
aliasId String
Alias Id
createdAt String
Alias creation
currentSize Integer
Current alias size (in bytes)
id String
The provider-assigned unique ID for this managed resource.
isEditable Boolean
Indicates if you are allowed to edit entry
name String
Alias name
updatedAt String
Input last update
aliasId string
Alias Id
createdAt string
Alias creation
currentSize number
Current alias size (in bytes)
id string
The provider-assigned unique ID for this managed resource.
isEditable boolean
Indicates if you are allowed to edit entry
name string
Alias name
updatedAt string
Input last update
alias_id str
Alias Id
created_at str
Alias creation
current_size int
Current alias size (in bytes)
id str
The provider-assigned unique ID for this managed resource.
is_editable bool
Indicates if you are allowed to edit entry
name str
Alias name
updated_at str
Input last update
aliasId String
Alias Id
createdAt String
Alias creation
currentSize Number
Current alias size (in bytes)
id String
The provider-assigned unique ID for this managed resource.
isEditable Boolean
Indicates if you are allowed to edit entry
name String
Alias name
updatedAt String
Input last update

Look up Existing LogsOutputOpenSearchAlias Resource

Get an existing LogsOutputOpenSearchAlias 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?: LogsOutputOpenSearchAliasState, opts?: CustomResourceOptions): LogsOutputOpenSearchAlias
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias_id: Optional[str] = None,
        created_at: Optional[str] = None,
        current_size: Optional[int] = None,
        description: Optional[str] = None,
        indexes: Optional[Sequence[str]] = None,
        is_editable: Optional[bool] = None,
        name: Optional[str] = None,
        nb_index: Optional[int] = None,
        nb_stream: Optional[int] = None,
        service_name: Optional[str] = None,
        streams: Optional[Sequence[str]] = None,
        suffix: Optional[str] = None,
        updated_at: Optional[str] = None) -> LogsOutputOpenSearchAlias
func GetLogsOutputOpenSearchAlias(ctx *Context, name string, id IDInput, state *LogsOutputOpenSearchAliasState, opts ...ResourceOption) (*LogsOutputOpenSearchAlias, error)
public static LogsOutputOpenSearchAlias Get(string name, Input<string> id, LogsOutputOpenSearchAliasState? state, CustomResourceOptions? opts = null)
public static LogsOutputOpenSearchAlias get(String name, Output<String> id, LogsOutputOpenSearchAliasState state, CustomResourceOptions options)
resources:  _:    type: ovh:Dbaas:LogsOutputOpenSearchAlias    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:
AliasId string
Alias Id
CreatedAt string
Alias creation
CurrentSize int
Current alias size (in bytes)
Description string
Index description
Indexes List<string>
List of attached indexes id
IsEditable bool
Indicates if you are allowed to edit entry
Name string
Alias name
NbIndex int
Number of indices linked
NbStream int
Number of streams linked
ServiceName string
The service name
Streams List<string>
List of attached streams id
Suffix string
Index suffix
UpdatedAt string
Input last update
AliasId string
Alias Id
CreatedAt string
Alias creation
CurrentSize int
Current alias size (in bytes)
Description string
Index description
Indexes []string
List of attached indexes id
IsEditable bool
Indicates if you are allowed to edit entry
Name string
Alias name
NbIndex int
Number of indices linked
NbStream int
Number of streams linked
ServiceName string
The service name
Streams []string
List of attached streams id
Suffix string
Index suffix
UpdatedAt string
Input last update
aliasId String
Alias Id
createdAt String
Alias creation
currentSize Integer
Current alias size (in bytes)
description String
Index description
indexes List<String>
List of attached indexes id
isEditable Boolean
Indicates if you are allowed to edit entry
name String
Alias name
nbIndex Integer
Number of indices linked
nbStream Integer
Number of streams linked
serviceName String
The service name
streams List<String>
List of attached streams id
suffix String
Index suffix
updatedAt String
Input last update
aliasId string
Alias Id
createdAt string
Alias creation
currentSize number
Current alias size (in bytes)
description string
Index description
indexes string[]
List of attached indexes id
isEditable boolean
Indicates if you are allowed to edit entry
name string
Alias name
nbIndex number
Number of indices linked
nbStream number
Number of streams linked
serviceName string
The service name
streams string[]
List of attached streams id
suffix string
Index suffix
updatedAt string
Input last update
alias_id str
Alias Id
created_at str
Alias creation
current_size int
Current alias size (in bytes)
description str
Index description
indexes Sequence[str]
List of attached indexes id
is_editable bool
Indicates if you are allowed to edit entry
name str
Alias name
nb_index int
Number of indices linked
nb_stream int
Number of streams linked
service_name str
The service name
streams Sequence[str]
List of attached streams id
suffix str
Index suffix
updated_at str
Input last update
aliasId String
Alias Id
createdAt String
Alias creation
currentSize Number
Current alias size (in bytes)
description String
Index description
indexes List<String>
List of attached indexes id
isEditable Boolean
Indicates if you are allowed to edit entry
name String
Alias name
nbIndex Number
Number of indices linked
nbStream Number
Number of streams linked
serviceName String
The service name
streams List<String>
List of attached streams id
suffix String
Index suffix
updatedAt String
Input last update

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.