Viewing docs for Dynatrace v0.37.1
published on Thursday, Jun 25, 2026 by Pulumiverse
published on Thursday, Jun 25, 2026 by Pulumiverse
Viewing docs for Dynatrace v0.37.1
published on Thursday, Jun 25, 2026 by Pulumiverse
published on Thursday, Jun 25, 2026 by Pulumiverse
Dynatrace SaaS only
This data source requires the OAuth permission View SLOs (
slo:slos:read)
The dynatrace.PlatformSlo data source allows to get an SLO and all its data by its name.
Dynatrace Documentation
- Service-Level Objectives overview - https://docs.dynatrace.com/docs/deliver/service-level-objectives
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const example = dynatrace.getPlatformSlo({
name: "Terraform",
});
export const id = example.then(example => example.id);
export const sli = example.then(example => example.customSlis?.[0]?.indicator);
import pulumi
import pulumi_dynatrace as dynatrace
example = dynatrace.get_platform_slo(name="Terraform")
pulumi.export("id", example.id)
pulumi.export("sli", example.custom_slis[0].indicator)
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.GetPlatformSlo(ctx, &dynatrace.LookupPlatformSloArgs{
Name: "Terraform",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
ctx.Export("sli", example.CustomSlis[0].Indicator)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var example = Dynatrace.GetPlatformSlo.Invoke(new()
{
Name = "Terraform",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getPlatformSloResult => getPlatformSloResult.Id),
["sli"] = example.Apply(getPlatformSloResult => getPlatformSloResult.CustomSlis[0]?.Indicator),
};
});
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.GetPlatformSloArgs;
import java.util.ArrayList;
import java.util.Arrays;
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.getPlatformSlo(GetPlatformSloArgs.builder()
.name("Terraform")
.build());
ctx.export("id", example.id());
ctx.export("sli", example.customSlis()[0].indicator());
}
}
variables:
example:
fn::invoke:
function: dynatrace:getPlatformSlo
arguments:
name: Terraform
outputs:
id: ${example.id}
sli: ${example.customSlis[0].indicator}
pulumi {
required_providers {
dynatrace = {
source = "pulumi/dynatrace"
}
}
}
data "dynatrace_getplatformslo" "example" {
name = "Terraform"
}
output "id" {
value = data.dynatrace_getplatformslo.example.id
}
output "sli" {
value = data.dynatrace_getplatformslo.example.custom_slis[0].indicator
}
Using getPlatformSlo
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 getPlatformSlo(args: GetPlatformSloArgs, opts?: InvokeOptions): Promise<GetPlatformSloResult>
function getPlatformSloOutput(args: GetPlatformSloOutputArgs, opts?: InvokeOptions): Output<GetPlatformSloResult>def get_platform_slo(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPlatformSloResult
def get_platform_slo_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPlatformSloResult]func LookupPlatformSlo(ctx *Context, args *LookupPlatformSloArgs, opts ...InvokeOption) (*LookupPlatformSloResult, error)
func LookupPlatformSloOutput(ctx *Context, args *LookupPlatformSloOutputArgs, opts ...InvokeOption) LookupPlatformSloResultOutput> Note: This function is named LookupPlatformSlo in the Go SDK.
public static class GetPlatformSlo
{
public static Task<GetPlatformSloResult> InvokeAsync(GetPlatformSloArgs args, InvokeOptions? opts = null)
public static Output<GetPlatformSloResult> Invoke(GetPlatformSloInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPlatformSloResult> getPlatformSlo(GetPlatformSloArgs args, InvokeOptions options)
public static Output<GetPlatformSloResult> getPlatformSlo(GetPlatformSloArgs args, InvokeOptions options)
fn::invoke:
function: dynatrace:index/getPlatformSlo:getPlatformSlo
arguments:
# arguments dictionarydata "dynatrace_getplatformslo" "name" {
# arguments
}The following arguments are supported:
- Name string
- Name of the SLO
- Name string
- Name of the SLO
- name string
- Name of the SLO
- name String
- Name of the SLO
- name string
- Name of the SLO
- name str
- Name of the SLO
- name String
- Name of the SLO
getPlatformSlo Result
The following output properties are available:
- Criterias
List<Pulumiverse.
Dynatrace. Outputs. Get Platform Slo Criteria> - Criteria of the SLO
- Custom
Slis List<Pulumiverse.Dynatrace. Outputs. Get Platform Slo Custom Sli> - Custom SLI of the SLO
- Description string
- Description of the SLO
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the SLO
- Sli
References List<Pulumiverse.Dynatrace. Outputs. Get Platform Slo Sli Reference> - SLI reference of the SLO
- List<string>
- Tags of the SLO. Example:
Stage:DEV
- Criterias
[]Get
Platform Slo Criteria - Criteria of the SLO
- Custom
Slis []GetPlatform Slo Custom Sli - Custom SLI of the SLO
- Description string
- Description of the SLO
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the SLO
- Sli
References []GetPlatform Slo Sli Reference - SLI reference of the SLO
- []string
- Tags of the SLO. Example:
Stage:DEV
- criterias list(object)
- Criteria of the SLO
- custom_
slis list(object) - Custom SLI of the SLO
- description string
- Description of the SLO
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the SLO
- sli_
references list(object) - SLI reference of the SLO
- list(string)
- Tags of the SLO. Example:
Stage:DEV
- criterias
List<Get
Platform Slo Criteria> - Criteria of the SLO
- custom
Slis List<GetPlatform Slo Custom Sli> - Custom SLI of the SLO
- description String
- Description of the SLO
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the SLO
- sli
References List<GetPlatform Slo Sli Reference> - SLI reference of the SLO
- List<String>
- Tags of the SLO. Example:
Stage:DEV
- criterias
Get
Platform Slo Criteria[] - Criteria of the SLO
- custom
Slis GetPlatform Slo Custom Sli[] - Custom SLI of the SLO
- description string
- Description of the SLO
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the SLO
- sli
References GetPlatform Slo Sli Reference[] - SLI reference of the SLO
- string[]
- Tags of the SLO. Example:
Stage:DEV
- criterias
Sequence[Get
Platform Slo Criteria] - Criteria of the SLO
- custom_
slis Sequence[GetPlatform Slo Custom Sli] - Custom SLI of the SLO
- description str
- Description of the SLO
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the SLO
- sli_
references Sequence[GetPlatform Slo Sli Reference] - SLI reference of the SLO
- Sequence[str]
- Tags of the SLO. Example:
Stage:DEV
- criterias List<Property Map>
- Criteria of the SLO
- custom
Slis List<Property Map> - Custom SLI of the SLO
- description String
- Description of the SLO
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the SLO
- sli
References List<Property Map> - SLI reference of the SLO
- List<String>
- Tags of the SLO. Example:
Stage:DEV
Supporting Types
GetPlatformSloCriteria
GetPlatformSloCriteriaCriteriaDetail
- Target double
- Criteria target, example:
99.8 - Timeframe
From string - Timeframe from, example:
now-7d - Timeframe
To string - Timeframe to, example:
now - Warning double
- Criteria warning, example:
99.9
- Target float64
- Criteria target, example:
99.8 - Timeframe
From string - Timeframe from, example:
now-7d - Timeframe
To string - Timeframe to, example:
now - Warning float64
- Criteria warning, example:
99.9
- target number
- Criteria target, example:
99.8 - timeframe_
from string - Timeframe from, example:
now-7d - timeframe_
to string - Timeframe to, example:
now - warning number
- Criteria warning, example:
99.9
- target Double
- Criteria target, example:
99.8 - timeframe
From String - Timeframe from, example:
now-7d - timeframe
To String - Timeframe to, example:
now - warning Double
- Criteria warning, example:
99.9
- target number
- Criteria target, example:
99.8 - timeframe
From string - Timeframe from, example:
now-7d - timeframe
To string - Timeframe to, example:
now - warning number
- Criteria warning, example:
99.9
- target float
- Criteria target, example:
99.8 - timeframe_
from str - Timeframe from, example:
now-7d - timeframe_
to str - Timeframe to, example:
now - warning float
- Criteria warning, example:
99.9
- target Number
- Criteria target, example:
99.8 - timeframe
From String - Timeframe from, example:
now-7d - timeframe
To String - Timeframe to, example:
now - warning Number
- Criteria warning, example:
99.9
GetPlatformSloCustomSli
- Filter
Segments List<Pulumiverse.Dynatrace. Inputs. Get Platform Slo Custom Sli Filter Segment> - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- Indicator string
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- Filter
Segments []GetPlatform Slo Custom Sli Filter Segment - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- Indicator string
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- filter_
segments list(object) - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- indicator string
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- filter
Segments List<GetPlatform Slo Custom Sli Filter Segment> - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- indicator String
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- filter
Segments GetPlatform Slo Custom Sli Filter Segment[] - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- indicator string
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- filter_
segments Sequence[GetPlatform Slo Custom Sli Filter Segment] - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- indicator str
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
- filter
Segments List<Property Map> - A filter segment is identified by an ID. Each segment includes a list of variable definitions.
- indicator String
- Indicator of the custom SLI. Example:
timeseries sli=avg(dt.host.cpu.idle)
GetPlatformSloCustomSliFilterSegment
GetPlatformSloCustomSliFilterSegmentFilterSegment
- Id string
- The ID of the filter segment
- Variables
List<Pulumiverse.
Dynatrace. Inputs. Get Platform Slo Custom Sli Filter Segment Filter Segment Variable> - Defines a variable with a name and a list of values
- Id string
- The ID of the filter segment
- Variables
[]Get
Platform Slo Custom Sli Filter Segment Filter Segment Variable - Defines a variable with a name and a list of values
- id string
- The ID of the filter segment
- variables list(object)
- Defines a variable with a name and a list of values
- id String
- The ID of the filter segment
- variables
List<Get
Platform Slo Custom Sli Filter Segment Filter Segment Variable> - Defines a variable with a name and a list of values
- id string
- The ID of the filter segment
- variables
Get
Platform Slo Custom Sli Filter Segment Filter Segment Variable[] - Defines a variable with a name and a list of values
- id str
- The ID of the filter segment
- variables
Sequence[Get
Platform Slo Custom Sli Filter Segment Filter Segment Variable] - Defines a variable with a name and a list of values
- id String
- The ID of the filter segment
- variables List<Property Map>
- Defines a variable with a name and a list of values
GetPlatformSloCustomSliFilterSegmentFilterSegmentVariable
GetPlatformSloCustomSliFilterSegmentFilterSegmentVariableFilterSegmentVariable
GetPlatformSloSliReference
- Template
Id string - Template ID of the SLI reference
- Variables
List<Pulumiverse.
Dynatrace. Inputs. Get Platform Slo Sli Reference Variable> - Variables of the SLI reference
- Template
Id string - Template ID of the SLI reference
- Variables
[]Get
Platform Slo Sli Reference Variable - Variables of the SLI reference
- template_
id string - Template ID of the SLI reference
- variables list(object)
- Variables of the SLI reference
- template
Id String - Template ID of the SLI reference
- variables
List<Get
Platform Slo Sli Reference Variable> - Variables of the SLI reference
- template
Id string - Template ID of the SLI reference
- variables
Get
Platform Slo Sli Reference Variable[] - Variables of the SLI reference
- template_
id str - Template ID of the SLI reference
- variables
Sequence[Get
Platform Slo Sli Reference Variable] - Variables of the SLI reference
- template
Id String - Template ID of the SLI reference
- variables List<Property Map>
- Variables of the SLI reference
GetPlatformSloSliReferenceVariable
GetPlatformSloSliReferenceVariableSliReferenceVariable
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
Viewing docs for Dynatrace v0.37.1
published on Thursday, Jun 25, 2026 by Pulumiverse
published on Thursday, Jun 25, 2026 by Pulumiverse