Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse
dynatrace.getGeoCountries
Explore with Pulumi AI
The dynatrace.getGeoCountries
data source retrieves the list of countries and their codes.
Geographic regions API: GET countries - https://docs.dynatrace.com/docs/shortlink/api-v2-rum-geographic-regions-get-countries
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumi/dynatrace";
const example = dynatrace.getGeoCountries({});
export const test = example;
import pulumi
import pulumi_dynatrace as dynatrace
example = dynatrace.get_geo_countries()
pulumi.export("test", 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.GetGeoCountries(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("test", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumi.Dynatrace;
return await Deployment.RunAsync(() =>
{
var example = Dynatrace.GetGeoCountries.Invoke();
return new Dictionary<string, object?>
{
["test"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DynatraceFunctions;
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.getGeoCountries();
ctx.export("test", example.applyValue(getGeoCountriesResult -> getGeoCountriesResult));
}
}
variables:
example:
fn::invoke:
function: dynatrace:getGeoCountries
arguments: {}
outputs:
test: ${example}
Using getGeoCountries
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 getGeoCountries(opts?: InvokeOptions): Promise<GetGeoCountriesResult>
function getGeoCountriesOutput(opts?: InvokeOptions): Output<GetGeoCountriesResult>
def get_geo_countries(opts: Optional[InvokeOptions] = None) -> GetGeoCountriesResult
def get_geo_countries_output(opts: Optional[InvokeOptions] = None) -> Output[GetGeoCountriesResult]
func GetGeoCountries(ctx *Context, opts ...InvokeOption) (*GetGeoCountriesResult, error)
func GetGeoCountriesOutput(ctx *Context, opts ...InvokeOption) GetGeoCountriesResultOutput
> Note: This function is named GetGeoCountries
in the Go SDK.
public static class GetGeoCountries
{
public static Task<GetGeoCountriesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetGeoCountriesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetGeoCountriesResult> getGeoCountries(InvokeOptions options)
public static Output<GetGeoCountriesResult> getGeoCountries(InvokeOptions options)
fn::invoke:
function: dynatrace:index/getGeoCountries:getGeoCountries
arguments:
# arguments dictionary
getGeoCountries Result
The following output properties are available:
- Countries
List<Pulumiverse.
Dynatrace. Outputs. Get Geo Countries Country> - Id string
- The provider-assigned unique ID for this managed resource.
- Countries
[]Get
Geo Countries Country - Id string
- The provider-assigned unique ID for this managed resource.
- countries
List<Get
Geo Countries Country> - id String
- The provider-assigned unique ID for this managed resource.
- countries
Get
Geo Countries Country[] - id string
- The provider-assigned unique ID for this managed resource.
- countries
Sequence[Get
Geo Countries Country] - id str
- The provider-assigned unique ID for this managed resource.
- countries List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetGeoCountriesCountry
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.