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

ibm.AppConfigFeature

Explore with Pulumi AI

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

    Create, update, or delete an environment by using IBM Cloud™ App Configuration feature flag. For more information, about App Configuration feature flag, see Feature flags.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    // Example 2
    const appConfigFeature = new ibm.AppConfigFeature("appConfigFeature", {
        collections: [{
            collectionId: "collection_id",
        }],
        disabledValue: "disabled_value",
        enabled: true,
        enabledValue: "enabled_value",
        environmentId: "environment_id",
        featureId: "feature_id",
        format: "format",
        guid: "guid",
        rolloutPercentage: "rollout_percentage",
        tags: "tags",
        type: "type",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    # Example 2
    app_config_feature = ibm.AppConfigFeature("appConfigFeature",
        collections=[{
            "collection_id": "collection_id",
        }],
        disabled_value="disabled_value",
        enabled=True,
        enabled_value="enabled_value",
        environment_id="environment_id",
        feature_id="feature_id",
        format="format",
        guid="guid",
        rollout_percentage="rollout_percentage",
        tags="tags",
        type="type")
    
    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 {
    		// Example 2
    		_, err := ibm.NewAppConfigFeature(ctx, "appConfigFeature", &ibm.AppConfigFeatureArgs{
    			Collections: ibm.AppConfigFeatureCollectionArray{
    				&ibm.AppConfigFeatureCollectionArgs{
    					CollectionId: pulumi.String("collection_id"),
    				},
    			},
    			DisabledValue:     pulumi.String("disabled_value"),
    			Enabled:           pulumi.Bool(true),
    			EnabledValue:      pulumi.String("enabled_value"),
    			EnvironmentId:     pulumi.String("environment_id"),
    			FeatureId:         pulumi.String("feature_id"),
    			Format:            pulumi.String("format"),
    			Guid:              pulumi.String("guid"),
    			RolloutPercentage: pulumi.Float64("rollout_percentage"),
    			Tags:              pulumi.String("tags"),
    			Type:              pulumi.String("type"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        // Example 2
        var appConfigFeature = new Ibm.AppConfigFeature("appConfigFeature", new()
        {
            Collections = new[]
            {
                new Ibm.Inputs.AppConfigFeatureCollectionArgs
                {
                    CollectionId = "collection_id",
                },
            },
            DisabledValue = "disabled_value",
            Enabled = true,
            EnabledValue = "enabled_value",
            EnvironmentId = "environment_id",
            FeatureId = "feature_id",
            Format = "format",
            Guid = "guid",
            RolloutPercentage = "rollout_percentage",
            Tags = "tags",
            Type = "type",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppConfigFeature;
    import com.pulumi.ibm.AppConfigFeatureArgs;
    import com.pulumi.ibm.inputs.AppConfigFeatureCollectionArgs;
    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) {
            // Example 2
            var appConfigFeature = new AppConfigFeature("appConfigFeature", AppConfigFeatureArgs.builder()
                .collections(AppConfigFeatureCollectionArgs.builder()
                    .collectionId("collection_id")
                    .build())
                .disabledValue("disabled_value")
                .enabled(true)
                .enabledValue("enabled_value")
                .environmentId("environment_id")
                .featureId("feature_id")
                .format("format")
                .guid("guid")
                .rolloutPercentage("rollout_percentage")
                .tags("tags")
                .type("type")
                .build());
    
        }
    }
    
    resources:
      # Example 2
      appConfigFeature:
        type: ibm:AppConfigFeature
        properties:
          collections:
            - collectionId: collection_id
          disabledValue: disabled_value
          enabled: true
          enabledValue: enabled_value
          environmentId: environment_id
          featureId: feature_id
          format: format
          guid: guid
          rolloutPercentage: rollout_percentage
          tags: tags
          type: type
    

    Create AppConfigFeature Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppConfigFeature(name: string, args: AppConfigFeatureArgs, opts?: CustomResourceOptions);
    @overload
    def AppConfigFeature(resource_name: str,
                         args: AppConfigFeatureArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppConfigFeature(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         environment_id: Optional[str] = None,
                         guid: Optional[str] = None,
                         type: Optional[str] = None,
                         disabled_value: Optional[str] = None,
                         feature_id: Optional[str] = None,
                         enabled_value: Optional[str] = None,
                         enabled: Optional[bool] = None,
                         name: Optional[str] = None,
                         app_config_feature_id: Optional[str] = None,
                         collections: Optional[Sequence[AppConfigFeatureCollectionArgs]] = None,
                         format: Optional[str] = None,
                         rollout_percentage: Optional[float] = None,
                         segment_rules: Optional[Sequence[AppConfigFeatureSegmentRuleArgs]] = None,
                         tags: Optional[str] = None,
                         description: Optional[str] = None)
    func NewAppConfigFeature(ctx *Context, name string, args AppConfigFeatureArgs, opts ...ResourceOption) (*AppConfigFeature, error)
    public AppConfigFeature(string name, AppConfigFeatureArgs args, CustomResourceOptions? opts = null)
    public AppConfigFeature(String name, AppConfigFeatureArgs args)
    public AppConfigFeature(String name, AppConfigFeatureArgs args, CustomResourceOptions options)
    
    type: ibm:AppConfigFeature
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppConfigFeatureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppConfigFeatureArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppConfigFeatureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppConfigFeatureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppConfigFeatureArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appConfigFeatureResource = new Ibm.AppConfigFeature("appConfigFeatureResource", new()
    {
        EnvironmentId = "string",
        Guid = "string",
        Type = "string",
        DisabledValue = "string",
        FeatureId = "string",
        EnabledValue = "string",
        Enabled = false,
        Name = "string",
        AppConfigFeatureId = "string",
        Collections = new[]
        {
            new Ibm.Inputs.AppConfigFeatureCollectionArgs
            {
                CollectionId = "string",
            },
        },
        Format = "string",
        RolloutPercentage = 0,
        SegmentRules = new[]
        {
            new Ibm.Inputs.AppConfigFeatureSegmentRuleArgs
            {
                Order = 0,
                Rules = new[]
                {
                    new Ibm.Inputs.AppConfigFeatureSegmentRuleRuleArgs
                    {
                        Segments = new[]
                        {
                            "string",
                        },
                    },
                },
                Value = "string",
                RolloutPercentage = 0,
            },
        },
        Tags = "string",
        Description = "string",
    });
    
    example, err := ibm.NewAppConfigFeature(ctx, "appConfigFeatureResource", &ibm.AppConfigFeatureArgs{
    	EnvironmentId:      pulumi.String("string"),
    	Guid:               pulumi.String("string"),
    	Type:               pulumi.String("string"),
    	DisabledValue:      pulumi.String("string"),
    	FeatureId:          pulumi.String("string"),
    	EnabledValue:       pulumi.String("string"),
    	Enabled:            pulumi.Bool(false),
    	Name:               pulumi.String("string"),
    	AppConfigFeatureId: pulumi.String("string"),
    	Collections: ibm.AppConfigFeatureCollectionArray{
    		&ibm.AppConfigFeatureCollectionArgs{
    			CollectionId: pulumi.String("string"),
    		},
    	},
    	Format:            pulumi.String("string"),
    	RolloutPercentage: pulumi.Float64(0),
    	SegmentRules: ibm.AppConfigFeatureSegmentRuleArray{
    		&ibm.AppConfigFeatureSegmentRuleArgs{
    			Order: pulumi.Float64(0),
    			Rules: ibm.AppConfigFeatureSegmentRuleRuleArray{
    				&ibm.AppConfigFeatureSegmentRuleRuleArgs{
    					Segments: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    			Value:             pulumi.String("string"),
    			RolloutPercentage: pulumi.Float64(0),
    		},
    	},
    	Tags:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var appConfigFeatureResource = new AppConfigFeature("appConfigFeatureResource", AppConfigFeatureArgs.builder()
        .environmentId("string")
        .guid("string")
        .type("string")
        .disabledValue("string")
        .featureId("string")
        .enabledValue("string")
        .enabled(false)
        .name("string")
        .appConfigFeatureId("string")
        .collections(AppConfigFeatureCollectionArgs.builder()
            .collectionId("string")
            .build())
        .format("string")
        .rolloutPercentage(0)
        .segmentRules(AppConfigFeatureSegmentRuleArgs.builder()
            .order(0)
            .rules(AppConfigFeatureSegmentRuleRuleArgs.builder()
                .segments("string")
                .build())
            .value("string")
            .rolloutPercentage(0)
            .build())
        .tags("string")
        .description("string")
        .build());
    
    app_config_feature_resource = ibm.AppConfigFeature("appConfigFeatureResource",
        environment_id="string",
        guid="string",
        type="string",
        disabled_value="string",
        feature_id="string",
        enabled_value="string",
        enabled=False,
        name="string",
        app_config_feature_id="string",
        collections=[{
            "collection_id": "string",
        }],
        format="string",
        rollout_percentage=0,
        segment_rules=[{
            "order": 0,
            "rules": [{
                "segments": ["string"],
            }],
            "value": "string",
            "rollout_percentage": 0,
        }],
        tags="string",
        description="string")
    
    const appConfigFeatureResource = new ibm.AppConfigFeature("appConfigFeatureResource", {
        environmentId: "string",
        guid: "string",
        type: "string",
        disabledValue: "string",
        featureId: "string",
        enabledValue: "string",
        enabled: false,
        name: "string",
        appConfigFeatureId: "string",
        collections: [{
            collectionId: "string",
        }],
        format: "string",
        rolloutPercentage: 0,
        segmentRules: [{
            order: 0,
            rules: [{
                segments: ["string"],
            }],
            value: "string",
            rolloutPercentage: 0,
        }],
        tags: "string",
        description: "string",
    });
    
    type: ibm:AppConfigFeature
    properties:
        appConfigFeatureId: string
        collections:
            - collectionId: string
        description: string
        disabledValue: string
        enabled: false
        enabledValue: string
        environmentId: string
        featureId: string
        format: string
        guid: string
        name: string
        rolloutPercentage: 0
        segmentRules:
            - order: 0
              rolloutPercentage: 0
              rules:
                - segments:
                    - string
              value: string
        tags: string
        type: string
    

    AppConfigFeature Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppConfigFeature resource accepts the following input properties:

    DisabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnvironmentId string
    The environment ID.
    FeatureId string
    The feature ID.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    AppConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    Collections List<AppConfigFeatureCollection>
    The list of collection ID representing the collections that are associated with the specified feature flag.
    Description string
    The feature description.
    Enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    Name string
    The feature name.
    RolloutPercentage double
    Rollout percentage of the feature.
    SegmentRules List<AppConfigFeatureSegmentRule>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    Tags associated with the feature.
    DisabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnvironmentId string
    The environment ID.
    FeatureId string
    The feature ID.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    AppConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    Collections []AppConfigFeatureCollectionArgs
    The list of collection ID representing the collections that are associated with the specified feature flag.
    Description string
    The feature description.
    Enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    Name string
    The feature name.
    RolloutPercentage float64
    Rollout percentage of the feature.
    SegmentRules []AppConfigFeatureSegmentRuleArgs
    Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    Tags associated with the feature.
    disabledValue String
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabledValue String
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId String
    The environment ID.
    featureId String
    The feature ID.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    type String
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    appConfigFeatureId String
    (String) The unique identifier of the Feature flag resource.
    collections List<AppConfigFeatureCollection>
    The list of collection ID representing the collections that are associated with the specified feature flag.
    description String
    The feature description.
    enabled Boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    name String
    The feature name.
    rolloutPercentage Double
    Rollout percentage of the feature.
    segmentRules List<AppConfigFeatureSegmentRule>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    Tags associated with the feature.
    disabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId string
    The environment ID.
    featureId string
    The feature ID.
    guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    appConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    collections AppConfigFeatureCollection[]
    The list of collection ID representing the collections that are associated with the specified feature flag.
    description string
    The feature description.
    enabled boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    name string
    The feature name.
    rolloutPercentage number
    Rollout percentage of the feature.
    segmentRules AppConfigFeatureSegmentRule[]
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags string
    Tags associated with the feature.
    disabled_value str
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabled_value str
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environment_id str
    The environment ID.
    feature_id str
    The feature ID.
    guid str
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    type str
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    app_config_feature_id str
    (String) The unique identifier of the Feature flag resource.
    collections Sequence[AppConfigFeatureCollectionArgs]
    The list of collection ID representing the collections that are associated with the specified feature flag.
    description str
    The feature description.
    enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    name str
    The feature name.
    rollout_percentage float
    Rollout percentage of the feature.
    segment_rules Sequence[AppConfigFeatureSegmentRuleArgs]
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags str
    Tags associated with the feature.
    disabledValue String
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabledValue String
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId String
    The environment ID.
    featureId String
    The feature ID.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    type String
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    appConfigFeatureId String
    (String) The unique identifier of the Feature flag resource.
    collections List<Property Map>
    The list of collection ID representing the collections that are associated with the specified feature flag.
    description String
    The feature description.
    enabled Boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    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.
    name String
    The feature name.
    rolloutPercentage Number
    Rollout percentage of the feature.
    segmentRules List<Property Map>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    Tags associated with the feature.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppConfigFeature resource produces the following output properties:

    CreatedTime string
    (Timestamp) The creation time of the feature flag.
    Href string
    (String) The feature flag URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    CreatedTime string
    (Timestamp) The creation time of the feature flag.
    Href string
    (String) The feature flag URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    createdTime String
    (Timestamp) The creation time of the feature flag.
    href String
    (String) The feature flag URL.
    id String
    The provider-assigned unique ID for this managed resource.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.
    createdTime string
    (Timestamp) The creation time of the feature flag.
    href string
    (String) The feature flag URL.
    id string
    The provider-assigned unique ID for this managed resource.
    segmentExists boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    updatedTime string
    (Timestamp) The last modified time of the feature flag data.
    created_time str
    (Timestamp) The creation time of the feature flag.
    href str
    (String) The feature flag URL.
    id str
    The provider-assigned unique ID for this managed resource.
    segment_exists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    updated_time str
    (Timestamp) The last modified time of the feature flag data.
    createdTime String
    (Timestamp) The creation time of the feature flag.
    href String
    (String) The feature flag URL.
    id String
    The provider-assigned unique ID for this managed resource.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.

    Look up Existing AppConfigFeature Resource

    Get an existing AppConfigFeature resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppConfigFeatureState, opts?: CustomResourceOptions): AppConfigFeature
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_config_feature_id: Optional[str] = None,
            collections: Optional[Sequence[AppConfigFeatureCollectionArgs]] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            disabled_value: Optional[str] = None,
            enabled: Optional[bool] = None,
            enabled_value: Optional[str] = None,
            environment_id: Optional[str] = None,
            feature_id: Optional[str] = None,
            format: Optional[str] = None,
            guid: Optional[str] = None,
            href: Optional[str] = None,
            name: Optional[str] = None,
            rollout_percentage: Optional[float] = None,
            segment_exists: Optional[bool] = None,
            segment_rules: Optional[Sequence[AppConfigFeatureSegmentRuleArgs]] = None,
            tags: Optional[str] = None,
            type: Optional[str] = None,
            updated_time: Optional[str] = None) -> AppConfigFeature
    func GetAppConfigFeature(ctx *Context, name string, id IDInput, state *AppConfigFeatureState, opts ...ResourceOption) (*AppConfigFeature, error)
    public static AppConfigFeature Get(string name, Input<string> id, AppConfigFeatureState? state, CustomResourceOptions? opts = null)
    public static AppConfigFeature get(String name, Output<String> id, AppConfigFeatureState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppConfigFeature    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    Collections List<AppConfigFeatureCollection>
    The 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
    The feature description.
    DisabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    Enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    EnabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnvironmentId string
    The environment ID.
    FeatureId string
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Href string
    (String) The feature flag URL.
    Name string
    The feature name.
    RolloutPercentage double
    Rollout percentage of the feature.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    SegmentRules List<AppConfigFeatureSegmentRule>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    Tags associated with the feature.
    Type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    AppConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    Collections []AppConfigFeatureCollectionArgs
    The 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
    The feature description.
    DisabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    Enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    EnabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    EnvironmentId string
    The environment ID.
    FeatureId string
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Href string
    (String) The feature flag URL.
    Name string
    The feature name.
    RolloutPercentage float64
    Rollout percentage of the feature.
    SegmentExists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    SegmentRules []AppConfigFeatureSegmentRuleArgs
    Specify the targeting rules that is used to set different feature flag values for different segments.
    Tags string
    Tags associated with the feature.
    Type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    UpdatedTime string
    (Timestamp) The last modified time of the feature flag data.
    appConfigFeatureId String
    (String) The unique identifier of the Feature flag resource.
    collections List<AppConfigFeatureCollection>
    The 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
    The feature description.
    disabledValue String
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabled Boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    enabledValue String
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId String
    The environment ID.
    featureId String
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href String
    (String) The feature flag URL.
    name String
    The feature name.
    rolloutPercentage Double
    Rollout percentage of the feature.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules List<AppConfigFeatureSegmentRule>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    Tags associated with the feature.
    type String
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.
    appConfigFeatureId string
    (String) The unique identifier of the Feature flag resource.
    collections AppConfigFeatureCollection[]
    The 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
    The feature description.
    disabledValue string
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabled boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    enabledValue string
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId string
    The environment ID.
    featureId string
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href string
    (String) The feature flag URL.
    name string
    The feature name.
    rolloutPercentage number
    Rollout percentage of the feature.
    segmentExists boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules AppConfigFeatureSegmentRule[]
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags string
    Tags associated with the feature.
    type string
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    updatedTime string
    (Timestamp) The last modified time of the feature flag data.
    app_config_feature_id str
    (String) The unique identifier of the Feature flag resource.
    collections Sequence[AppConfigFeatureCollectionArgs]
    The 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
    The feature description.
    disabled_value str
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabled bool
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    enabled_value str
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environment_id str
    The environment ID.
    feature_id str
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href str
    (String) The feature flag URL.
    name str
    The feature name.
    rollout_percentage float
    Rollout percentage of the feature.
    segment_exists bool
    (String) Denotes if the targeting rules are specified for the feature flag.
    segment_rules Sequence[AppConfigFeatureSegmentRuleArgs]
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags str
    Tags associated with the feature.
    type str
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    updated_time str
    (Timestamp) The last modified time of the feature flag data.
    appConfigFeatureId String
    (String) The unique identifier of the Feature flag resource.
    collections List<Property Map>
    The 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
    The feature description.
    disabledValue String
    The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    enabled Boolean
    The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
    enabledValue String
    The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the type attribute.
    environmentId String
    The environment ID.
    featureId String
    The feature ID.
    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
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href String
    (String) The feature flag URL.
    name String
    The feature name.
    rolloutPercentage Number
    Rollout percentage of the feature.
    segmentExists Boolean
    (String) Denotes if the targeting rules are specified for the feature flag.
    segmentRules List<Property Map>
    Specify the targeting rules that is used to set different feature flag values for different segments.
    tags String
    Tags associated with the feature.
    type String
    The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
    updatedTime String
    (Timestamp) The last modified time of the feature flag data.

    Supporting Types

    AppConfigFeatureCollection, AppConfigFeatureCollectionArgs

    CollectionId string
    Collection ID.
    CollectionId string
    Collection ID.
    collectionId String
    Collection ID.
    collectionId string
    Collection ID.
    collection_id str
    Collection ID.
    collectionId String
    Collection ID.

    AppConfigFeatureSegmentRule, AppConfigFeatureSegmentRuleArgs

    Order double
    The 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.
    Rules List<AppConfigFeatureSegmentRuleRule>
    The rules array.
    Value string
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    RolloutPercentage double
    Rollout percentage for the segment rule.
    Order float64
    The 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.
    Rules []AppConfigFeatureSegmentRuleRule
    The rules array.
    Value string
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    RolloutPercentage float64
    Rollout percentage for the segment rule.
    order Double
    The 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.
    rules List<AppConfigFeatureSegmentRuleRule>
    The rules array.
    value String
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    rolloutPercentage Double
    Rollout percentage for the segment rule.
    order number
    The 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.
    rules AppConfigFeatureSegmentRuleRule[]
    The rules array.
    value string
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    rolloutPercentage number
    Rollout percentage for the segment rule.
    order float
    The 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.
    rules Sequence[AppConfigFeatureSegmentRuleRule]
    The rules array.
    value str
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    rollout_percentage float
    Rollout percentage for the segment rule.
    order Number
    The 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.
    rules List<Property Map>
    The rules array.
    value String
    The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the type attribute.
    rolloutPercentage Number
    Rollout percentage for the segment rule.

    AppConfigFeatureSegmentRuleRule, AppConfigFeatureSegmentRuleRuleArgs

    Segments List<string>
    The list of segment IDs that are used for targeting using the rule.
    Segments []string
    The list of segment IDs that are used for targeting using the rule.
    segments List<String>
    The list of segment IDs that are used for targeting using the rule.
    segments string[]
    The list of segment IDs that are used for targeting using the rule.
    segments Sequence[str]
    The list of segment IDs that are used for targeting using the rule.
    segments List<String>
    The list of segment IDs that are used for targeting using the rule.

    Import

    The ibm_app_config_feature resource can be imported by using guid of the App Configuration instance, environmentId and featureId. Get the guid from the service instance credentials section of the dashboard.

    Syntax

    $ pulumi import ibm:index/appConfigFeature:AppConfigFeature sample <guid/environmentId/featureId>
    

    Example

    $ pulumi import ibm:index/appConfigFeature:AppConfigFeature sample 272111153-c118-4116-8116-b811fbc31132/dev/sample_feature
    

    To learn more about importing existing cloud resources, see Importing resources.

    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