ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSmPublicCertificateConfigurationCaLetsEncrypt
Explore with Pulumi AI
Provides a read-only data source for a Let’s Encrypt CA 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 caLetsEncrypt = ibm.getSmPublicCertificateConfigurationCaLetsEncrypt({
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
name: "configuration-name",
});
import pulumi
import pulumi_ibm as ibm
ca_lets_encrypt = ibm.get_sm_public_certificate_configuration_ca_lets_encrypt(instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
name="configuration-name")
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.LookupSmPublicCertificateConfigurationCaLetsEncrypt(ctx, &ibm.LookupSmPublicCertificateConfigurationCaLetsEncryptArgs{
InstanceId: ibm_resource_instance.Sm_instance.Guid,
Region: pulumi.StringRef("us-south"),
Name: "configuration-name",
}, 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 caLetsEncrypt = Ibm.GetSmPublicCertificateConfigurationCaLetsEncrypt.Invoke(new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
Name = "configuration-name",
});
});
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.GetSmPublicCertificateConfigurationCaLetsEncryptArgs;
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 caLetsEncrypt = IbmFunctions.getSmPublicCertificateConfigurationCaLetsEncrypt(GetSmPublicCertificateConfigurationCaLetsEncryptArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.name("configuration-name")
.build());
}
}
variables:
caLetsEncrypt:
fn::invoke:
function: ibm:getSmPublicCertificateConfigurationCaLetsEncrypt
arguments:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
name: configuration-name
Using getSmPublicCertificateConfigurationCaLetsEncrypt
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 getSmPublicCertificateConfigurationCaLetsEncrypt(args: GetSmPublicCertificateConfigurationCaLetsEncryptArgs, opts?: InvokeOptions): Promise<GetSmPublicCertificateConfigurationCaLetsEncryptResult>
function getSmPublicCertificateConfigurationCaLetsEncryptOutput(args: GetSmPublicCertificateConfigurationCaLetsEncryptOutputArgs, opts?: InvokeOptions): Output<GetSmPublicCertificateConfigurationCaLetsEncryptResult>
def get_sm_public_certificate_configuration_ca_lets_encrypt(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) -> GetSmPublicCertificateConfigurationCaLetsEncryptResult
def get_sm_public_certificate_configuration_ca_lets_encrypt_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[GetSmPublicCertificateConfigurationCaLetsEncryptResult]
func LookupSmPublicCertificateConfigurationCaLetsEncrypt(ctx *Context, args *LookupSmPublicCertificateConfigurationCaLetsEncryptArgs, opts ...InvokeOption) (*LookupSmPublicCertificateConfigurationCaLetsEncryptResult, error)
func LookupSmPublicCertificateConfigurationCaLetsEncryptOutput(ctx *Context, args *LookupSmPublicCertificateConfigurationCaLetsEncryptOutputArgs, opts ...InvokeOption) LookupSmPublicCertificateConfigurationCaLetsEncryptResultOutput
> Note: This function is named LookupSmPublicCertificateConfigurationCaLetsEncrypt
in the Go SDK.
public static class GetSmPublicCertificateConfigurationCaLetsEncrypt
{
public static Task<GetSmPublicCertificateConfigurationCaLetsEncryptResult> InvokeAsync(GetSmPublicCertificateConfigurationCaLetsEncryptArgs args, InvokeOptions? opts = null)
public static Output<GetSmPublicCertificateConfigurationCaLetsEncryptResult> Invoke(GetSmPublicCertificateConfigurationCaLetsEncryptInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSmPublicCertificateConfigurationCaLetsEncryptResult> getSmPublicCertificateConfigurationCaLetsEncrypt(GetSmPublicCertificateConfigurationCaLetsEncryptArgs args, InvokeOptions options)
public static Output<GetSmPublicCertificateConfigurationCaLetsEncryptResult> getSmPublicCertificateConfigurationCaLetsEncrypt(GetSmPublicCertificateConfigurationCaLetsEncryptArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSmPublicCertificateConfigurationCaLetsEncrypt:getSmPublicCertificateConfigurationCaLetsEncrypt
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Name string
- The name of the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the 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 configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the 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 configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the 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 configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the 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 configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the 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 configuration.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9]*(?:_?-?\\.?[A-Za-z0-9]+)*$/
.
- Constraints: The maximum length is
- 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 the data source.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
getSmPublicCertificateConfigurationCaLetsEncrypt Result
The following output properties are available:
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The unique identifier of the data source.
- Instance
Id string - Lets
Encrypt stringEnvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- Lets
Encrypt stringPreferred Chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Lets
Encrypt stringPrivate Key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- Name string
- Region string
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Endpoint
Type string
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The unique identifier of the data source.
- Instance
Id string - Lets
Encrypt stringEnvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- Lets
Encrypt stringPreferred Chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Lets
Encrypt stringPrivate Key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- Name string
- Region string
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Endpoint
Type string
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By String - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The unique identifier of the data source.
- instance
Id String - lets
Encrypt StringEnvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- lets
Encrypt StringPreferred Chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- lets
Encrypt StringPrivate Key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- name String
- region String
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- endpoint
Type String
- created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id string
- The unique identifier of the data source.
- instance
Id string - lets
Encrypt stringEnvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- lets
Encrypt stringPreferred Chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- lets
Encrypt stringPrivate Key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- name string
- region string
- updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- endpoint
Type string
- created_
at str - (String) The date when a resource was created. The date format follows RFC 3339.
- created_
by str - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id str
- The unique identifier of the data source.
- instance_
id str - lets_
encrypt_ strenvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- lets_
encrypt_ strpreferred_ chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- lets_
encrypt_ strprivate_ key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- name str
- region str
- updated_
at str - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- endpoint_
type str
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By String - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The unique identifier of the data source.
- instance
Id String - lets
Encrypt StringEnvironment - (String) The configuration of the Let's Encrypt CA environment.
- Constraints: Allowable values are:
production
,staging
.
- Constraints: Allowable values are:
- lets
Encrypt StringPreferred Chain - (String) Prefer the chain with an issuer matching this Subject Common Name.
- Constraints: The maximum length is
30
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- lets
Encrypt StringPrivate Key - (String) The PEM encoded private key of your Lets Encrypt account.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/(^-----BEGIN PRIVATE KEY-----.*?)/
.
- Constraints: The maximum length is
- name String
- region String
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- endpoint
Type String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.