1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getConnector
coralogix 2.0.18 published on Thursday, May 8, 2025 by coralogix

coralogix.getConnector

Explore with Pulumi AI

coralogix logo
coralogix 2.0.18 published on Thursday, May 8, 2025 by coralogix

    Coralogix Connector. Note: This resource is in alpha stage.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const genericHttpsExampleData = coralogix.getConnector({
        id: "<connector_id>",
    });
    const genericHttpsExampleDataByName = coralogix.getConnector({
        name: "<connector_name>",
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    generic_https_example_data = coralogix.get_connector(id="<connector_id>")
    generic_https_example_data_by_name = coralogix.get_connector(name="<connector_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.LookupConnector(ctx, &coralogix.LookupConnectorArgs{
    			Id: pulumi.StringRef("<connector_id>"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = coralogix.LookupConnector(ctx, &coralogix.LookupConnectorArgs{
    			Name: pulumi.StringRef("<connector_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.GetConnector.Invoke(new()
        {
            Id = "<connector_id>",
        });
    
        var genericHttpsExampleDataByName = Coralogix.GetConnector.Invoke(new()
        {
            Name = "<connector_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.GetConnectorArgs;
    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.getConnector(GetConnectorArgs.builder()
                .id("<connector_id>")
                .build());
    
            final var genericHttpsExampleDataByName = CoralogixFunctions.getConnector(GetConnectorArgs.builder()
                .name("<connector_name>")
                .build());
    
        }
    }
    
    variables:
      genericHttpsExampleData:
        fn::invoke:
          function: coralogix:getConnector
          arguments:
            id: <connector_id>
      genericHttpsExampleDataByName:
        fn::invoke:
          function: coralogix:getConnector
          arguments:
            name: <connector_name>
    

    Using getConnector

    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 getConnector(args: GetConnectorArgs, opts?: InvokeOptions): Promise<GetConnectorResult>
    function getConnectorOutput(args: GetConnectorOutputArgs, opts?: InvokeOptions): Output<GetConnectorResult>
    def get_connector(id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetConnectorResult
    def get_connector_output(id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetConnectorResult]
    func LookupConnector(ctx *Context, args *LookupConnectorArgs, opts ...InvokeOption) (*LookupConnectorResult, error)
    func LookupConnectorOutput(ctx *Context, args *LookupConnectorOutputArgs, opts ...InvokeOption) LookupConnectorResultOutput

    > Note: This function is named LookupConnector in the Go SDK.

    public static class GetConnector 
    {
        public static Task<GetConnectorResult> InvokeAsync(GetConnectorArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectorResult> Invoke(GetConnectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
    public static Output<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: coralogix:index/getConnector:getConnector
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    Name string
    Connector name.
    Id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    Name string
    Connector name.
    id String
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    name String
    Connector name.
    id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    name string
    Connector name.
    id str
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    name str
    Connector name.
    id String
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    name String
    Connector name.

    getConnector Result

    The following output properties are available:

    ConfigOverrides List<GetConnectorConfigOverride>
    ConnectorConfig GetConnectorConnectorConfig
    Description string
    Name string
    Connector name.
    Type string
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    Id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    ConfigOverrides []GetConnectorConfigOverride
    ConnectorConfig GetConnectorConnectorConfig
    Description string
    Name string
    Connector name.
    Type string
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    Id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    configOverrides List<GetConnectorConfigOverride>
    connectorConfig GetConnectorConnectorConfig
    description String
    name String
    Connector name.
    type String
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    id String
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    configOverrides GetConnectorConfigOverride[]
    connectorConfig GetConnectorConnectorConfig
    description string
    name string
    Connector name.
    type string
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    id string
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    config_overrides Sequence[GetConnectorConfigOverride]
    connector_config GetConnectorConnectorConfig
    description str
    name str
    Connector name.
    type str
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    id str
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.
    configOverrides List<Property Map>
    connectorConfig Property Map
    description String
    name String
    Connector name.
    type String
    Connector type. Valid values are: [generic_https pagerduty slack unspecified]
    id String
    Connector ID. Can be set by the user or generated by Coralogix. Requires recreation in case of change.

    Supporting Types

    GetConnectorConfigOverride

    EntityType string
    Entity type for the connector. Valid values are: [alerts unspecified]
    Fields List<GetConnectorConfigOverrideField>
    EntityType string
    Entity type for the connector. Valid values are: [alerts unspecified]
    Fields []GetConnectorConfigOverrideField
    entityType String
    Entity type for the connector. Valid values are: [alerts unspecified]
    fields List<GetConnectorConfigOverrideField>
    entityType string
    Entity type for the connector. Valid values are: [alerts unspecified]
    fields GetConnectorConfigOverrideField[]
    entity_type str
    Entity type for the connector. Valid values are: [alerts unspecified]
    fields Sequence[GetConnectorConfigOverrideField]
    entityType String
    Entity type for the connector. Valid values are: [alerts unspecified]
    fields List<Property Map>

    GetConnectorConfigOverrideField

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

    GetConnectorConnectorConfig

    GetConnectorConnectorConfigField

    FieldName string
    Value string
    FieldName string
    Value string
    fieldName String
    value String
    fieldName string
    value string
    fieldName String
    value 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.18 published on Thursday, May 8, 2025 by coralogix