1. Packages
  2. Dynatrace
  3. API Docs
  4. getRemoteEnvironments
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.getRemoteEnvironments

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    The remote environments data source allows retrieval of all remote environments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumi/dynatrace";
    
    const example = dynatrace.getRemoteEnvironments({});
    export const remoteEnvironments = example;
    
    import pulumi
    import pulumi_dynatrace as dynatrace
    
    example = dynatrace.get_remote_environments()
    pulumi.export("remoteEnvironments", 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.LookupRemoteEnvironments(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("remoteEnvironments", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumi.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Dynatrace.GetRemoteEnvironments.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["remoteEnvironments"] = 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.getRemoteEnvironments();
    
            ctx.export("remoteEnvironments", example.applyValue(getRemoteEnvironmentsResult -> getRemoteEnvironmentsResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: dynatrace:getRemoteEnvironments
          Arguments: {}
    outputs:
      remoteEnvironments: ${example}
    

    Using getRemoteEnvironments

    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 getRemoteEnvironments(opts?: InvokeOptions): Promise<GetRemoteEnvironmentsResult>
    function getRemoteEnvironmentsOutput(opts?: InvokeOptions): Output<GetRemoteEnvironmentsResult>
    def get_remote_environments(opts: Optional[InvokeOptions] = None) -> GetRemoteEnvironmentsResult
    def get_remote_environments_output(opts: Optional[InvokeOptions] = None) -> Output[GetRemoteEnvironmentsResult]
    func LookupRemoteEnvironments(ctx *Context, opts ...InvokeOption) (*LookupRemoteEnvironmentsResult, error)
    func LookupRemoteEnvironmentsOutput(ctx *Context, opts ...InvokeOption) LookupRemoteEnvironmentsResultOutput

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

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

    getRemoteEnvironments Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RemoteEnvironments List<Pulumiverse.Dynatrace.Outputs.GetRemoteEnvironmentsRemoteEnvironment>
    Id string
    The provider-assigned unique ID for this managed resource.
    RemoteEnvironments []GetRemoteEnvironmentsRemoteEnvironment
    id String
    The provider-assigned unique ID for this managed resource.
    remoteEnvironments List<GetRemoteEnvironmentsRemoteEnvironment>
    id string
    The provider-assigned unique ID for this managed resource.
    remoteEnvironments GetRemoteEnvironmentsRemoteEnvironment[]
    id str
    The provider-assigned unique ID for this managed resource.
    remote_environments Sequence[GetRemoteEnvironmentsRemoteEnvironment]
    id String
    The provider-assigned unique ID for this managed resource.
    remoteEnvironments List<Property Map>

    Supporting Types

    GetRemoteEnvironmentsRemoteEnvironment

    Name string
    Name
    NetworkScope string
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    Token string
    Provide a valid token created on the remote environment.
    Uri string
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.
    Name string
    Name
    NetworkScope string
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    Token string
    Provide a valid token created on the remote environment.
    Uri string
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.
    name String
    Name
    networkScope String
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    token String
    Provide a valid token created on the remote environment.
    uri String
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.
    name string
    Name
    networkScope string
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    token string
    Provide a valid token created on the remote environment.
    uri string
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.
    name str
    Name
    network_scope str
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    token str
    Provide a valid token created on the remote environment.
    uri str
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.
    name String
    Name
    networkScope String
    Possible Values: CLUSTER, EXTERNAL, INTERNAL
    token String
    Provide a valid token created on the remote environment.
    uri String
    Specify the full URI to the remote environment. Your local environment will have to be able to connect this URI on a network level.

    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.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse