OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.Dbaas.getLogsOutputOpenSearchIndex
Explore with Pulumi AI
Use this data source to retrieve information about a DBaas logs output opensearch index.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const index = ovh.Dbaas.getLogsOutputOpenSearchIndex({
name: "index-name",
serviceName: "ldp-xx-xxxxx",
});
import pulumi
import pulumi_ovh as ovh
index = ovh.Dbaas.get_logs_output_open_search_index(name="index-name",
service_name="ldp-xx-xxxxx")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dbaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dbaas.GetLogsOutputOpenSearchIndex(ctx, &dbaas.GetLogsOutputOpenSearchIndexArgs{
Name: "index-name",
ServiceName: "ldp-xx-xxxxx",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var index = Ovh.Dbaas.GetLogsOutputOpenSearchIndex.Invoke(new()
{
Name = "index-name",
ServiceName = "ldp-xx-xxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dbaas.DbaasFunctions;
import com.pulumi.ovh.Dbaas.inputs.GetLogsOutputOpenSearchIndexArgs;
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 index = DbaasFunctions.getLogsOutputOpenSearchIndex(GetLogsOutputOpenSearchIndexArgs.builder()
.name("index-name")
.serviceName("ldp-xx-xxxxx")
.build());
}
}
variables:
index:
fn::invoke:
Function: ovh:Dbaas:getLogsOutputOpenSearchIndex
Arguments:
name: index-name
serviceName: ldp-xx-xxxxx
Using getLogsOutputOpenSearchIndex
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 getLogsOutputOpenSearchIndex(args: GetLogsOutputOpenSearchIndexArgs, opts?: InvokeOptions): Promise<GetLogsOutputOpenSearchIndexResult>
function getLogsOutputOpenSearchIndexOutput(args: GetLogsOutputOpenSearchIndexOutputArgs, opts?: InvokeOptions): Output<GetLogsOutputOpenSearchIndexResult>
def get_logs_output_open_search_index(name: Optional[str] = None,
nb_shard: Optional[int] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsOutputOpenSearchIndexResult
def get_logs_output_open_search_index_output(name: Optional[pulumi.Input[str]] = None,
nb_shard: Optional[pulumi.Input[int]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsOutputOpenSearchIndexResult]
func GetLogsOutputOpenSearchIndex(ctx *Context, args *GetLogsOutputOpenSearchIndexArgs, opts ...InvokeOption) (*GetLogsOutputOpenSearchIndexResult, error)
func GetLogsOutputOpenSearchIndexOutput(ctx *Context, args *GetLogsOutputOpenSearchIndexOutputArgs, opts ...InvokeOption) GetLogsOutputOpenSearchIndexResultOutput
> Note: This function is named GetLogsOutputOpenSearchIndex
in the Go SDK.
public static class GetLogsOutputOpenSearchIndex
{
public static Task<GetLogsOutputOpenSearchIndexResult> InvokeAsync(GetLogsOutputOpenSearchIndexArgs args, InvokeOptions? opts = null)
public static Output<GetLogsOutputOpenSearchIndexResult> Invoke(GetLogsOutputOpenSearchIndexInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsOutputOpenSearchIndexResult> getLogsOutputOpenSearchIndex(GetLogsOutputOpenSearchIndexArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Dbaas/getLogsOutputOpenSearchIndex:getLogsOutputOpenSearchIndex
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Index name
- Service
Name string - The service name. It's the ID of your Logs Data Platform instance.
- Nb
Shard int - Number of shard
- Name string
- Index name
- Service
Name string - The service name. It's the ID of your Logs Data Platform instance.
- Nb
Shard int - Number of shard
- name String
- Index name
- service
Name String - The service name. It's the ID of your Logs Data Platform instance.
- nb
Shard Integer - Number of shard
- name string
- Index name
- service
Name string - The service name. It's the ID of your Logs Data Platform instance.
- nb
Shard number - Number of shard
- name str
- Index name
- service_
name str - The service name. It's the ID of your Logs Data Platform instance.
- nb_
shard int - Number of shard
- name String
- Index name
- service
Name String - The service name. It's the ID of your Logs Data Platform instance.
- nb
Shard Number - Number of shard
getLogsOutputOpenSearchIndex Result
The following output properties are available:
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Description string
- Index description
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Nb
Shard int - Number of shard
- Service
Name string - Updated
At string - Index last update
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Description string
- Index description
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Nb
Shard int - Number of shard
- Service
Name string - Updated
At string - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Integer - Current index size (in bytes)
- description String
- Index description
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Integer - Maximum index size (in bytes)
- name String
- Index name
- nb
Shard Integer - Number of shard
- service
Name String - updated
At String - Index last update
- alert
Notify booleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At string - Index creation
- current
Size number - Current index size (in bytes)
- description string
- Index description
- id string
- The provider-assigned unique ID for this managed resource.
- index
Id string - Index ID
- is
Editable boolean - Indicates if you are allowed to edit entry
- max
Size number - Maximum index size (in bytes)
- name string
- Index name
- nb
Shard number - Number of shard
- service
Name string - updated
At string - Index last update
- alert_
notify_ boolenabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created_
at str - Index creation
- current_
size int - Current index size (in bytes)
- description str
- Index description
- id str
- The provider-assigned unique ID for this managed resource.
- index_
id str - Index ID
- is_
editable bool - Indicates if you are allowed to edit entry
- max_
size int - Maximum index size (in bytes)
- name str
- Index name
- nb_
shard int - Number of shard
- service_
name str - updated_
at str - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Number - Current index size (in bytes)
- description String
- Index description
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Number - Maximum index size (in bytes)
- name String
- Index name
- nb
Shard Number - Number of shard
- service
Name String - updated
At String - Index last update
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.