ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getCodeEngineConfigMap
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Name string
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - Project
Id string - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the code_engine_config_map.
 
- Name string
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - Project
Id string - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the code_engine_config_map.
 
- name String
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - project
Id String - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the code_engine_config_map.
 
- name string
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - project
Id string - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - id string
 - The unique identifier of the code_engine_config_map.
 
- name str
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - project_
id str - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - id str
 - The unique identifier of the code_engine_config_map.
 
- name String
 - The name of your configmap.
- Constraints: The maximum length is 
253characters. The minimum length is1character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/. 
 - Constraints: The maximum length is 
 - project
Id String - The ID of the project.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the code_engine_config_map.
 
getCodeEngineConfigMap Result
The following output properties are available:
- Config
Map stringId  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - Created
At 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=VALUEformat. - Entity
Tag 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the code_engine_config_map.
 - Name string
 - Project
Id 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'.
 - Resource
Type string - (String) The type of the config map.
- Constraints: Allowable values are: 
config_map_v2. 
 - Constraints: Allowable values are: 
 
- Config
Map stringId  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - Created
At 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=VALUEformat. - Entity
Tag 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - Id string
 - The unique identifier of the code_engine_config_map.
 - Name string
 - Project
Id 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'.
 - Resource
Type string - (String) The type of the config map.
- Constraints: Allowable values are: 
config_map_v2. 
 - Constraints: Allowable values are: 
 
- config
Map StringId  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - created
At 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=VALUEformat. - entity
Tag 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the code_engine_config_map.
 - name String
 - project
Id 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'.
 - resource
Type String - (String) The type of the config map.
- Constraints: Allowable values are: 
config_map_v2. 
 - Constraints: Allowable values are: 
 
- config
Map stringId  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - created
At 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=VALUEformat. - entity
Tag 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - id string
 - The unique identifier of the code_engine_config_map.
 - name string
 - project
Id 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'.
 - resource
Type string - (String) The type of the config map.
- Constraints: Allowable values are: 
config_map_v2. 
 - Constraints: Allowable values are: 
 
- config_
map_ strid  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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=VALUEformat. - 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - 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. 
 - Constraints: Allowable values are: 
 
- config
Map StringId  - (String) The identifier of the resource.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - created
At 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=VALUEformat. - entity
Tag 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 
2048characters. The minimum length is0characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/. 
 - Constraints: The maximum length is 
 - id String
 - The unique identifier of the code_engine_config_map.
 - name String
 - project
Id 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'.
 - resource
Type String - (String) The type of the config map.
- Constraints: Allowable values are: 
config_map_v2. 
 - Constraints: Allowable values are: 
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.