1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getScope
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.getScope

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Coralogix Scope.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const dataExample = coralogix.getScope({
        id: coralogix_scope.example.id,
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    data_example = coralogix.get_scope(id=coralogix_scope["example"]["id"])
    
    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.LookupScope(ctx, &coralogix.LookupScopeArgs{
    			Id: coralogix_scope.Example.Id,
    		}, 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 dataExample = Coralogix.GetScope.Invoke(new()
        {
            Id = coralogix_scope.Example.Id,
        });
    
    });
    
    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.GetScopeArgs;
    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 dataExample = CoralogixFunctions.getScope(GetScopeArgs.builder()
                .id(coralogix_scope.example().id())
                .build());
    
        }
    }
    
    variables:
      dataExample:
        fn::invoke:
          function: coralogix:getScope
          arguments:
            id: ${coralogix_scope.example.id}
    

    Using getScope

    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 getScope(args: GetScopeArgs, opts?: InvokeOptions): Promise<GetScopeResult>
    function getScopeOutput(args: GetScopeOutputArgs, opts?: InvokeOptions): Output<GetScopeResult>
    def get_scope(id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetScopeResult
    def get_scope_output(id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetScopeResult]
    func LookupScope(ctx *Context, args *LookupScopeArgs, opts ...InvokeOption) (*LookupScopeResult, error)
    func LookupScopeOutput(ctx *Context, args *LookupScopeOutputArgs, opts ...InvokeOption) LookupScopeResultOutput

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

    public static class GetScope 
    {
        public static Task<GetScopeResult> InvokeAsync(GetScopeArgs args, InvokeOptions? opts = null)
        public static Output<GetScopeResult> Invoke(GetScopeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
    public static Output<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: coralogix:index/getScope:getScope
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Scope ID.
    Id string
    Scope ID.
    id String
    Scope ID.
    id string
    Scope ID.
    id str
    Scope ID.
    id String
    Scope ID.

    getScope Result

    The following output properties are available:

    DefaultExpression string
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    Description string
    Description of the scope. Optional.
    DisplayName string
    Scope display name.
    Filters List<GetScopeFilter>
    Filters applied to include data in the scope.
    Id string
    Scope ID.
    TeamId string
    Associated team.
    DefaultExpression string
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    Description string
    Description of the scope. Optional.
    DisplayName string
    Scope display name.
    Filters []GetScopeFilter
    Filters applied to include data in the scope.
    Id string
    Scope ID.
    TeamId string
    Associated team.
    defaultExpression String
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    description String
    Description of the scope. Optional.
    displayName String
    Scope display name.
    filters List<GetScopeFilter>
    Filters applied to include data in the scope.
    id String
    Scope ID.
    teamId String
    Associated team.
    defaultExpression string
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    description string
    Description of the scope. Optional.
    displayName string
    Scope display name.
    filters GetScopeFilter[]
    Filters applied to include data in the scope.
    id string
    Scope ID.
    teamId string
    Associated team.
    default_expression str
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    description str
    Description of the scope. Optional.
    display_name str
    Scope display name.
    filters Sequence[GetScopeFilter]
    Filters applied to include data in the scope.
    id str
    Scope ID.
    team_id str
    Associated team.
    defaultExpression String
    Default expression to use when no filter matches the query. Until further notice, this is limited to true (everything is included) or false (nothing is included). Use a version tag (e.g <v1>true or <v1>false)
    description String
    Description of the scope. Optional.
    displayName String
    Scope display name.
    filters List<Property Map>
    Filters applied to include data in the scope.
    id String
    Scope ID.
    teamId String
    Associated team.

    Supporting Types

    GetScopeFilter

    EntityType string
    Entity type to apply the expression on
    Expression string
    Expression to run
    EntityType string
    Entity type to apply the expression on
    Expression string
    Expression to run
    entityType String
    Entity type to apply the expression on
    expression String
    Expression to run
    entityType string
    Entity type to apply the expression on
    expression string
    Expression to run
    entity_type str
    Entity type to apply the expression on
    expression str
    Expression to run
    entityType String
    Entity type to apply the expression on
    expression String
    Expression to run

    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.17 published on Tuesday, Apr 22, 2025 by coralogix