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

ibm.getCodeEngineConfigMap

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 to retrieve information about a code_engine_config_map. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const codeEngineConfigMap = ibm.getCodeEngineConfigMap({
        projectId: data.ibm_code_engine_project.code_engine_project.project_id,
        name: "my-config-map",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_config_map = ibm.get_code_engine_config_map(project_id=data["ibm_code_engine_project"]["code_engine_project"]["project_id"],
        name="my-config-map")
    
    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.LookupCodeEngineConfigMap(ctx, &ibm.LookupCodeEngineConfigMapArgs{
    			ProjectId: data.Ibm_code_engine_project.Code_engine_project.Project_id,
    			Name:      "my-config-map",
    		}, 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 codeEngineConfigMap = Ibm.GetCodeEngineConfigMap.Invoke(new()
        {
            ProjectId = data.Ibm_code_engine_project.Code_engine_project.Project_id,
            Name = "my-config-map",
        });
    
    });
    
    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.GetCodeEngineConfigMapArgs;
    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 codeEngineConfigMap = IbmFunctions.getCodeEngineConfigMap(GetCodeEngineConfigMapArgs.builder()
                .projectId(data.ibm_code_engine_project().code_engine_project().project_id())
                .name("my-config-map")
                .build());
    
        }
    }
    
    variables:
      codeEngineConfigMap:
        fn::invoke:
          function: ibm:getCodeEngineConfigMap
          arguments:
            projectId: ${data.ibm_code_engine_project.code_engine_project.project_id}
            name: my-config-map
    

    Using getCodeEngineConfigMap

    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 getCodeEngineConfigMap(args: GetCodeEngineConfigMapArgs, opts?: InvokeOptions): Promise<GetCodeEngineConfigMapResult>
    function getCodeEngineConfigMapOutput(args: GetCodeEngineConfigMapOutputArgs, opts?: InvokeOptions): Output<GetCodeEngineConfigMapResult>
    def get_code_engine_config_map(id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   project_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetCodeEngineConfigMapResult
    def get_code_engine_config_map_output(id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   project_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetCodeEngineConfigMapResult]
    func LookupCodeEngineConfigMap(ctx *Context, args *LookupCodeEngineConfigMapArgs, opts ...InvokeOption) (*LookupCodeEngineConfigMapResult, error)
    func LookupCodeEngineConfigMapOutput(ctx *Context, args *LookupCodeEngineConfigMapOutputArgs, opts ...InvokeOption) LookupCodeEngineConfigMapResultOutput

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

    public static class GetCodeEngineConfigMap 
    {
        public static Task<GetCodeEngineConfigMapResult> InvokeAsync(GetCodeEngineConfigMapArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeEngineConfigMapResult> Invoke(GetCodeEngineConfigMapInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCodeEngineConfigMapResult> getCodeEngineConfigMap(GetCodeEngineConfigMapArgs args, InvokeOptions options)
    public static Output<GetCodeEngineConfigMapResult> getCodeEngineConfigMap(GetCodeEngineConfigMapArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCodeEngineConfigMap:getCodeEngineConfigMap
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Id string
    The unique identifier of the code_engine_config_map.
    Name string
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    ProjectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Id string
    The unique identifier of the code_engine_config_map.
    name String
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id String
    The unique identifier of the code_engine_config_map.
    name string
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId string
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id string
    The unique identifier of the code_engine_config_map.
    name str
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    project_id str
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id str
    The unique identifier of the code_engine_config_map.
    name String
    The name of your configmap.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
    projectId String
    The ID of the project.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    id String
    The unique identifier of the code_engine_config_map.

    getCodeEngineConfigMap Result

    The following output properties are available:

    ConfigMapId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    Data Dictionary<string, string>
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    EntityTag string
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    Href string
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The unique identifier of the code_engine_config_map.
    Name string
    ProjectId string
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.
    ConfigMapId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    Data map[string]string
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    EntityTag string
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    Href string
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The unique identifier of the code_engine_config_map.
    Name string
    ProjectId string
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.
    configMapId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    data Map<String,String>
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    entityTag String
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    href String
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The unique identifier of the code_engine_config_map.
    name String
    projectId String
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.
    configMapId string
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt string
    (String) The timestamp when the resource was created.
    data {[key: string]: string}
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    entityTag string
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    href string
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id string
    The unique identifier of the code_engine_config_map.
    name string
    projectId string
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.
    config_map_id str
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    created_at str
    (String) The timestamp when the resource was created.
    data Mapping[str, str]
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    entity_tag str
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    href str
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id str
    The unique identifier of the code_engine_config_map.
    name str
    project_id str
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.
    configMapId String
    (String) The identifier of the resource.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    data Map<String>
    (Map) The key-value pair for the config map. Values must be specified in KEY=VALUE format.
    entityTag String
    (String) The version of the config map instance, which is used to achieve optimistic locking.
    href String
    (String) When you provision a new config map, a URL is created identifying the location of the instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The unique identifier of the code_engine_config_map.
    name String
    projectId String
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the config map.

    • Constraints: Allowable values are: config_map_v2.

    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