ibm.SmPrivateCertificate
Explore with Pulumi AI
Provides a resource for PrivateCertificate. This allows PrivateCertificate to be created, updated and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const smPrivateCertificate = new ibm.SmPrivateCertificate("smPrivateCertificate", {
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
certificateTemplate: resource.ibm_sm_private_certificate_configuration_template.my_template.name,
customMetadata: {
key: "value",
},
description: "Extended description for this secret.",
commonName: "example.com",
labels: ["my-label"],
rotation: {
autoRotate: true,
interval: 1,
unit: "day",
},
secretGroupId: ibm_sm_secret_group.sm_secret_group.secret_group_id,
ttl: "48h",
});
import pulumi
import pulumi_ibm as ibm
sm_private_certificate = ibm.SmPrivateCertificate("smPrivateCertificate",
instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
certificate_template=resource["ibm_sm_private_certificate_configuration_template"]["my_template"]["name"],
custom_metadata={
"key": "value",
},
description="Extended description for this secret.",
common_name="example.com",
labels=["my-label"],
rotation={
"auto_rotate": True,
"interval": 1,
"unit": "day",
},
secret_group_id=ibm_sm_secret_group["sm_secret_group"]["secret_group_id"],
ttl="48h")
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.NewSmPrivateCertificate(ctx, "smPrivateCertificate", &ibm.SmPrivateCertificateArgs{
InstanceId: pulumi.Any(ibm_resource_instance.Sm_instance.Guid),
Region: pulumi.String("us-south"),
CertificateTemplate: pulumi.Any(resource.Ibm_sm_private_certificate_configuration_template.My_template.Name),
CustomMetadata: pulumi.StringMap{
"key": pulumi.String("value"),
},
Description: pulumi.String("Extended description for this secret."),
CommonName: pulumi.String("example.com"),
Labels: pulumi.StringArray{
pulumi.String("my-label"),
},
Rotation: &ibm.SmPrivateCertificateRotationArgs{
AutoRotate: pulumi.Bool(true),
Interval: pulumi.Float64(1),
Unit: pulumi.String("day"),
},
SecretGroupId: pulumi.Any(ibm_sm_secret_group.Sm_secret_group.Secret_group_id),
Ttl: pulumi.String("48h"),
})
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 smPrivateCertificate = new Ibm.SmPrivateCertificate("smPrivateCertificate", new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
CertificateTemplate = resource.Ibm_sm_private_certificate_configuration_template.My_template.Name,
CustomMetadata =
{
{ "key", "value" },
},
Description = "Extended description for this secret.",
CommonName = "example.com",
Labels = new[]
{
"my-label",
},
Rotation = new Ibm.Inputs.SmPrivateCertificateRotationArgs
{
AutoRotate = true,
Interval = 1,
Unit = "day",
},
SecretGroupId = ibm_sm_secret_group.Sm_secret_group.Secret_group_id,
Ttl = "48h",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SmPrivateCertificate;
import com.pulumi.ibm.SmPrivateCertificateArgs;
import com.pulumi.ibm.inputs.SmPrivateCertificateRotationArgs;
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) {
var smPrivateCertificate = new SmPrivateCertificate("smPrivateCertificate", SmPrivateCertificateArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.certificateTemplate(resource.ibm_sm_private_certificate_configuration_template().my_template().name())
.customMetadata(Map.of("key", "value"))
.description("Extended description for this secret.")
.commonName("example.com")
.labels("my-label")
.rotation(SmPrivateCertificateRotationArgs.builder()
.autoRotate(true)
.interval(1)
.unit("day")
.build())
.secretGroupId(ibm_sm_secret_group.sm_secret_group().secret_group_id())
.ttl("48h")
.build());
}
}
resources:
smPrivateCertificate:
type: ibm:SmPrivateCertificate
properties:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
certificateTemplate: ${resource.ibm_sm_private_certificate_configuration_template.my_template.name}
customMetadata:
key: value
description: Extended description for this secret.
commonName: example.com
labels:
- my-label
rotation:
autoRotate: true
interval: 1
unit: day
secretGroupId: ${ibm_sm_secret_group.sm_secret_group.secret_group_id}
ttl: 48h
Provider Configuration
The IBM Cloud provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:
- Static credentials
- Environment variables
To find which credentials are required for this resource, see the service table here.
Static credentials
You can provide your static credentials by adding the ibmcloud_api_key
, iaas_classic_username
, and iaas_classic_api_key
arguments in the IBM Cloud provider block.
Usage:
provider "ibm" {
ibmcloud_api_key = ""
iaas_classic_username = ""
iaas_classic_api_key = ""
}
Environment variables
You can provide your credentials by exporting the IC_API_KEY
, IAAS_CLASSIC_USERNAME
, and IAAS_CLASSIC_API_KEY
environment variables, representing your IBM Cloud platform API key, IBM Cloud Classic Infrastructure (SoftLayer) user name, and IBM Cloud infrastructure API key, respectively.
provider "ibm" {}
Usage:
export IC_API_KEY="ibmcloud_api_key"
export IAAS_CLASSIC_USERNAME="iaas_classic_username"
export IAAS_CLASSIC_API_KEY="iaas_classic_api_key"
pulumi preview
Note:
- Create or find your
ibmcloud_api_key
andiaas_classic_api_key
here.
- Select
My IBM Cloud API Keys
option from view dropdown foribmcloud_api_key
- Select
Classic Infrastructure API Keys
option from view dropdown foriaas_classic_api_key
- For iaas_classic_username
- Go to Users
- Click on user.
- Find user name in the
VPN password
section underUser Details
tab
For more informaton, see here.
Create SmPrivateCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmPrivateCertificate(name: string, args: SmPrivateCertificateArgs, opts?: CustomResourceOptions);
@overload
def SmPrivateCertificate(resource_name: str,
args: SmPrivateCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmPrivateCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
certificate_template: Optional[str] = None,
common_name: Optional[str] = None,
ip_sans: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
endpoint_type: Optional[str] = None,
exclude_cn_from_sans: Optional[bool] = None,
format: Optional[str] = None,
csr: Optional[str] = None,
alt_names: Optional[Sequence[str]] = None,
labels: Optional[Sequence[str]] = None,
custom_metadata: Optional[Mapping[str, str]] = None,
other_sans: Optional[Sequence[str]] = None,
private_key_format: Optional[str] = None,
region: Optional[str] = None,
rotation: Optional[SmPrivateCertificateRotationArgs] = None,
secret_group_id: Optional[str] = None,
sm_private_certificate_id: Optional[str] = None,
ttl: Optional[str] = None,
uri_sans: Optional[str] = None,
version_custom_metadata: Optional[Mapping[str, str]] = None)
func NewSmPrivateCertificate(ctx *Context, name string, args SmPrivateCertificateArgs, opts ...ResourceOption) (*SmPrivateCertificate, error)
public SmPrivateCertificate(string name, SmPrivateCertificateArgs args, CustomResourceOptions? opts = null)
public SmPrivateCertificate(String name, SmPrivateCertificateArgs args)
public SmPrivateCertificate(String name, SmPrivateCertificateArgs args, CustomResourceOptions options)
type: ibm:SmPrivateCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SmPrivateCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SmPrivateCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SmPrivateCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmPrivateCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmPrivateCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var smPrivateCertificateResource = new Ibm.SmPrivateCertificate("smPrivateCertificateResource", new()
{
InstanceId = "string",
CertificateTemplate = "string",
CommonName = "string",
IpSans = "string",
Name = "string",
Description = "string",
EndpointType = "string",
ExcludeCnFromSans = false,
Format = "string",
Csr = "string",
AltNames = new[]
{
"string",
},
Labels = new[]
{
"string",
},
CustomMetadata =
{
{ "string", "string" },
},
OtherSans = new[]
{
"string",
},
PrivateKeyFormat = "string",
Region = "string",
Rotation = new Ibm.Inputs.SmPrivateCertificateRotationArgs
{
AutoRotate = false,
Interval = 0,
Unit = "string",
},
SecretGroupId = "string",
SmPrivateCertificateId = "string",
Ttl = "string",
UriSans = "string",
VersionCustomMetadata =
{
{ "string", "string" },
},
});
example, err := ibm.NewSmPrivateCertificate(ctx, "smPrivateCertificateResource", &ibm.SmPrivateCertificateArgs{
InstanceId: pulumi.String("string"),
CertificateTemplate: pulumi.String("string"),
CommonName: pulumi.String("string"),
IpSans: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
EndpointType: pulumi.String("string"),
ExcludeCnFromSans: pulumi.Bool(false),
Format: pulumi.String("string"),
Csr: pulumi.String("string"),
AltNames: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringArray{
pulumi.String("string"),
},
CustomMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
OtherSans: pulumi.StringArray{
pulumi.String("string"),
},
PrivateKeyFormat: pulumi.String("string"),
Region: pulumi.String("string"),
Rotation: &ibm.SmPrivateCertificateRotationArgs{
AutoRotate: pulumi.Bool(false),
Interval: pulumi.Float64(0),
Unit: pulumi.String("string"),
},
SecretGroupId: pulumi.String("string"),
SmPrivateCertificateId: pulumi.String("string"),
Ttl: pulumi.String("string"),
UriSans: pulumi.String("string"),
VersionCustomMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var smPrivateCertificateResource = new SmPrivateCertificate("smPrivateCertificateResource", SmPrivateCertificateArgs.builder()
.instanceId("string")
.certificateTemplate("string")
.commonName("string")
.ipSans("string")
.name("string")
.description("string")
.endpointType("string")
.excludeCnFromSans(false)
.format("string")
.csr("string")
.altNames("string")
.labels("string")
.customMetadata(Map.of("string", "string"))
.otherSans("string")
.privateKeyFormat("string")
.region("string")
.rotation(SmPrivateCertificateRotationArgs.builder()
.autoRotate(false)
.interval(0)
.unit("string")
.build())
.secretGroupId("string")
.smPrivateCertificateId("string")
.ttl("string")
.uriSans("string")
.versionCustomMetadata(Map.of("string", "string"))
.build());
sm_private_certificate_resource = ibm.SmPrivateCertificate("smPrivateCertificateResource",
instance_id="string",
certificate_template="string",
common_name="string",
ip_sans="string",
name="string",
description="string",
endpoint_type="string",
exclude_cn_from_sans=False,
format="string",
csr="string",
alt_names=["string"],
labels=["string"],
custom_metadata={
"string": "string",
},
other_sans=["string"],
private_key_format="string",
region="string",
rotation={
"auto_rotate": False,
"interval": 0,
"unit": "string",
},
secret_group_id="string",
sm_private_certificate_id="string",
ttl="string",
uri_sans="string",
version_custom_metadata={
"string": "string",
})
const smPrivateCertificateResource = new ibm.SmPrivateCertificate("smPrivateCertificateResource", {
instanceId: "string",
certificateTemplate: "string",
commonName: "string",
ipSans: "string",
name: "string",
description: "string",
endpointType: "string",
excludeCnFromSans: false,
format: "string",
csr: "string",
altNames: ["string"],
labels: ["string"],
customMetadata: {
string: "string",
},
otherSans: ["string"],
privateKeyFormat: "string",
region: "string",
rotation: {
autoRotate: false,
interval: 0,
unit: "string",
},
secretGroupId: "string",
smPrivateCertificateId: "string",
ttl: "string",
uriSans: "string",
versionCustomMetadata: {
string: "string",
},
});
type: ibm:SmPrivateCertificate
properties:
altNames:
- string
certificateTemplate: string
commonName: string
csr: string
customMetadata:
string: string
description: string
endpointType: string
excludeCnFromSans: false
format: string
instanceId: string
ipSans: string
labels:
- string
name: string
otherSans:
- string
privateKeyFormat: string
region: string
rotation:
autoRotate: false
interval: 0
unit: string
secretGroupId: string
smPrivateCertificateId: string
ttl: string
uriSans: string
versionCustomMetadata:
string: string
SmPrivateCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SmPrivateCertificate resource accepts the following input properties:
- Certificate
Template string - The name of the certificate template.
- 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
- Common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Instance
Id string - The GUID of the Secrets Manager instance.
- Alt
Names List<string> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Csr string
- The certificate signing request.
- Custom
Metadata Dictionary<string, string> - The secret metadata that a user can customize.
- Description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- Exclude
Cn boolFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - Format string
- The format of the returned data.
- Ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Labels List<string>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- Other
Sans List<string> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - Private
Key stringFormat - The format of the generated private key.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- Sm
Private stringCertificate Id - Ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - Uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Version
Custom Dictionary<string, string>Metadata - The secret version metadata that a user can customize.
- Certificate
Template string - The name of the certificate template.
- 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
- Common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Instance
Id string - The GUID of the Secrets Manager instance.
- Alt
Names []string - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Csr string
- The certificate signing request.
- Custom
Metadata map[string]string - The secret metadata that a user can customize.
- Description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- Exclude
Cn boolFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - Format string
- The format of the returned data.
- Ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Labels []string
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- Other
Sans []string - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - Private
Key stringFormat - The format of the generated private key.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Private Certificate Rotation Args - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- Sm
Private stringCertificate Id - Ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - Uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Version
Custom map[string]stringMetadata - The secret version metadata that a user can customize.
- certificate
Template String - The name of the certificate template.
- 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
- common
Name String - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- instance
Id String - The GUID of the Secrets Manager instance.
- alt
Names List<String> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- csr String
- The certificate signing request.
- custom
Metadata Map<String,String> - The secret metadata that a user can customize.
- description String
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- exclude
Cn BooleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - format String
- The format of the returned data.
- ip
Sans String - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- name String
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- other
Sans List<String> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key StringFormat - The format of the generated private key.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- sm
Private StringCertificate Id - ttl String
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - uri
Sans String - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- version
Custom Map<String,String>Metadata - The secret version metadata that a user can customize.
- certificate
Template string - The name of the certificate template.
- 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
- common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- instance
Id string - The GUID of the Secrets Manager instance.
- alt
Names string[] - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- csr string
- The certificate signing request.
- custom
Metadata {[key: string]: string} - The secret metadata that a user can customize.
- description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- exclude
Cn booleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - format string
- The format of the returned data.
- ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- labels string[]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- other
Sans string[] - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key stringFormat - The format of the generated private key.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- sm
Private stringCertificate Id - ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- version
Custom {[key: string]: string}Metadata - The secret version metadata that a user can customize.
- certificate_
template str - The name of the certificate template.
- 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
- common_
name str - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- instance_
id str - The GUID of the Secrets Manager instance.
- alt_
names Sequence[str] - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- csr str
- The certificate signing request.
- custom_
metadata Mapping[str, str] - The secret metadata that a user can customize.
- description str
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- exclude_
cn_ boolfrom_ sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - format str
- The format of the returned data.
- ip_
sans str - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- labels Sequence[str]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- name str
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- other_
sans Sequence[str] - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private_
key_ strformat - The format of the generated private key.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Private Certificate Rotation Args - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret_
group_ strid - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- sm_
private_ strcertificate_ id - ttl str
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - uri_
sans str - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- version_
custom_ Mapping[str, str]metadata - The secret version metadata that a user can customize.
- certificate
Template String - The name of the certificate template.
- 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
- common
Name String - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- instance
Id String - The GUID of the Secrets Manager instance.
- alt
Names List<String> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- csr String
- The certificate signing request.
- custom
Metadata Map<String> - The secret metadata that a user can customize.
- description String
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- 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:
- exclude
Cn BooleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - format String
- The format of the returned data.
- ip
Sans String - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- name String
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- other
Sans List<String> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key StringFormat - The format of the generated private key.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation Property Map
- Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- sm
Private StringCertificate Id - ttl String
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - uri
Sans String - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- version
Custom Map<String>Metadata - The secret version metadata that a user can customize.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmPrivateCertificate resource produces the following output properties:
- Ca
Chains List<string> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- 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
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- Expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- Key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Locks
Total double - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- Next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- Private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- Revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- Revocation
Time doubleSeconds - (Integer) The timestamp of the certificate revocation.
- Secret
Id string - The unique identifier of the PrivateCertificate.
- Secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- Serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- Signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- State double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- State
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Validities
List<Sm
Private Certificate Validity> - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- Versions
Total double - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- Ca
Chains []string - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- 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
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- Expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- Key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Locks
Total float64 - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- Next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- Private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- Revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- Revocation
Time float64Seconds - (Integer) The timestamp of the certificate revocation.
- Secret
Id string - The unique identifier of the PrivateCertificate.
- Secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- Serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- Signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- State float64
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- State
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Validities
[]Sm
Private Certificate Validity - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- Versions
Total float64 - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- ca
Chains List<String> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate String
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- String
- (String) The intermediate certificate authority that signed this certificate.
- 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
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- expiration
Date String - (String) The date the certificate is expired. The date format follows RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca String - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm String - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- locks
Total Double - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- next
Rotation StringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- private
Key String - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- revocation
Time StringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time DoubleSeconds - (Integer) The timestamp of the certificate revocation.
- secret
Id String - The unique identifier of the PrivateCertificate.
- secret
Type String - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number String - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm String - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- state Double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description String - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- validities
List<Sm
Private Certificate Validity> - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- versions
Total Double - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- ca
Chains string[] - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- 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
- crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- downloaded boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- id string
- The provider-assigned unique ID for this managed resource.
- issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- locks
Total number - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time numberSeconds - (Integer) The timestamp of the certificate revocation.
- secret
Id string - The unique identifier of the PrivateCertificate.
- secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- state number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- validities
Sm
Private Certificate Validity[] - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- versions
Total number - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- ca_
chains Sequence[str] - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate str
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- str
- (String) The intermediate certificate authority that signed this certificate.
- 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
- crn str
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- expiration_
date str - (String) The date the certificate is expired. The date format follows RFC 3339.
- id str
- The provider-assigned unique ID for this managed resource.
- issuer str
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing_
ca str - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key_
algorithm str - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- locks_
total float - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- next_
rotation_ strdate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- private_
key str - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- revocation_
time_ strrfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation_
time_ floatseconds - (Integer) The timestamp of the certificate revocation.
- secret_
id str - The unique identifier of the PrivateCertificate.
- secret_
type str - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial_
number str - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing_
algorithm str - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- state float
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state_
description str - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- updated_
at str - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- validities
Sequence[Sm
Private Certificate Validity] - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- versions_
total float - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- ca
Chains List<String> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate String
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- String
- (String) The intermediate certificate authority that signed this certificate.
- 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
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- expiration
Date String - (String) The date the certificate is expired. The date format follows RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca String - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm String - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- locks
Total Number - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- next
Rotation StringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- private
Key String - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- revocation
Time StringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time NumberSeconds - (Integer) The timestamp of the certificate revocation.
- secret
Id String - The unique identifier of the PrivateCertificate.
- secret
Type String - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number String - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm String - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- state Number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description String - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- validities List<Property Map>
- (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- versions
Total Number - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
Look up Existing SmPrivateCertificate Resource
Get an existing SmPrivateCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SmPrivateCertificateState, opts?: CustomResourceOptions): SmPrivateCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alt_names: Optional[Sequence[str]] = None,
ca_chains: Optional[Sequence[str]] = None,
certificate: Optional[str] = None,
certificate_authority: Optional[str] = None,
certificate_template: Optional[str] = None,
common_name: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
crn: Optional[str] = None,
csr: Optional[str] = None,
custom_metadata: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
downloaded: Optional[bool] = None,
endpoint_type: Optional[str] = None,
exclude_cn_from_sans: Optional[bool] = None,
expiration_date: Optional[str] = None,
format: Optional[str] = None,
instance_id: Optional[str] = None,
ip_sans: Optional[str] = None,
issuer: Optional[str] = None,
issuing_ca: Optional[str] = None,
key_algorithm: Optional[str] = None,
labels: Optional[Sequence[str]] = None,
locks_total: Optional[float] = None,
name: Optional[str] = None,
next_rotation_date: Optional[str] = None,
other_sans: Optional[Sequence[str]] = None,
private_key: Optional[str] = None,
private_key_format: Optional[str] = None,
region: Optional[str] = None,
revocation_time_rfc3339: Optional[str] = None,
revocation_time_seconds: Optional[float] = None,
rotation: Optional[SmPrivateCertificateRotationArgs] = None,
secret_group_id: Optional[str] = None,
secret_id: Optional[str] = None,
secret_type: Optional[str] = None,
serial_number: Optional[str] = None,
signing_algorithm: Optional[str] = None,
sm_private_certificate_id: Optional[str] = None,
state: Optional[float] = None,
state_description: Optional[str] = None,
ttl: Optional[str] = None,
updated_at: Optional[str] = None,
uri_sans: Optional[str] = None,
validities: Optional[Sequence[SmPrivateCertificateValidityArgs]] = None,
version_custom_metadata: Optional[Mapping[str, str]] = None,
versions_total: Optional[float] = None) -> SmPrivateCertificate
func GetSmPrivateCertificate(ctx *Context, name string, id IDInput, state *SmPrivateCertificateState, opts ...ResourceOption) (*SmPrivateCertificate, error)
public static SmPrivateCertificate Get(string name, Input<string> id, SmPrivateCertificateState? state, CustomResourceOptions? opts = null)
public static SmPrivateCertificate get(String name, Output<String> id, SmPrivateCertificateState state, CustomResourceOptions options)
resources: _: type: ibm:SmPrivateCertificate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alt
Names List<string> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Ca
Chains List<string> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- Certificate
Template string - The name of the certificate template.
- 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
- Common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Csr string
- The certificate signing request.
- Custom
Metadata Dictionary<string, string> - The secret metadata that a user can customize.
- Description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- Exclude
Cn boolFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - Expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- Format string
- The format of the returned data.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- Key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Labels List<string>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Locks
Total double - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- Name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- Next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- Other
Sans List<string> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - Private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- Private
Key stringFormat - The format of the generated private key.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- Revocation
Time doubleSeconds - (Integer) The timestamp of the certificate revocation.
- Rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- Secret
Id string - The unique identifier of the PrivateCertificate.
- Secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- Serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- Signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Sm
Private stringCertificate Id - State double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- State
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- Ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Validities
List<Sm
Private Certificate Validity> - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- Version
Custom Dictionary<string, string>Metadata - The secret version metadata that a user can customize.
- Versions
Total double - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- Alt
Names []string - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Ca
Chains []string - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- Certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- Certificate
Template string - The name of the certificate template.
- 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
- Common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- Crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Csr string
- The certificate signing request.
- Custom
Metadata map[string]string - The secret metadata that a user can customize.
- Description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- Exclude
Cn boolFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - Expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- Format string
- The format of the returned data.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- Key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Labels []string
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- Locks
Total float64 - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- Name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- Next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- Other
Sans []string - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - Private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- Private
Key stringFormat - The format of the generated private key.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- Revocation
Time float64Seconds - (Integer) The timestamp of the certificate revocation.
- Rotation
Sm
Private Certificate Rotation Args - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- Secret
Id string - The unique identifier of the PrivateCertificate.
- Secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- Serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- Signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Sm
Private stringCertificate Id - State float64
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- State
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- Ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- Validities
[]Sm
Private Certificate Validity Args - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- Version
Custom map[string]stringMetadata - The secret version metadata that a user can customize.
- Versions
Total float64 - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- alt
Names List<String> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- ca
Chains List<String> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate String
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- String
- (String) The intermediate certificate authority that signed this certificate.
- certificate
Template String - The name of the certificate template.
- 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
- common
Name String - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- csr String
- The certificate signing request.
- custom
Metadata Map<String,String> - The secret metadata that a user can customize.
- description String
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- exclude
Cn BooleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - expiration
Date String - (String) The date the certificate is expired. The date format follows RFC 3339.
- format String
- The format of the returned data.
- instance
Id String - The GUID of the Secrets Manager instance.
- ip
Sans String - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- issuer String
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca String - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm String - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- locks
Total Double - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- name String
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- next
Rotation StringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- other
Sans List<String> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key String - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- private
Key StringFormat - The format of the generated private key.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- revocation
Time StringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time DoubleSeconds - (Integer) The timestamp of the certificate revocation.
- rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- secret
Id String - The unique identifier of the PrivateCertificate.
- secret
Type String - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number String - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm String - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- sm
Private StringCertificate Id - state Double
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description String - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- ttl String
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- uri
Sans String - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- validities
List<Sm
Private Certificate Validity> - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- version
Custom Map<String,String>Metadata - The secret version metadata that a user can customize.
- versions
Total Double - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- alt
Names string[] - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- ca
Chains string[] - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate string
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- string
- (String) The intermediate certificate authority that signed this certificate.
- certificate
Template string - The name of the certificate template.
- 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
- common
Name string - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- crn string
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- csr string
- The certificate signing request.
- custom
Metadata {[key: string]: string} - The secret metadata that a user can customize.
- description string
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- downloaded boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- exclude
Cn booleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - expiration
Date string - (String) The date the certificate is expired. The date format follows RFC 3339.
- format string
- The format of the returned data.
- instance
Id string - The GUID of the Secrets Manager instance.
- ip
Sans string - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- issuer string
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca string - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm string - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- labels string[]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- locks
Total number - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- name string
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- next
Rotation stringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- other
Sans string[] - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key string - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- private
Key stringFormat - The format of the generated private key.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- revocation
Time stringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time numberSeconds - (Integer) The timestamp of the certificate revocation.
- rotation
Sm
Private Certificate Rotation - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group stringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- secret
Id string - The unique identifier of the PrivateCertificate.
- secret
Type string - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number string - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm string - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- sm
Private stringCertificate Id - state number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description string - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- ttl string
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- uri
Sans string - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- validities
Sm
Private Certificate Validity[] - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- version
Custom {[key: string]: string}Metadata - The secret version metadata that a user can customize.
- versions
Total number - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- alt_
names Sequence[str] - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- ca_
chains Sequence[str] - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate str
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- str
- (String) The intermediate certificate authority that signed this certificate.
- certificate_
template str - The name of the certificate template.
- 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
- common_
name str - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- crn str
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- csr str
- The certificate signing request.
- custom_
metadata Mapping[str, str] - The secret metadata that a user can customize.
- description str
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- downloaded bool
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- exclude_
cn_ boolfrom_ sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - expiration_
date str - (String) The date the certificate is expired. The date format follows RFC 3339.
- format str
- The format of the returned data.
- instance_
id str - The GUID of the Secrets Manager instance.
- ip_
sans str - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- issuer str
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing_
ca str - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key_
algorithm str - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- labels Sequence[str]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- locks_
total float - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- name str
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- next_
rotation_ strdate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- other_
sans Sequence[str] - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private_
key str - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- private_
key_ strformat - The format of the generated private key.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- revocation_
time_ strrfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation_
time_ floatseconds - (Integer) The timestamp of the certificate revocation.
- rotation
Sm
Private Certificate Rotation Args - Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret_
group_ strid - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- secret_
id str - The unique identifier of the PrivateCertificate.
- secret_
type str - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial_
number str - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing_
algorithm str - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- sm_
private_ strcertificate_ id - state float
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state_
description str - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- ttl str
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - updated_
at str - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- uri_
sans str - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- validities
Sequence[Sm
Private Certificate Validity Args] - (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- version_
custom_ Mapping[str, str]metadata - The secret version metadata that a user can customize.
- versions_
total float - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
- alt
Names List<String> - (Forces new resource, List) With the Subject Alternative Name field, you can specify additional host names to be protected by a single SSL certificate.
- Constraints: The list items must match regular expression
/^(.*?)$/
. The maximum length is99
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- ca
Chains List<String> - (List) The chain of certificate authorities that are associated with the certificate.
- Constraints: The list items must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
. The maximum length is16
items. The minimum length is1
item.
- Constraints: The list items must match regular expression
- certificate String
- (Forces new resource, String) The PEM-encoded contents of your certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- String
- (String) The intermediate certificate authority that signed this certificate.
- certificate
Template String - The name of the certificate template.
- 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
- common
Name String - The Common Name (AKA CN) represents the server name that is protected by the SSL certificate.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- 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
- crn String
- (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- csr String
- The certificate signing request.
- custom
Metadata Map<String> - The secret metadata that a user can customize.
- description String
- An extended description of your secret.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- downloaded Boolean
- (Boolean) Indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
- 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:
- exclude
Cn BooleanFrom Sans - Controls whether the common name is excluded from Subject Alternative Names (SANs).If the common name set to
true
, it is not included in DNS or Email SANs if they apply. This field can be useful if the common name is a human-readable identifier, instead of a hostname or an email address. - expiration
Date String - (String) The date the certificate is expired. The date format follows RFC 3339.
- format String
- The format of the returned data.
- instance
Id String - The GUID of the Secrets Manager instance.
- ip
Sans String - The IP Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- issuer String
- (Forces new resource, String) The distinguished name that identifies the entity that signed and issued the certificate.
- Constraints: The maximum length is
128
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- issuing
Ca String - (String) The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
- Constraints: The value must match regular expression
/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The value must match regular expression
- key
Algorithm String - (String) The identifier for the cryptographic algorithm used to generate the public key that is associated with the certificate.
- Constraints: The maximum length is
10
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The list items must match regular expression
/(.*?)/
. The maximum length is30
items. The minimum length is0
items.
- Constraints: The list items must match regular expression
- locks
Total Number - (Integer) The number of locks of the secret.
- Constraints: The maximum value is
1000
. The minimum value is0
.
- Constraints: The maximum value is
- name String
- The human-readable name of your secret.
- Constraints: The maximum length is
256
characters. The minimum length is2
characters. The value must match regular expression^[A-Za-z0-9_][A-Za-z0-9_]*(?:_*-*\.*[A-Za-z0-9]*)*[A-Za-z0-9]+$
.
- Constraints: The maximum length is
- next
Rotation StringDate - (String) The date that the secret is scheduled for automatic rotation.The service automatically creates a new version of the secret on its next rotation date. This field exists only for secrets that have an existing rotation policy.
- other
Sans List<String> - The custom Object Identifier (OID) or UTF8-string Subject Alternative Names to define for the CA certificate.The
alternative names must match the values that are specified in the
allowed_other_sans
field in the associated certificate template. The format is the same as OpenSSL:<oid>:<type>:<value>
where the current valid type isUTF8
. - private
Key String - (Forces new resource, String) (Optional) The PEM-encoded private key to associate with the certificate.
- Constraints: The maximum length is
100000
characters. The minimum length is50
characters. The value must match regular expression/^(-{5}BEGIN.+?-{5}[\\s\\S]+-{5}END.+?-{5})$/
.
- Constraints: The maximum length is
- private
Key StringFormat - The format of the generated private key.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- revocation
Time StringRfc3339 - (String) The date and time that the certificate was revoked. The date format follows RFC 3339.
- revocation
Time NumberSeconds - (Integer) The timestamp of the certificate revocation.
- rotation Property Map
- Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - A UUID identifier, or
default
secret group.- Constraints: The maximum length is
36
characters. The minimum length is7
characters. The value must match regular expression/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|default)$/
.
- Constraints: The maximum length is
- secret
Id String - The unique identifier of the PrivateCertificate.
- secret
Type String - (String) The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, key-value, and user credentials.
- Constraints: Allowable values are:
arbitrary
,imported_cert
,public_cert
,iam_credentials
,kv
,username_password
,private_cert
.
- Constraints: Allowable values are:
- serial
Number String - (String) The unique serial number that was assigned to a certificate by the issuing certificate authority.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/[^a-fA-F0-9]/
.
- Constraints: The maximum length is
- signing
Algorithm String - (String) The identifier for the cryptographic algorithm that was used by the issuing certificate authority to sign a certificate.
- Constraints: The maximum length is
64
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- sm
Private StringCertificate Id - state Number
- (Integer) The secret state that is based on NIST SP 800-57. States are integers and correspond to the
Pre-activation = 0
,Active = 1
,Suspended = 2
,Deactivated = 3
, andDestroyed = 5
values.- Constraints: Allowable values are:
0
,1
,2
,3
,5
.
- Constraints: Allowable values are:
- state
Description String - (String) A text representation of the secret state.
- Constraints: Allowable values are:
pre_activation
,active
,suspended
,deactivated
,destroyed
.
- Constraints: Allowable values are:
- ttl String
- The time-to-live (TTL) to assign to the private certificate. The value can be supplied as a string duration with time unit suffix -
d
for days,h
for hours,m
for minutes, ors
for seconds. For example,2d
or48h
or172800s
. - updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- uri
Sans String - The URI Subject Alternative Names to define for the CA certificate, in a comma-delimited list.
- validities List<Property Map>
- (List) The date and time that the certificate validity period begins and ends. Nested scheme for validity:
- version
Custom Map<String>Metadata - The secret version metadata that a user can customize.
- versions
Total Number - (Integer) The number of versions of the secret.
- Constraints: The maximum value is
50
. The minimum value is0
.
- Constraints: The maximum value is
Supporting Types
SmPrivateCertificateRotation, SmPrivateCertificateRotationArgs
- Auto
Rotate bool - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - Interval double
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- Unit string
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- Auto
Rotate bool - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - Interval float64
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- Unit string
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate Boolean - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - interval Double
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit String
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate boolean - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - interval number
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit string
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto_
rotate bool - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - interval float
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit str
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate Boolean - Determines whether Secrets Manager rotates your secret automatically.Default is
false
. Ifauto_rotate
is set totrue
the service rotates your secret based on the defined interval. - interval Number
- The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit String
- The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
SmPrivateCertificateValidity, SmPrivateCertificateValidityArgs
- not_
after str - (String) The date-time format follows RFC 3339.
- not_
before str - (String) The date-time format follows RFC 3339.
Import
You can import the ibm_sm_private_certificate
resource by using region
, instance_id
, and secret_id
.
For more information, see the documentation
Syntax
bash
$ pulumi import ibm:index/smPrivateCertificate:SmPrivateCertificate sm_private_certificate <region>/<instance_id>/<secret_id>
Example
bash
$ pulumi import ibm:index/smPrivateCertificate:SmPrivateCertificate sm_private_certificate us-east/6ebc4224-e983-496a-8a54-f40a0bfa9175/b49ad24d-81d4-5ebc-b9b9-b0937d1c84d5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.