1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getPreset
coralogix 2.0.20 published on Tuesday, May 20, 2025 by coralogix

coralogix.getPreset

Start a Neo task
Explain and create a coralogix.getPreset resource
coralogix logo
coralogix 2.0.20 published on Tuesday, May 20, 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:

    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.
    Name 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.
    Name 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.
    name 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.
    name string
    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.
    name str
    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.
    name String

    getPreset Result

    The following output properties are available:

    ConfigOverrides List<GetPresetConfigOverride>
    ConnectorType string
    The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
    Description string
    EntityType string
    The type of entity for the preset. Valid values are: alerts, unspecified
    Name string
    ParentId 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.
    ConfigOverrides []GetPresetConfigOverride
    ConnectorType string
    The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
    Description string
    EntityType string
    The type of entity for the preset. Valid values are: alerts, unspecified
    Name string
    ParentId 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.
    configOverrides List<GetPresetConfigOverride>
    connectorType String
    The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
    description String
    entityType String
    The type of entity for the preset. Valid values are: alerts, unspecified
    name String
    parentId 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.
    configOverrides GetPresetConfigOverride[]
    connectorType string
    The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
    description string
    entityType string
    The type of entity for the preset. Valid values are: alerts, unspecified
    name string
    parentId 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[GetPresetConfigOverride]
    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.
    configOverrides List<Property Map>
    connectorType String
    The type of connector for the preset. Valid values are: generic_https, pagerduty, slack, unspecified
    description String
    entityType String
    The type of entity for the preset. Valid values are: alerts, unspecified
    name String
    parentId 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

    ConditionType GetPresetConfigOverrideConditionType
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    MessageConfig GetPresetConfigOverrideMessageConfig
    PayloadType string
    ConditionType GetPresetConfigOverrideConditionType
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    MessageConfig GetPresetConfigOverrideMessageConfig
    PayloadType string
    conditionType GetPresetConfigOverrideConditionType
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    messageConfig GetPresetConfigOverrideMessageConfig
    payloadType String
    conditionType GetPresetConfigOverrideConditionType
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    messageConfig GetPresetConfigOverrideMessageConfig
    payloadType string
    condition_type GetPresetConfigOverrideConditionType
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    message_config GetPresetConfigOverrideMessageConfig
    payload_type str
    conditionType Property Map
    Condition type for the preset. Must be either matchentitytype or matchentitytypeandsub*type.
    messageConfig Property Map
    payloadType String

    GetPresetConfigOverrideConditionType

    GetPresetConfigOverrideConditionTypeMatchEntityTypeAndSubType

    GetPresetConfigOverrideMessageConfig

    GetPresetConfigOverrideMessageConfigField

    FieldName string
    Template string
    FieldName string
    Template string
    fieldName String
    template String
    fieldName string
    template string
    fieldName String
    template String

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.20 published on Tuesday, May 20, 2025 by coralogix
      Meet Neo: Your AI Platform Teammate