ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getAppConfigFeature
Explore with Pulumi AI
Retrieve information about an existing IBM Cloud App Configuration feature. 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 features, see App Configuration concepts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const appConfigFeature = ibm.getAppConfigFeature({
environmentId: "environment_id",
featureId: "feature_id",
guid: "guid",
includes: "includes",
});
import pulumi
import pulumi_ibm as ibm
app_config_feature = ibm.get_app_config_feature(environment_id="environment_id",
feature_id="feature_id",
guid="guid",
includes="includes")
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.LookupAppConfigFeature(ctx, &ibm.LookupAppConfigFeatureArgs{
EnvironmentId: "environment_id",
FeatureId: "feature_id",
Guid: "guid",
Includes: pulumi.StringRef("includes"),
}, 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 appConfigFeature = Ibm.GetAppConfigFeature.Invoke(new()
{
EnvironmentId = "environment_id",
FeatureId = "feature_id",
Guid = "guid",
Includes = "includes",
});
});
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.GetAppConfigFeatureArgs;
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 appConfigFeature = IbmFunctions.getAppConfigFeature(GetAppConfigFeatureArgs.builder()
.environmentId("environment_id")
.featureId("feature_id")
.guid("guid")
.includes("includes")
.build());
}
}
variables:
appConfigFeature:
fn::invoke:
function: ibm:getAppConfigFeature
arguments:
environmentId: environment_id
featureId: feature_id
guid: guid
includes: includes
Using getAppConfigFeature
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 getAppConfigFeature(args: GetAppConfigFeatureArgs, opts?: InvokeOptions): Promise<GetAppConfigFeatureResult>
function getAppConfigFeatureOutput(args: GetAppConfigFeatureOutputArgs, opts?: InvokeOptions): Output<GetAppConfigFeatureResult>
def get_app_config_feature(environment_id: Optional[str] = None,
feature_id: Optional[str] = None,
guid: Optional[str] = None,
id: Optional[str] = None,
includes: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppConfigFeatureResult
def get_app_config_feature_output(environment_id: Optional[pulumi.Input[str]] = None,
feature_id: Optional[pulumi.Input[str]] = None,
guid: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
includes: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppConfigFeatureResult]
func LookupAppConfigFeature(ctx *Context, args *LookupAppConfigFeatureArgs, opts ...InvokeOption) (*LookupAppConfigFeatureResult, error)
func LookupAppConfigFeatureOutput(ctx *Context, args *LookupAppConfigFeatureOutputArgs, opts ...InvokeOption) LookupAppConfigFeatureResultOutput
> Note: This function is named LookupAppConfigFeature
in the Go SDK.
public static class GetAppConfigFeature
{
public static Task<GetAppConfigFeatureResult> InvokeAsync(GetAppConfigFeatureArgs args, InvokeOptions? opts = null)
public static Output<GetAppConfigFeatureResult> Invoke(GetAppConfigFeatureInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppConfigFeatureResult> getAppConfigFeature(GetAppConfigFeatureArgs args, InvokeOptions options)
public static Output<GetAppConfigFeatureResult> getAppConfigFeature(GetAppConfigFeatureArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getAppConfigFeature:getAppConfigFeature
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- Id string
- (String) The unique identifier of the feature flag resource.
- Includes string
- Include the associated collections in the response.
- Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- Id string
- (String) The unique identifier of the feature flag resource.
- Includes string
- Include the associated collections in the response.
- environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- guid String
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- id String
- (String) The unique identifier of the feature flag resource.
- includes String
- Include the associated collections in the response.
- environment
Id string - The environment ID.
- feature
Id string - The feature ID.
- guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- id string
- (String) The unique identifier of the feature flag resource.
- includes string
- Include the associated collections in the response.
- environment_
id str - The environment ID.
- feature_
id str - The feature ID.
- guid str
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- id str
- (String) The unique identifier of the feature flag resource.
- includes str
- Include the associated collections in the response.
- environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- guid String
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- id String
- (String) The unique identifier of the feature flag resource.
- includes String
- Include the associated collections in the response.
getAppConfigFeature Result
The following output properties are available:
- Collections
List<Get
App Config Feature Collection> - (List) List of collection ID representing the collections that are associated with the specified feature flag.
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Description string
- (String) Feature description.
- Disabled
Value string - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Enabled bool
- (String) The state of the feature flag.
- Enabled
Value string - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Environment
Id string - Feature
Id string - Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Guid string
- Href string
- (String) The feature flag URL.
- Id string
- (String) The unique identifier of the feature flag resource.
- Name string
- (String) The name of the collection.
- Rollout
Percentage double - (String) Rollout percentage for the segment rule.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Segment
Rules List<GetApp Config Feature Segment Rule> - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- (String) Tags associated with the feature.
- Type string
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- Includes string
- Collections
[]Get
App Config Feature Collection - (List) List of collection ID representing the collections that are associated with the specified feature flag.
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Description string
- (String) Feature description.
- Disabled
Value string - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Enabled bool
- (String) The state of the feature flag.
- Enabled
Value string - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Environment
Id string - Feature
Id string - Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Guid string
- Href string
- (String) The feature flag URL.
- Id string
- (String) The unique identifier of the feature flag resource.
- Name string
- (String) The name of the collection.
- Rollout
Percentage float64 - (String) Rollout percentage for the segment rule.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Segment
Rules []GetApp Config Feature Segment Rule - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- (String) Tags associated with the feature.
- Type string
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- Includes string
- collections
List<Get
App Config Feature Collection> - (List) List of collection ID representing the collections that are associated with the specified feature flag.
- created
Time String - (Timestamp) The creation time of the feature flag.
- description String
- (String) Feature description.
- disabled
Value String - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - enabled Boolean
- (String) The state of the feature flag.
- enabled
Value String - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - environment
Id String - feature
Id String - format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid String
- href String
- (String) The feature flag URL.
- id String
- (String) The unique identifier of the feature flag resource.
- name String
- (String) The name of the collection.
- rollout
Percentage Double - (String) Rollout percentage for the segment rule.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules List<GetApp Config Feature Segment Rule> - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- (String) Tags associated with the feature.
- type String
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
- includes String
- collections
Get
App Config Feature Collection[] - (List) List of collection ID representing the collections that are associated with the specified feature flag.
- created
Time string - (Timestamp) The creation time of the feature flag.
- description string
- (String) Feature description.
- disabled
Value string - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - enabled boolean
- (String) The state of the feature flag.
- enabled
Value string - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - environment
Id string - feature
Id string - format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid string
- href string
- (String) The feature flag URL.
- id string
- (String) The unique identifier of the feature flag resource.
- name string
- (String) The name of the collection.
- rollout
Percentage number - (String) Rollout percentage for the segment rule.
- segment
Exists boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules GetApp Config Feature Segment Rule[] - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- (String) Tags associated with the feature.
- type string
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- updated
Time string - (Timestamp) The last modified time of the feature flag data.
- includes string
- collections
Sequence[Get
App Config Feature Collection] - (List) List of collection ID representing the collections that are associated with the specified feature flag.
- created_
time str - (Timestamp) The creation time of the feature flag.
- description str
- (String) Feature description.
- disabled_
value str - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - enabled bool
- (String) The state of the feature flag.
- enabled_
value str - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - environment_
id str - feature_
id str - format str
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid str
- href str
- (String) The feature flag URL.
- id str
- (String) The unique identifier of the feature flag resource.
- name str
- (String) The name of the collection.
- rollout_
percentage float - (String) Rollout percentage for the segment rule.
- segment_
exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- segment_
rules Sequence[GetApp Config Feature Segment Rule] - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- str
- (String) Tags associated with the feature.
- type str
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- updated_
time str - (Timestamp) The last modified time of the feature flag data.
- includes str
- collections List<Property Map>
- (List) List of collection ID representing the collections that are associated with the specified feature flag.
- created
Time String - (Timestamp) The creation time of the feature flag.
- description String
- (String) Feature description.
- disabled
Value String - (String) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - enabled Boolean
- (String) The state of the feature flag.
- enabled
Value String - (String) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the
type
attribute. - environment
Id String - feature
Id String - format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid String
- href String
- (String) The feature flag URL.
- id String
- (String) The unique identifier of the feature flag resource.
- name String
- (String) The name of the collection.
- rollout
Percentage Number - (String) Rollout percentage for the segment rule.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules List<Property Map> - (List) Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- (String) Tags associated with the feature.
- type String
- (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
- includes String
Supporting Types
GetAppConfigFeatureCollection
- Collection
Id string - (String) The collection ID.
- Name string
- (String) The name of the collection.
- Collection
Id string - (String) The collection ID.
- Name string
- (String) The name of the collection.
- collection
Id String - (String) The collection ID.
- name String
- (String) The name of the collection.
- collection
Id string - (String) The collection ID.
- name string
- (String) The name of the collection.
- collection_
id str - (String) The collection ID.
- name str
- (String) The name of the collection.
- collection
Id String - (String) The collection ID.
- name String
- (String) The name of the collection.
GetAppConfigFeatureSegmentRule
- Order double
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- Rollout
Percentage double - (String) Rollout percentage for the segment rule.
- Rules
List<Get
App Config Feature Segment Rule Rule> - (List) The list of targeted segments.
- Value string
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
- Order float64
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- Rollout
Percentage float64 - (String) Rollout percentage for the segment rule.
- Rules
[]Get
App Config Feature Segment Rule Rule - (List) The list of targeted segments.
- Value string
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
- order Double
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rollout
Percentage Double - (String) Rollout percentage for the segment rule.
- rules
List<Get
App Config Feature Segment Rule Rule> - (List) The list of targeted segments.
- value String
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
- order number
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rollout
Percentage number - (String) Rollout percentage for the segment rule.
- rules
Get
App Config Feature Segment Rule Rule[] - (List) The list of targeted segments.
- value string
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
- order float
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rollout_
percentage float - (String) Rollout percentage for the segment rule.
- rules
Sequence[Get
App Config Feature Segment Rule Rule] - (List) The list of targeted segments.
- value str
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
- order Number
- (String) Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rollout
Percentage Number - (String) Rollout percentage for the segment rule.
- rules List<Property Map>
- (List) The list of targeted segments.
- value String
- (String) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute.
GetAppConfigFeatureSegmentRuleRule
- Segments List<string>
- (String) List of segment ids that are used for targeting using the rule.
- Segments []string
- (String) List of segment ids that are used for targeting using the rule.
- segments List<String>
- (String) List of segment ids that are used for targeting using the rule.
- segments string[]
- (String) List of segment ids that are used for targeting using the rule.
- segments Sequence[str]
- (String) List of segment ids that are used for targeting using the rule.
- segments List<String>
- (String) List of segment ids that are used for targeting using the rule.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.