1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCodeEnginePersistentDataStore
ibm 1.88.0 published on Friday, Feb 6, 2026 by ibm-cloud
ibm logo
ibm 1.88.0 published on Friday, Feb 6, 2026 by ibm-cloud

    Provides a read-only data source to retrieve information about a code_engine_persistent_data_store. 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 codeEnginePersistentDataStore = ibm.getCodeEnginePersistentDataStore({
        name: codeEnginePersistentDataStoreInstance.name,
        projectId: codeEnginePersistentDataStoreInstance.projectId,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_persistent_data_store = ibm.get_code_engine_persistent_data_store(name=code_engine_persistent_data_store_instance["name"],
        project_id=code_engine_persistent_data_store_instance["projectId"])
    
    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.LookupCodeEnginePersistentDataStore(ctx, &ibm.LookupCodeEnginePersistentDataStoreArgs{
    			Name:      codeEnginePersistentDataStoreInstance.Name,
    			ProjectId: codeEnginePersistentDataStoreInstance.ProjectId,
    		}, 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 codeEnginePersistentDataStore = Ibm.GetCodeEnginePersistentDataStore.Invoke(new()
        {
            Name = codeEnginePersistentDataStoreInstance.Name,
            ProjectId = codeEnginePersistentDataStoreInstance.ProjectId,
        });
    
    });
    
    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.GetCodeEnginePersistentDataStoreArgs;
    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 codeEnginePersistentDataStore = IbmFunctions.getCodeEnginePersistentDataStore(GetCodeEnginePersistentDataStoreArgs.builder()
                .name(codeEnginePersistentDataStoreInstance.name())
                .projectId(codeEnginePersistentDataStoreInstance.projectId())
                .build());
    
        }
    }
    
    variables:
      codeEnginePersistentDataStore:
        fn::invoke:
          function: ibm:getCodeEnginePersistentDataStore
          arguments:
            name: ${codeEnginePersistentDataStoreInstance.name}
            projectId: ${codeEnginePersistentDataStoreInstance.projectId}
    

    Using getCodeEnginePersistentDataStore

    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 getCodeEnginePersistentDataStore(args: GetCodeEnginePersistentDataStoreArgs, opts?: InvokeOptions): Promise<GetCodeEnginePersistentDataStoreResult>
    function getCodeEnginePersistentDataStoreOutput(args: GetCodeEnginePersistentDataStoreOutputArgs, opts?: InvokeOptions): Output<GetCodeEnginePersistentDataStoreResult>
    def get_code_engine_persistent_data_store(id: Optional[str] = None,
                                              name: Optional[str] = None,
                                              project_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetCodeEnginePersistentDataStoreResult
    def get_code_engine_persistent_data_store_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[GetCodeEnginePersistentDataStoreResult]
    func LookupCodeEnginePersistentDataStore(ctx *Context, args *LookupCodeEnginePersistentDataStoreArgs, opts ...InvokeOption) (*LookupCodeEnginePersistentDataStoreResult, error)
    func LookupCodeEnginePersistentDataStoreOutput(ctx *Context, args *LookupCodeEnginePersistentDataStoreOutputArgs, opts ...InvokeOption) LookupCodeEnginePersistentDataStoreResultOutput

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

    public static class GetCodeEnginePersistentDataStore 
    {
        public static Task<GetCodeEnginePersistentDataStoreResult> InvokeAsync(GetCodeEnginePersistentDataStoreArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeEnginePersistentDataStoreResult> Invoke(GetCodeEnginePersistentDataStoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCodeEnginePersistentDataStoreResult> getCodeEnginePersistentDataStore(GetCodeEnginePersistentDataStoreArgs args, InvokeOptions options)
    public static Output<GetCodeEnginePersistentDataStoreResult> getCodeEnginePersistentDataStore(GetCodeEnginePersistentDataStoreArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCodeEnginePersistentDataStore:getCodeEnginePersistentDataStore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.
    Name string
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.
    name String
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.
    name string
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.
    name str
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.
    name String
    The name of your persistent data store.

    • Constraints: The maximum length is 63 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: Length must be 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_persistent_data_store.

    getCodeEnginePersistentDataStore Result

    The following output properties are available:

    CreatedAt string
    (String) The timestamp when the resource was created.
    Datas List<GetCodeEnginePersistentDataStoreData>
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    EntityTag string
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Id string
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    StorageType string
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    Datas []GetCodeEnginePersistentDataStoreData
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    EntityTag string
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Id string
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    StorageType string
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.
    createdAt String
    (String) The timestamp when the resource was created.
    datas List<GetCodeEnginePersistentDataStoreData>
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    entityTag String
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id String
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    storageType String
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.
    createdAt string
    (String) The timestamp when the resource was created.
    datas GetCodeEnginePersistentDataStoreData[]
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    entityTag string
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id string
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    storageType string
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.
    created_at str
    (String) The timestamp when the resource was created.
    datas Sequence[GetCodeEnginePersistentDataStoreData]
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    entity_tag str
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id str
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    storage_type str
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.
    createdAt String
    (String) The timestamp when the resource was created.
    datas List<Property Map>
    (List) Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters. Nested schema for data:
    entityTag String
    (String) The version of the persistent data store, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    id String
    The unique identifier of the code_engine_persistent_data_store.
    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'.
    storageType String
    (String) Specify the storage type of the persistent data store.

    • Constraints: Allowable values are: object_storage. The value must match regular expression /^(object_storage)$/.

    Supporting Types

    GetCodeEnginePersistentDataStoreData

    BucketLocation string
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    BucketName string
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    SecretName string
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.
    BucketLocation string
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    BucketName string
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    SecretName string
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.
    bucketLocation String
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    bucketName String
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    secretName String
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.
    bucketLocation string
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    bucketName string
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    secretName string
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.
    bucket_location str
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    bucket_name str
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    secret_name str
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.
    bucketLocation String
    (String) Specify the location of the bucket.

    • Constraints: Allowable values are: au-syd, br-sao, ca-mon, ca-tor, eu-de, eu-es, eu-gb, jp-osa, jp-tok, us-east, us-south, ap, eu, us, ams03, che01, mil01, mon01, par01, sjc04, sng01. The value must match regular expression /^(au-syd|br-sao|ca-mon|ca-tor|eu-de|eu-es|eu-gb|jp-osa|jp-tok|us-east|us-south|ap|eu|us|ams03|che01|mil01|mon01|par01|sjc04|sng01)$/.
    bucketName String
    (String) Specify the name of the bucket.

    • Constraints: The maximum length is 63 characters. The minimum length is 3 characters. The value must match regular expression /^a-z0-9?$/.
    secretName String
    (String) Specify the name of the HMAC secret.

    • 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?)*$/.

    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.88.0 published on Friday, Feb 6, 2026 by ibm-cloud
      Meet Neo: Your AI Platform Teammate