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

ibm.getAppConfigCollection

Explore with Pulumi AI

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

    Provides a read-only data source for collection. 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 appConfigCollection = ibm.getAppConfigCollection({
        collectionId: "collection_id",
        expand: "expand",
        guid: "guid",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    app_config_collection = ibm.get_app_config_collection(collection_id="collection_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.LookupAppConfigCollection(ctx, &ibm.LookupAppConfigCollectionArgs{
    			CollectionId: "collection_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 appConfigCollection = Ibm.GetAppConfigCollection.Invoke(new()
        {
            CollectionId = "collection_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.GetAppConfigCollectionArgs;
    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 appConfigCollection = IbmFunctions.getAppConfigCollection(GetAppConfigCollectionArgs.builder()
                .collectionId("collection_id")
                .expand("expand")
                .guid("guid")
                .build());
    
        }
    }
    
    variables:
      appConfigCollection:
        fn::invoke:
          function: ibm:getAppConfigCollection
          arguments:
            collectionId: collection_id
            expand: expand
            guid: guid
    

    Using getAppConfigCollection

    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 getAppConfigCollection(args: GetAppConfigCollectionArgs, opts?: InvokeOptions): Promise<GetAppConfigCollectionResult>
    function getAppConfigCollectionOutput(args: GetAppConfigCollectionOutputArgs, opts?: InvokeOptions): Output<GetAppConfigCollectionResult>
    def get_app_config_collection(collection_id: Optional[str] = None,
                                  expand: Optional[bool] = None,
                                  guid: Optional[str] = None,
                                  id: Optional[str] = None,
                                  includes: Optional[Sequence[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAppConfigCollectionResult
    def get_app_config_collection_output(collection_id: Optional[pulumi.Input[str]] = None,
                                  expand: Optional[pulumi.Input[bool]] = None,
                                  guid: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  includes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAppConfigCollectionResult]
    func LookupAppConfigCollection(ctx *Context, args *LookupAppConfigCollectionArgs, opts ...InvokeOption) (*LookupAppConfigCollectionResult, error)
    func LookupAppConfigCollectionOutput(ctx *Context, args *LookupAppConfigCollectionOutputArgs, opts ...InvokeOption) LookupAppConfigCollectionResultOutput

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

    public static class GetAppConfigCollection 
    {
        public static Task<GetAppConfigCollectionResult> InvokeAsync(GetAppConfigCollectionArgs args, InvokeOptions? opts = null)
        public static Output<GetAppConfigCollectionResult> Invoke(GetAppConfigCollectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppConfigCollectionResult> getAppConfigCollection(GetAppConfigCollectionArgs args, InvokeOptions options)
    public static Output<GetAppConfigCollectionResult> getAppConfigCollection(GetAppConfigCollectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getAppConfigCollection:getAppConfigCollection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CollectionId string
    Collection Id of the collection.
    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
    Includes List<string>
    CollectionId string
    Collection Id of the collection.
    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
    Includes []string
    collectionId String
    Collection Id of the collection.
    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
    includes List<String>
    collectionId string
    Collection Id of the collection.
    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
    includes string[]
    collection_id str
    Collection Id of the collection.
    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
    includes Sequence[str]
    collectionId String
    Collection Id of the collection.
    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
    includes List<String>

    getAppConfigCollection Result

    The following output properties are available:

    CollectionId string
    The unique identifier of the collection resouce.
    CreatedTime string
    Creation time of the collection.
    Description string
    Collection description.
    Features List<GetAppConfigCollectionFeature>
    List of Features associated with the collection. Nested features blocks have the following structure:
    FeaturesCount double
    Number of features associated with the collection.
    Guid string
    Href string
    Collection URL.
    Id string
    Name string
    Property name.
    Properties List<GetAppConfigCollectionProperty>
    List of properties associated with the collection. Nested properties blocks have the following structure:
    PropertiesCount double
    Number of features associated with the collection.
    Tags string
    Tags associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    Expand bool
    Includes List<string>
    CollectionId string
    The unique identifier of the collection resouce.
    CreatedTime string
    Creation time of the collection.
    Description string
    Collection description.
    Features []GetAppConfigCollectionFeature
    List of Features associated with the collection. Nested features blocks have the following structure:
    FeaturesCount float64
    Number of features associated with the collection.
    Guid string
    Href string
    Collection URL.
    Id string
    Name string
    Property name.
    Properties []GetAppConfigCollectionProperty
    List of properties associated with the collection. Nested properties blocks have the following structure:
    PropertiesCount float64
    Number of features associated with the collection.
    Tags string
    Tags associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    Expand bool
    Includes []string
    collectionId String
    The unique identifier of the collection resouce.
    createdTime String
    Creation time of the collection.
    description String
    Collection description.
    features List<GetAppConfigCollectionFeature>
    List of Features associated with the collection. Nested features blocks have the following structure:
    featuresCount Double
    Number of features associated with the collection.
    guid String
    href String
    Collection URL.
    id String
    name String
    Property name.
    properties List<GetAppConfigCollectionProperty>
    List of properties associated with the collection. Nested properties blocks have the following structure:
    propertiesCount Double
    Number of features associated with the collection.
    tags String
    Tags associated with the collection.
    updatedTime String
    Last updated time of the collection data.
    expand Boolean
    includes List<String>
    collectionId string
    The unique identifier of the collection resouce.
    createdTime string
    Creation time of the collection.
    description string
    Collection description.
    features GetAppConfigCollectionFeature[]
    List of Features associated with the collection. Nested features blocks have the following structure:
    featuresCount number
    Number of features associated with the collection.
    guid string
    href string
    Collection URL.
    id string
    name string
    Property name.
    properties GetAppConfigCollectionProperty[]
    List of properties associated with the collection. Nested properties blocks have the following structure:
    propertiesCount number
    Number of features associated with the collection.
    tags string
    Tags associated with the collection.
    updatedTime string
    Last updated time of the collection data.
    expand boolean
    includes string[]
    collection_id str
    The unique identifier of the collection resouce.
    created_time str
    Creation time of the collection.
    description str
    Collection description.
    features Sequence[GetAppConfigCollectionFeature]
    List of Features associated with the collection. Nested features blocks have the following structure:
    features_count float
    Number of features associated with the collection.
    guid str
    href str
    Collection URL.
    id str
    name str
    Property name.
    properties Sequence[GetAppConfigCollectionProperty]
    List of properties associated with the collection. Nested properties blocks have the following structure:
    properties_count float
    Number of features associated with the collection.
    tags str
    Tags associated with the collection.
    updated_time str
    Last updated time of the collection data.
    expand bool
    includes Sequence[str]
    collectionId String
    The unique identifier of the collection resouce.
    createdTime String
    Creation time of the collection.
    description String
    Collection description.
    features List<Property Map>
    List of Features associated with the collection. Nested features blocks have the following structure:
    featuresCount Number
    Number of features associated with the collection.
    guid String
    href String
    Collection URL.
    id String
    name String
    Property name.
    properties List<Property Map>
    List of properties associated with the collection. Nested properties blocks have the following structure:
    propertiesCount Number
    Number of features associated with the collection.
    tags String
    Tags associated with the collection.
    updatedTime String
    Last updated time of the collection data.
    expand Boolean
    includes List<String>

    Supporting Types

    GetAppConfigCollectionFeature

    FeatureId string
    Feature id.
    Name string
    Property name.
    FeatureId string
    Feature id.
    Name string
    Property name.
    featureId String
    Feature id.
    name String
    Property name.
    featureId string
    Feature id.
    name string
    Property name.
    feature_id str
    Feature id.
    name str
    Property name.
    featureId String
    Feature id.
    name String
    Property name.

    GetAppConfigCollectionProperty

    Name string
    Property name.
    PropertyId string
    Property id.
    Name string
    Property name.
    PropertyId string
    Property id.
    name String
    Property name.
    propertyId String
    Property id.
    name string
    Property name.
    propertyId string
    Property id.
    name str
    Property name.
    property_id str
    Property id.
    name String
    Property name.
    propertyId String
    Property id.

    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