1. Packages
  2. Dynatrace
  3. API Docs
  4. getGenericSettings
Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse

dynatrace.getGenericSettings

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse

    The generic settings data source allows Settings 2.0 objects to be retrieved by its schema ID, scope, and/or filter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumi/dynatrace";
    
    const example = dynatrace.getGenericSettings({
        schema: "builtin:alerting.maintenance-window",
    });
    export const genericSettings = example;
    
    import pulumi
    import pulumi_dynatrace as dynatrace
    
    example = dynatrace.get_generic_settings(schema="builtin:alerting.maintenance-window")
    pulumi.export("genericSettings", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := dynatrace.GetGenericSettings(ctx, &dynatrace.GetGenericSettingsArgs{
    			Schema: pulumi.StringRef("builtin:alerting.maintenance-window"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("genericSettings", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumi.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Dynatrace.GetGenericSettings.Invoke(new()
        {
            Schema = "builtin:alerting.maintenance-window",
        });
    
        return new Dictionary<string, object?>
        {
            ["genericSettings"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.DynatraceFunctions;
    import com.pulumi.dynatrace.inputs.GetGenericSettingsArgs;
    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 example = DynatraceFunctions.getGenericSettings(GetGenericSettingsArgs.builder()
                .schema("builtin:alerting.maintenance-window")
                .build());
    
            ctx.export("genericSettings", example.applyValue(getGenericSettingsResult -> getGenericSettingsResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: dynatrace:getGenericSettings
          Arguments:
            schema: builtin:alerting.maintenance-window
    outputs:
      genericSettings: ${example}
    

    Using getGenericSettings

    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 getGenericSettings(args: GetGenericSettingsArgs, opts?: InvokeOptions): Promise<GetGenericSettingsResult>
    function getGenericSettingsOutput(args: GetGenericSettingsOutputArgs, opts?: InvokeOptions): Output<GetGenericSettingsResult>
    def get_generic_settings(filter: Optional[str] = None,
                             schema: Optional[str] = None,
                             scope: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetGenericSettingsResult
    def get_generic_settings_output(filter: Optional[pulumi.Input[str]] = None,
                             schema: Optional[pulumi.Input[str]] = None,
                             scope: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetGenericSettingsResult]
    func GetGenericSettings(ctx *Context, args *GetGenericSettingsArgs, opts ...InvokeOption) (*GetGenericSettingsResult, error)
    func GetGenericSettingsOutput(ctx *Context, args *GetGenericSettingsOutputArgs, opts ...InvokeOption) GetGenericSettingsResultOutput

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

    public static class GetGenericSettings 
    {
        public static Task<GetGenericSettingsResult> InvokeAsync(GetGenericSettingsArgs args, InvokeOptions? opts = null)
        public static Output<GetGenericSettingsResult> Invoke(GetGenericSettingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGenericSettingsResult> getGenericSettings(GetGenericSettingsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dynatrace:index/getGenericSettings:getGenericSettings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    Filter of the requested objects
    Schema string
    Schema IDs to which the requested objects belong
    Scope string
    Scope that the requested objects target
    Filter string
    Filter of the requested objects
    Schema string
    Schema IDs to which the requested objects belong
    Scope string
    Scope that the requested objects target
    filter String
    Filter of the requested objects
    schema String
    Schema IDs to which the requested objects belong
    scope String
    Scope that the requested objects target
    filter string
    Filter of the requested objects
    schema string
    Schema IDs to which the requested objects belong
    scope string
    Scope that the requested objects target
    filter str
    Filter of the requested objects
    schema str
    Schema IDs to which the requested objects belong
    scope str
    Scope that the requested objects target
    filter String
    Filter of the requested objects
    schema String
    Schema IDs to which the requested objects belong
    scope String
    Scope that the requested objects target

    getGenericSettings Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Schema string
    Schema IDs to which the requested objects belong
    Scope string
    Scope that the requested objects target
    Values List<Pulumiverse.Dynatrace.Outputs.GetGenericSettingsValue>
    Filter string
    Filter of the requested objects
    Id string
    The provider-assigned unique ID for this managed resource.
    Schema string
    Schema IDs to which the requested objects belong
    Scope string
    Scope that the requested objects target
    Values []GetGenericSettingsValue
    Filter string
    Filter of the requested objects
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    Schema IDs to which the requested objects belong
    scope String
    Scope that the requested objects target
    values List<GetGenericSettingsValue>
    filter String
    Filter of the requested objects
    id string
    The provider-assigned unique ID for this managed resource.
    schema string
    Schema IDs to which the requested objects belong
    scope string
    Scope that the requested objects target
    values GetGenericSettingsValue[]
    filter string
    Filter of the requested objects
    id str
    The provider-assigned unique ID for this managed resource.
    schema str
    Schema IDs to which the requested objects belong
    scope str
    Scope that the requested objects target
    values Sequence[GetGenericSettingsValue]
    filter str
    Filter of the requested objects
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    Schema IDs to which the requested objects belong
    scope String
    Scope that the requested objects target
    values List<Property Map>
    filter String
    Filter of the requested objects

    Supporting Types

    GetGenericSettingsValue

    LocalStorage string
    Schema string
    Scope string
    Value string
    LocalStorage string
    Schema string
    Scope string
    Value string
    localStorage String
    schema String
    scope String
    value String
    localStorage string
    schema string
    scope string
    value string
    localStorage String
    schema String
    scope String
    value String

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse