coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix
coralogix.getPreset
Explore with Pulumi AI
coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix
Coralogix Preset. NOTE: This resource is in alpha stage.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";
const genericHttpsExampleData = coralogix.getPreset({
id: "<YOUR_PRESET_ID>",
});
const genericHttpsExampleDataByName = coralogix.getPreset({
name: "<YOUR_PRESET_NAME>",
});
import pulumi
import pulumi_coralogix as coralogix
generic_https_example_data = coralogix.get_preset(id="<YOUR_PRESET_ID>")
generic_https_example_data_by_name = coralogix.get_preset(name="<YOUR_PRESET_NAME>")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := coralogix.LookupPreset(ctx, &coralogix.LookupPresetArgs{
Id: pulumi.StringRef("<YOUR_PRESET_ID>"),
}, nil)
if err != nil {
return err
}
_, err = coralogix.LookupPreset(ctx, &coralogix.LookupPresetArgs{
Name: pulumi.StringRef("<YOUR_PRESET_NAME>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;
return await Deployment.RunAsync(() =>
{
var genericHttpsExampleData = Coralogix.GetPreset.Invoke(new()
{
Id = "<YOUR_PRESET_ID>",
});
var genericHttpsExampleDataByName = Coralogix.GetPreset.Invoke(new()
{
Name = "<YOUR_PRESET_NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.CoralogixFunctions;
import com.pulumi.coralogix.inputs.GetPresetArgs;
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 genericHttpsExampleData = CoralogixFunctions.getPreset(GetPresetArgs.builder()
.id("<YOUR_PRESET_ID>")
.build());
final var genericHttpsExampleDataByName = CoralogixFunctions.getPreset(GetPresetArgs.builder()
.name("<YOUR_PRESET_NAME>")
.build());
}
}
variables:
genericHttpsExampleData:
fn::invoke:
function: coralogix:getPreset
arguments:
id: <YOUR_PRESET_ID>
genericHttpsExampleDataByName:
fn::invoke:
function: coralogix:getPreset
arguments:
name: <YOUR_PRESET_NAME>
Using getPreset
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 getPreset(args: GetPresetArgs, opts?: InvokeOptions): Promise<GetPresetResult>
function getPresetOutput(args: GetPresetOutputArgs, opts?: InvokeOptions): Output<GetPresetResult>
def get_preset(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPresetResult
def get_preset_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPresetResult]
func LookupPreset(ctx *Context, args *LookupPresetArgs, opts ...InvokeOption) (*LookupPresetResult, error)
func LookupPresetOutput(ctx *Context, args *LookupPresetOutputArgs, opts ...InvokeOption) LookupPresetResultOutput
> Note: This function is named LookupPreset
in the Go SDK.
public static class GetPreset
{
public static Task<GetPresetResult> InvokeAsync(GetPresetArgs args, InvokeOptions? opts = null)
public static Output<GetPresetResult> Invoke(GetPresetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPresetResult> getPreset(GetPresetArgs args, InvokeOptions options)
public static Output<GetPresetResult> getPreset(GetPresetArgs args, InvokeOptions options)
fn::invoke:
function: coralogix:index/getPreset:getPreset
arguments:
# arguments dictionary
The following arguments are supported:
getPreset Result
The following output properties are available:
- Config
Overrides List<GetPreset Config Override> - Connector
Type string - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- Description string
- Entity
Type string - The type of entity for the preset. Valid values are: alerts, unspecified
- Name string
- Parent
Id string - Id string
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
- Config
Overrides []GetPreset Config Override - Connector
Type string - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- Description string
- Entity
Type string - The type of entity for the preset. Valid values are: alerts, unspecified
- Name string
- Parent
Id string - Id string
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
- config
Overrides List<GetPreset Config Override> - connector
Type String - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- description String
- entity
Type String - The type of entity for the preset. Valid values are: alerts, unspecified
- name String
- parent
Id String - id String
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
- config
Overrides GetPreset Config Override[] - connector
Type string - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- description string
- entity
Type string - The type of entity for the preset. Valid values are: alerts, unspecified
- name string
- parent
Id string - id string
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
- config_
overrides Sequence[GetPreset Config Override] - connector_
type str - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- description str
- entity_
type str - The type of entity for the preset. Valid values are: alerts, unspecified
- name str
- parent_
id str - id str
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
- config
Overrides List<Property Map> - connector
Type String - The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
- description String
- entity
Type String - The type of entity for the preset. Valid values are: alerts, unspecified
- name String
- parent
Id String - id String
- The ID of the Preset. Can be set to a custom value, or left empty to auto-generate. Requires recreation in case of change.
Supporting Types
GetPresetConfigOverride
- Condition
Type GetPreset Config Override Condition Type - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- Message
Config GetPreset Config Override Message Config - Payload
Type string
- Condition
Type GetPreset Config Override Condition Type - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- Message
Config GetPreset Config Override Message Config - Payload
Type string
- condition
Type GetPreset Config Override Condition Type - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- message
Config GetPreset Config Override Message Config - payload
Type String
- condition
Type GetPreset Config Override Condition Type - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- message
Config GetPreset Config Override Message Config - payload
Type string
- condition_
type GetPreset Config Override Condition Type - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- message_
config GetPreset Config Override Message Config - payload_
type str
- condition
Type Property Map - Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
- message
Config Property Map - payload
Type String
GetPresetConfigOverrideConditionType
GetPresetConfigOverrideConditionTypeMatchEntityTypeAndSubType
- Entity
Sub stringType
- Entity
Sub stringType
- entity
Sub StringType
- entity
Sub stringType
- entity_
sub_ strtype
- entity
Sub StringType
GetPresetConfigOverrideMessageConfig
GetPresetConfigOverrideMessageConfigField
- field_
name str - template str
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the
coralogix
Terraform Provider.
coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix