1. Packages
  2. Grafana Cloud
  3. API Docs
  4. frontendObservability
  5. getApp
Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse

grafana.frontendObservability.getApp

Explore with Pulumi AI

grafana logo
Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.cloud.CloudFunctions;
    import com.pulumi.grafana.cloud.inputs.GetStackArgs;
    import com.pulumi.grafana.frontendObservability.FrontendObservabilityFunctions;
    import com.pulumi.grafana.frontendObservability.inputs.GetAppArgs;
    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 teststack = CloudFunctions.getStack(GetStackArgs.builder()
                .name("gcloudstacktest")
                .build());
    
            final var test-app = FrontendObservabilityFunctions.getApp(GetAppArgs.builder()
                .stackId(teststack.applyValue(getStackResult -> getStackResult.id()))
                .name("test-app")
                .build());
    
        }
    }
    
    variables:
      teststack:
        fn::invoke:
          function: grafana:cloud:getStack
          arguments:
            name: gcloudstacktest
      test-app:
        fn::invoke:
          function: grafana:frontendObservability:getApp
          arguments:
            stackId: ${teststack.id}
            name: test-app
    

    Using getApp

    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 getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
    function getAppOutput(args: GetAppOutputArgs, opts?: InvokeOptions): Output<GetAppResult>
    def get_app(name: Optional[str] = None,
                stack_id: Optional[int] = None,
                opts: Optional[InvokeOptions] = None) -> GetAppResult
    def get_app_output(name: Optional[pulumi.Input[str]] = None,
                stack_id: Optional[pulumi.Input[int]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]
    func GetApp(ctx *Context, args *GetAppArgs, opts ...InvokeOption) (*GetAppResult, error)
    func GetAppOutput(ctx *Context, args *GetAppOutputArgs, opts ...InvokeOption) GetAppResultOutput

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

    public static class GetApp 
    {
        public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
        public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
    public static Output<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
    
    fn::invoke:
      function: grafana:frontendObservability/getApp:getApp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    StackId int
    Name string
    StackId int
    name String
    stackId Integer
    name string
    stackId number
    name str
    stack_id int
    name String
    stackId Number

    getApp Result

    The following output properties are available:

    AllowedOrigins List<string>
    A list of allowed origins for CORS.
    ExtraLogAttributes Dictionary<string, string>
    The extra attributes to append in each signal.
    Id int
    Name string
    Settings Dictionary<string, string>
    The settings of the Frontend Observability App.
    StackId int
    AllowedOrigins []string
    A list of allowed origins for CORS.
    ExtraLogAttributes map[string]string
    The extra attributes to append in each signal.
    Id int
    Name string
    Settings map[string]string
    The settings of the Frontend Observability App.
    StackId int
    allowedOrigins List<String>
    A list of allowed origins for CORS.
    extraLogAttributes Map<String,String>
    The extra attributes to append in each signal.
    id Integer
    name String
    settings Map<String,String>
    The settings of the Frontend Observability App.
    stackId Integer
    allowedOrigins string[]
    A list of allowed origins for CORS.
    extraLogAttributes {[key: string]: string}
    The extra attributes to append in each signal.
    id number
    name string
    settings {[key: string]: string}
    The settings of the Frontend Observability App.
    stackId number
    allowed_origins Sequence[str]
    A list of allowed origins for CORS.
    extra_log_attributes Mapping[str, str]
    The extra attributes to append in each signal.
    id int
    name str
    settings Mapping[str, str]
    The settings of the Frontend Observability App.
    stack_id int
    allowedOrigins List<String>
    A list of allowed origins for CORS.
    extraLogAttributes Map<String>
    The extra attributes to append in each signal.
    id Number
    name String
    settings Map<String>
    The settings of the Frontend Observability App.
    stackId Number

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse