ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud
ibm.getSmCustomCredentialsConfiguration
Explore with Pulumi AI
Provides a read-only data source for a custom credentials secret configuration. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const smCustomCredentialsConfigurationInstance = ibm.getSmCustomCredentialsConfiguration({
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
name: "example-custom-credentials-config",
});
import pulumi
import pulumi_ibm as ibm
sm_custom_credentials_configuration_instance = ibm.get_sm_custom_credentials_configuration(instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
name="example-custom-credentials-config")
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.LookupSmCustomCredentialsConfiguration(ctx, &ibm.LookupSmCustomCredentialsConfigurationArgs{
InstanceId: ibm_resource_instance.Sm_instance.Guid,
Region: pulumi.StringRef("us-south"),
Name: "example-custom-credentials-config",
}, 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 smCustomCredentialsConfigurationInstance = Ibm.GetSmCustomCredentialsConfiguration.Invoke(new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
Name = "example-custom-credentials-config",
});
});
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.GetSmCustomCredentialsConfigurationArgs;
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 smCustomCredentialsConfigurationInstance = IbmFunctions.getSmCustomCredentialsConfiguration(GetSmCustomCredentialsConfigurationArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.name("example-custom-credentials-config")
.build());
}
}
variables:
smCustomCredentialsConfigurationInstance:
fn::invoke:
function: ibm:getSmCustomCredentialsConfiguration
arguments:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
name: example-custom-credentials-config
Using getSmCustomCredentialsConfiguration
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 getSmCustomCredentialsConfiguration(args: GetSmCustomCredentialsConfigurationArgs, opts?: InvokeOptions): Promise<GetSmCustomCredentialsConfigurationResult>
function getSmCustomCredentialsConfigurationOutput(args: GetSmCustomCredentialsConfigurationOutputArgs, opts?: InvokeOptions): Output<GetSmCustomCredentialsConfigurationResult>
def get_sm_custom_credentials_configuration(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmCustomCredentialsConfigurationResult
def get_sm_custom_credentials_configuration_output(endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSmCustomCredentialsConfigurationResult]
func LookupSmCustomCredentialsConfiguration(ctx *Context, args *LookupSmCustomCredentialsConfigurationArgs, opts ...InvokeOption) (*LookupSmCustomCredentialsConfigurationResult, error)
func LookupSmCustomCredentialsConfigurationOutput(ctx *Context, args *LookupSmCustomCredentialsConfigurationOutputArgs, opts ...InvokeOption) LookupSmCustomCredentialsConfigurationResultOutput
> Note: This function is named LookupSmCustomCredentialsConfiguration
in the Go SDK.
public static class GetSmCustomCredentialsConfiguration
{
public static Task<GetSmCustomCredentialsConfigurationResult> InvokeAsync(GetSmCustomCredentialsConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetSmCustomCredentialsConfigurationResult> Invoke(GetSmCustomCredentialsConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSmCustomCredentialsConfigurationResult> getSmCustomCredentialsConfiguration(GetSmCustomCredentialsConfigurationArgs args, InvokeOptions options)
public static Output<GetSmCustomCredentialsConfigurationResult> getSmCustomCredentialsConfiguration(GetSmCustomCredentialsConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSmCustomCredentialsConfiguration:getSmCustomCredentialsConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Name string
- The name of the custom credentials configuration.
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Id string
- The unique identifier of this data source.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Name string
- The name of the custom credentials configuration.
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Id string
- The unique identifier of this data source.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- name String
- The name of the custom credentials configuration.
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id String
- The unique identifier of this data source.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id string - The GUID of the Secrets Manager instance.
- name string
- The name of the custom credentials configuration.
- endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id string
- The unique identifier of this data source.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance_
id str - The GUID of the Secrets Manager instance.
- name str
- The name of the custom credentials configuration.
- endpoint_
type str - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id str
- The unique identifier of this data source.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- name String
- The name of the custom credentials configuration.
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id String
- The unique identifier of this data source.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
getSmCustomCredentialsConfiguration Result
The following output properties are available:
- Api
Key stringRef - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Code
Engines List<GetSm Custom Credentials Configuration Code Engine> - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The unique identifier of this data source.
- Instance
Id string - Name string
- (String) The name of the credential.
- Region string
- (String) The region of the Code Engine project.
- Schemas
List<Get
Sm Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Task
Timeout string - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - Endpoint
Type string
- Api
Key stringRef - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Code
Engines []GetSm Custom Credentials Configuration Code Engine - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The unique identifier of this data source.
- Instance
Id string - Name string
- (String) The name of the credential.
- Region string
- (String) The region of the Code Engine project.
- Schemas
[]Get
Sm Custom Credentials Configuration Schema - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Task
Timeout string - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - Endpoint
Type string
- api
Key StringRef - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- code
Engines List<GetSm Custom Credentials Configuration Code Engine> - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The unique identifier of this data source.
- instance
Id String - name String
- (String) The name of the credential.
- region String
- (String) The region of the Code Engine project.
- schemas
List<Get
Sm Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- task
Timeout String - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - endpoint
Type String
- api
Key stringRef - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- code
Engines GetSm Custom Credentials Configuration Code Engine[] - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id string
- The unique identifier of this data source.
- instance
Id string - name string
- (String) The name of the credential.
- region string
- (String) The region of the Code Engine project.
- schemas
Get
Sm Custom Credentials Configuration Schema[] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- task
Timeout string - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - endpoint
Type string
- api_
key_ strref - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code_
engine_ strkey_ ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- code_
engines Sequence[GetSm Custom Credentials Configuration Code Engine] - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- created_
at str - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created_
by str - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id str
- The unique identifier of this data source.
- instance_
id str - name str
- (String) The name of the credential.
- region str
- (String) The region of the Code Engine project.
- schemas
Sequence[Get
Sm Custom Credentials Configuration Schema] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- task_
timeout str - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated_
at str - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - endpoint_
type str
- api
Key StringRef - (String) The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- code
Engines List<Property Map> - (List) The parameters required to configure Code Engine. Nested scheme for code_engine:
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The unique identifier of this data source.
- instance
Id String - name String
- (String) The name of the credential.
- region String
- (String) The region of the Code Engine project.
- schemas List<Property Map>
- (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- task
Timeout String - (String) Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
. - endpoint
Type String
Supporting Types
GetSmCustomCredentialsConfigurationCodeEngine
- Job
Name string - (String) The Code Engine job name used by this custom credentials configuration.
- Project
Id string - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Job
Name string - (String) The Code Engine job name used by this custom credentials configuration.
- Project
Id string - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- job
Name String - (String) The Code Engine job name used by this custom credentials configuration.
- project
Id String - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- job
Name string - (String) The Code Engine job name used by this custom credentials configuration.
- project
Id string - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- job_
name str - (String) The Code Engine job name used by this custom credentials configuration.
- project_
id str - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- job
Name String - (String) The Code Engine job name used by this custom credentials configuration.
- project
Id String - (String) The Project ID of your Code Engine project used by this custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
GetSmCustomCredentialsConfigurationSchema
- Credentials
List<Get
Sm Custom Credentials Configuration Schema Credential> - (List) The schema of the credentials. Nested scheme for credentials:
- Parameters
List<Get
Sm Custom Credentials Configuration Schema Parameter> - (List) The schema of the input parameters. Nested scheme for parameters:
- Credentials
[]Get
Sm Custom Credentials Configuration Schema Credential - (List) The schema of the credentials. Nested scheme for credentials:
- Parameters
[]Get
Sm Custom Credentials Configuration Schema Parameter - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
List<Get
Sm Custom Credentials Configuration Schema Credential> - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
List<Get
Sm Custom Credentials Configuration Schema Parameter> - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
Get
Sm Custom Credentials Configuration Schema Credential[] - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
Get
Sm Custom Credentials Configuration Schema Parameter[] - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
Sequence[Get
Sm Custom Credentials Configuration Schema Credential] - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
Sequence[Get
Sm Custom Credentials Configuration Schema Parameter] - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials List<Property Map>
- (List) The schema of the credentials. Nested scheme for credentials:
- parameters List<Property Map>
- (List) The schema of the input parameters. Nested scheme for parameters:
GetSmCustomCredentialsConfigurationSchemaCredential
GetSmCustomCredentialsConfigurationSchemaParameter
- Env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- Format string
- (String) The format of the credential, for example 'required:true, type:string'.
- Name string
- The name of the custom credentials configuration.
- Env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- Format string
- (String) The format of the credential, for example 'required:true, type:string'.
- Name string
- The name of the custom credentials configuration.
- env
Variable StringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format String
- (String) The format of the credential, for example 'required:true, type:string'.
- name String
- The name of the custom credentials configuration.
- env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format string
- (String) The format of the credential, for example 'required:true, type:string'.
- name string
- The name of the custom credentials configuration.
- env_
variable_ strname - (String) The name of the environment variable associated with the configuration schema parameter.
- format str
- (String) The format of the credential, for example 'required:true, type:string'.
- name str
- The name of the custom credentials configuration.
- env
Variable StringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format String
- (String) The format of the credential, for example 'required:true, type:string'.
- name String
- The name of the custom credentials configuration.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.