1. Packages
  2. Ibm Provider
  3. API Docs
  4. getAppConfigEnvironment
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getAppConfigEnvironment

Explore with Pulumi AI

Retrieve information about an existing IBM Cloud App Configuration environment. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about App Configuration environment, see Managing access levels for App Configuration environments.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const appConfigEnvironment = ibm.getAppConfigEnvironment({
    environmentId: "environment_id",
    expand: "expand",
    guid: "guid",
});
Copy
import pulumi
import pulumi_ibm as ibm

app_config_environment = ibm.get_app_config_environment(environment_id="environment_id",
    expand="expand",
    guid="guid")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupAppConfigEnvironment(ctx, &ibm.LookupAppConfigEnvironmentArgs{
			EnvironmentId: "environment_id",
			Expand:        pulumi.BoolRef("expand"),
			Guid:          "guid",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var appConfigEnvironment = Ibm.GetAppConfigEnvironment.Invoke(new()
    {
        EnvironmentId = "environment_id",
        Expand = "expand",
        Guid = "guid",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetAppConfigEnvironmentArgs;
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 appConfigEnvironment = IbmFunctions.getAppConfigEnvironment(GetAppConfigEnvironmentArgs.builder()
            .environmentId("environment_id")
            .expand("expand")
            .guid("guid")
            .build());

    }
}
Copy
variables:
  appConfigEnvironment:
    fn::invoke:
      function: ibm:getAppConfigEnvironment
      arguments:
        environmentId: environment_id
        expand: expand
        guid: guid
Copy

Using getAppConfigEnvironment

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 getAppConfigEnvironment(args: GetAppConfigEnvironmentArgs, opts?: InvokeOptions): Promise<GetAppConfigEnvironmentResult>
function getAppConfigEnvironmentOutput(args: GetAppConfigEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetAppConfigEnvironmentResult>
Copy
def get_app_config_environment(environment_id: Optional[str] = None,
                               expand: Optional[bool] = None,
                               guid: Optional[str] = None,
                               id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAppConfigEnvironmentResult
def get_app_config_environment_output(environment_id: Optional[pulumi.Input[str]] = None,
                               expand: Optional[pulumi.Input[bool]] = None,
                               guid: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAppConfigEnvironmentResult]
Copy
func LookupAppConfigEnvironment(ctx *Context, args *LookupAppConfigEnvironmentArgs, opts ...InvokeOption) (*LookupAppConfigEnvironmentResult, error)
func LookupAppConfigEnvironmentOutput(ctx *Context, args *LookupAppConfigEnvironmentOutputArgs, opts ...InvokeOption) LookupAppConfigEnvironmentResultOutput
Copy

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

public static class GetAppConfigEnvironment 
{
    public static Task<GetAppConfigEnvironmentResult> InvokeAsync(GetAppConfigEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetAppConfigEnvironmentResult> Invoke(GetAppConfigEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAppConfigEnvironmentResult> getAppConfigEnvironment(GetAppConfigEnvironmentArgs args, InvokeOptions options)
public static Output<GetAppConfigEnvironmentResult> getAppConfigEnvironment(GetAppConfigEnvironmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getAppConfigEnvironment:getAppConfigEnvironment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnvironmentId This property is required. string
Environment ID.
Guid This property is required. string
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
Expand bool
If set to true, returns expanded view of the resource details.
Id string
(String) The unique identifier of the app-config-environment.
EnvironmentId This property is required. string
Environment ID.
Guid This property is required. string
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
Expand bool
If set to true, returns expanded view of the resource details.
Id string
(String) The unique identifier of the app-config-environment.
environmentId This property is required. String
Environment ID.
guid This property is required. String
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
expand Boolean
If set to true, returns expanded view of the resource details.
id String
(String) The unique identifier of the app-config-environment.
environmentId This property is required. string
Environment ID.
guid This property is required. string
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
expand boolean
If set to true, returns expanded view of the resource details.
id string
(String) The unique identifier of the app-config-environment.
environment_id This property is required. str
Environment ID.
guid This property is required. str
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
expand bool
If set to true, returns expanded view of the resource details.
id str
(String) The unique identifier of the app-config-environment.
environmentId This property is required. String
Environment ID.
guid This property is required. String
GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
expand Boolean
If set to true, returns expanded view of the resource details.
id String
(String) The unique identifier of the app-config-environment.

getAppConfigEnvironment Result

The following output properties are available:

ColorCode string
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
CreatedTime string
(Timestamp) Creation time of the environment.
Description string
(String) Environment description.
EnvironmentId string
Guid string
Href string
(String) Environment URL.
Id string
(String) The unique identifier of the app-config-environment.
Name string
(String) Environment name.
Tags string
(String) Tags associated with the environment.
UpdatedTime string
(Timestamp) Last modified time of the environment data.
Expand bool
ColorCode string
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
CreatedTime string
(Timestamp) Creation time of the environment.
Description string
(String) Environment description.
EnvironmentId string
Guid string
Href string
(String) Environment URL.
Id string
(String) The unique identifier of the app-config-environment.
Name string
(String) Environment name.
Tags string
(String) Tags associated with the environment.
UpdatedTime string
(Timestamp) Last modified time of the environment data.
Expand bool
colorCode String
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
createdTime String
(Timestamp) Creation time of the environment.
description String
(String) Environment description.
environmentId String
guid String
href String
(String) Environment URL.
id String
(String) The unique identifier of the app-config-environment.
name String
(String) Environment name.
tags String
(String) Tags associated with the environment.
updatedTime String
(Timestamp) Last modified time of the environment data.
expand Boolean
colorCode string
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
createdTime string
(Timestamp) Creation time of the environment.
description string
(String) Environment description.
environmentId string
guid string
href string
(String) Environment URL.
id string
(String) The unique identifier of the app-config-environment.
name string
(String) Environment name.
tags string
(String) Tags associated with the environment.
updatedTime string
(Timestamp) Last modified time of the environment data.
expand boolean
color_code str
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
created_time str
(Timestamp) Creation time of the environment.
description str
(String) Environment description.
environment_id str
guid str
href str
(String) Environment URL.
id str
(String) The unique identifier of the app-config-environment.
name str
(String) Environment name.
tags str
(String) Tags associated with the environment.
updated_time str
(Timestamp) Last modified time of the environment data.
expand bool
colorCode String
(String) The color code to distinguish the environment. The Hexadecimal code for the color. For example #FF0000 for red.
createdTime String
(Timestamp) Creation time of the environment.
description String
(String) Environment description.
environmentId String
guid String
href String
(String) Environment URL.
id String
(String) The unique identifier of the app-config-environment.
name String
(String) Environment name.
tags String
(String) Tags associated with the environment.
updatedTime String
(Timestamp) Last modified time of the environment data.
expand Boolean

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.