Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse
dynatrace.getGenericSettings
Explore with Pulumi AI
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:
getGenericSettings Result
The following output properties are available:
Supporting Types
GetGenericSettingsValue
- Local
Storage string - Schema string
- Scope string
- Value string
- Local
Storage string - Schema string
- Scope string
- Value string
- local
Storage String - schema String
- scope String
- value String
- local
Storage string - schema string
- scope string
- value string
- local_
storage str - schema str
- scope str
- value str
- local
Storage 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.