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",
});
import pulumi
import pulumi_ibm as ibm
app_config_environment = ibm.get_app_config_environment(environment_id="environment_id",
expand="expand",
guid="guid")
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
})
}
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",
});
});
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());
}
}
variables:
appConfigEnvironment:
fn::invoke:
function: ibm:getAppConfigEnvironment
arguments:
environmentId: environment_id
expand: expand
guid: guid
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>
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]
func LookupAppConfigEnvironment(ctx *Context, args *LookupAppConfigEnvironmentArgs, opts ...InvokeOption) (*LookupAppConfigEnvironmentResult, error)
func LookupAppConfigEnvironmentOutput(ctx *Context, args *LookupAppConfigEnvironmentOutputArgs, opts ...InvokeOption) LookupAppConfigEnvironmentResultOutput
> 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)
}
public static CompletableFuture<GetAppConfigEnvironmentResult> getAppConfigEnvironment(GetAppConfigEnvironmentArgs args, InvokeOptions options)
public static Output<GetAppConfigEnvironmentResult> getAppConfigEnvironment(GetAppConfigEnvironmentArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getAppConfigEnvironment:getAppConfigEnvironment
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Id string - Environment ID.
- Guid 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.
- Environment
Id string - Environment ID.
- Guid 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.
- environment
Id String - Environment ID.
- guid 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 string - Environment ID.
- guid 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 str - Environment ID.
- guid 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.
- environment
Id String - Environment ID.
- guid 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:
- Color
Code string - (String) The color code to distinguish the environment. The Hexadecimal code for the color. For example
#FF0000
forred
. - Created
Time string - (Timestamp) Creation time of the environment.
- Description string
- (String) Environment description.
- Environment
Id string - Guid string
- Href string
- (String) Environment URL.
- Id string
- (String) The unique identifier of the app-config-environment.
- Name string
- (String) Environment name.
- string
- (String) Tags associated with the environment.
- Updated
Time string - (Timestamp) Last modified time of the environment data.
- Expand bool
- Color
Code string - (String) The color code to distinguish the environment. The Hexadecimal code for the color. For example
#FF0000
forred
. - Created
Time string - (Timestamp) Creation time of the environment.
- Description string
- (String) Environment description.
- Environment
Id string - Guid string
- Href string
- (String) Environment URL.
- Id string
- (String) The unique identifier of the app-config-environment.
- Name string
- (String) Environment name.
- string
- (String) Tags associated with the environment.
- Updated
Time string - (Timestamp) Last modified time of the environment data.
- Expand bool
- color
Code String - (String) The color code to distinguish the environment. The Hexadecimal code for the color. For example
#FF0000
forred
. - created
Time String - (Timestamp) Creation time of the environment.
- description String
- (String) Environment description.
- environment
Id String - guid String
- href String
- (String) Environment URL.
- id String
- (String) The unique identifier of the app-config-environment.
- name String
- (String) Environment name.
- String
- (String) Tags associated with the environment.
- updated
Time String - (Timestamp) Last modified time of the environment data.
- expand Boolean
- color
Code string - (String) The color code to distinguish the environment. The Hexadecimal code for the color. For example
#FF0000
forred
. - created
Time string - (Timestamp) Creation time of the environment.
- description string
- (String) Environment description.
- environment
Id string - guid string
- href string
- (String) Environment URL.
- id string
- (String) The unique identifier of the app-config-environment.
- name string
- (String) Environment name.
- string
- (String) Tags associated with the environment.
- updated
Time 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
forred
. - 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.
- str
- (String) Tags associated with the environment.
- updated_
time str - (Timestamp) Last modified time of the environment data.
- expand bool
- color
Code String - (String) The color code to distinguish the environment. The Hexadecimal code for the color. For example
#FF0000
forred
. - created
Time String - (Timestamp) Creation time of the environment.
- description String
- (String) Environment description.
- environment
Id String - guid String
- href String
- (String) Environment URL.
- id String
- (String) The unique identifier of the app-config-environment.
- name String
- (String) Environment name.
- String
- (String) Tags associated with the environment.
- updated
Time 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.