1. Packages
  2. Ibm Provider
  3. API Docs
  4. getAppConfigFeature
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getAppConfigFeature

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    EnvironmentId string
    The environment ID.
    FeatureId 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.
    EnvironmentId string
    The environment ID.
    FeatureId 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.
    environmentId String
    The environment ID.
    featureId 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.
    environmentId string
    The environment ID.
    featureId 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.
    environmentId String
    The environment ID.
    featureId 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<GetAppConfigFeatureCollection>
    (List) List of collection ID representing the collections that are associated with the specified feature flag.
    CreatedTime string
    (Timestamp) The creation time of the feature flag.
    Description string
    (String) Feature description.
    DisabledValue 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.
    EnabledValue 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.
    EnvironmentId string
    FeatureId 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.
    RolloutPercentage double
    (String) Rollout percentage for the segment rule.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    SegmentRules List<GetAppConfigFeatureSegmentRule>
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    (String) Tags associated with the feature.
    Type string
    (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    Includes string
    Collections []GetAppConfigFeatureCollection
    (List) List of collection ID representing the collections that are associated with the specified feature flag.
    CreatedTime string
    (Timestamp) The creation time of the feature flag.
    Description string
    (String) Feature description.
    DisabledValue 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.
    EnabledValue 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.
    EnvironmentId string
    FeatureId 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.
    RolloutPercentage float64
    (String) Rollout percentage for the segment rule.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    SegmentRules []GetAppConfigFeatureSegmentRule
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    (String) Tags associated with the feature.
    Type string
    (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    Includes string
    collections List<GetAppConfigFeatureCollection>
    (List) List of collection ID representing the collections that are associated with the specified feature flag.
    createdTime String
    (Timestamp) The creation time of the feature flag.
    description String
    (String) Feature description.
    disabledValue 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.
    enabledValue 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.
    environmentId String
    featureId 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.
    rolloutPercentage Double
    (String) Rollout percentage for the segment rule.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules List<GetAppConfigFeatureSegmentRule>
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    (String) Tags associated with the feature.
    type String
    (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.
    includes String
    collections GetAppConfigFeatureCollection[]
    (List) List of collection ID representing the collections that are associated with the specified feature flag.
    createdTime string
    (Timestamp) The creation time of the feature flag.
    description string
    (String) Feature description.
    disabledValue 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.
    enabledValue 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.
    environmentId string
    featureId 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.
    rolloutPercentage number
    (String) Rollout percentage for the segment rule.
    segmentExists boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules GetAppConfigFeatureSegmentRule[]
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    tags string
    (String) Tags associated with the feature.
    type string
    (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
    updatedTime string
    (Timestamp) The last modified time of the feature flag data.
    includes string
    collections Sequence[GetAppConfigFeatureCollection]
    (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[GetAppConfigFeatureSegmentRule]
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    tags 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.
    createdTime String
    (Timestamp) The creation time of the feature flag.
    description String
    (String) Feature description.
    disabledValue 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.
    enabledValue 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.
    environmentId String
    featureId 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.
    rolloutPercentage Number
    (String) Rollout percentage for the segment rule.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules List<Property Map>
    (List) Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    (String) Tags associated with the feature.
    type String
    (String) Type of the feature (BOOLEAN, STRING, NUMERIC).
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.
    includes String

    Supporting Types

    GetAppConfigFeatureCollection

    CollectionId string
    (String) The collection ID.
    Name string
    (String) The name of the collection.
    CollectionId string
    (String) The collection ID.
    Name string
    (String) The name of the collection.
    collectionId String
    (String) The collection ID.
    name String
    (String) The name of the collection.
    collectionId 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.
    collectionId 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.
    RolloutPercentage double
    (String) Rollout percentage for the segment rule.
    Rules List<GetAppConfigFeatureSegmentRuleRule>
    (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.
    RolloutPercentage float64
    (String) Rollout percentage for the segment rule.
    Rules []GetAppConfigFeatureSegmentRuleRule
    (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.
    rolloutPercentage Double
    (String) Rollout percentage for the segment rule.
    rules List<GetAppConfigFeatureSegmentRuleRule>
    (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.
    rolloutPercentage number
    (String) Rollout percentage for the segment rule.
    rules GetAppConfigFeatureSegmentRuleRule[]
    (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[GetAppConfigFeatureSegmentRuleRule]
    (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.
    rolloutPercentage 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud