ibm.SmCustomCredentialsSecret
Explore with Pulumi AI
A resource for a custom credentials secret. This allows a custom credentials secret to be created, updated and deleted. For more information, see the docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const smCustomCredentialsSecret = new ibm.SmCustomCredentialsSecret("smCustomCredentialsSecret", {
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
secretGroupId: ibm_sm_secret_group.sm_secret_group.secret_group_id,
customMetadata: {
key: "value",
},
description: "Extended description for this secret.",
labels: ["my-label"],
configuration: "my_custom_credentials_configuration",
parameters: {
integerValues: {
example_param_1: 17,
},
stringValues: {
example_param_2: "str2",
example_param_3: "str3",
},
booleanValues: {
example_param_4: false,
},
},
rotation: {
autoRotate: true,
interval: 3,
unit: "day",
},
ttl: "864000",
});
import pulumi
import pulumi_ibm as ibm
sm_custom_credentials_secret = ibm.SmCustomCredentialsSecret("smCustomCredentialsSecret",
instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
secret_group_id=ibm_sm_secret_group["sm_secret_group"]["secret_group_id"],
custom_metadata={
"key": "value",
},
description="Extended description for this secret.",
labels=["my-label"],
configuration="my_custom_credentials_configuration",
parameters={
"integer_values": {
"example_param_1": 17,
},
"string_values": {
"example_param_2": "str2",
"example_param_3": "str3",
},
"boolean_values": {
"example_param_4": False,
},
},
rotation={
"auto_rotate": True,
"interval": 3,
"unit": "day",
},
ttl="864000")
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.NewSmCustomCredentialsSecret(ctx, "smCustomCredentialsSecret", &ibm.SmCustomCredentialsSecretArgs{
InstanceId: pulumi.Any(ibm_resource_instance.Sm_instance.Guid),
Region: pulumi.String("us-south"),
SecretGroupId: pulumi.Any(ibm_sm_secret_group.Sm_secret_group.Secret_group_id),
CustomMetadata: pulumi.StringMap{
"key": pulumi.String("value"),
},
Description: pulumi.String("Extended description for this secret."),
Labels: pulumi.StringArray{
pulumi.String("my-label"),
},
Configuration: pulumi.String("my_custom_credentials_configuration"),
Parameters: &ibm.SmCustomCredentialsSecretParametersArgs{
IntegerValues: pulumi.Float64Map{
"example_param_1": pulumi.Float64(17),
},
StringValues: pulumi.StringMap{
"example_param_2": pulumi.String("str2"),
"example_param_3": pulumi.String("str3"),
},
BooleanValues: pulumi.BoolMap{
"example_param_4": pulumi.Bool(false),
},
},
Rotation: &ibm.SmCustomCredentialsSecretRotationArgs{
AutoRotate: pulumi.Bool(true),
Interval: pulumi.Float64(3),
Unit: pulumi.String("day"),
},
Ttl: pulumi.String("864000"),
})
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 smCustomCredentialsSecret = new Ibm.SmCustomCredentialsSecret("smCustomCredentialsSecret", new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
SecretGroupId = ibm_sm_secret_group.Sm_secret_group.Secret_group_id,
CustomMetadata =
{
{ "key", "value" },
},
Description = "Extended description for this secret.",
Labels = new[]
{
"my-label",
},
Configuration = "my_custom_credentials_configuration",
Parameters = new Ibm.Inputs.SmCustomCredentialsSecretParametersArgs
{
IntegerValues =
{
{ "example_param_1", 17 },
},
StringValues =
{
{ "example_param_2", "str2" },
{ "example_param_3", "str3" },
},
BooleanValues =
{
{ "example_param_4", false },
},
},
Rotation = new Ibm.Inputs.SmCustomCredentialsSecretRotationArgs
{
AutoRotate = true,
Interval = 3,
Unit = "day",
},
Ttl = "864000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SmCustomCredentialsSecret;
import com.pulumi.ibm.SmCustomCredentialsSecretArgs;
import com.pulumi.ibm.inputs.SmCustomCredentialsSecretParametersArgs;
import com.pulumi.ibm.inputs.SmCustomCredentialsSecretRotationArgs;
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 smCustomCredentialsSecret = new SmCustomCredentialsSecret("smCustomCredentialsSecret", SmCustomCredentialsSecretArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.secretGroupId(ibm_sm_secret_group.sm_secret_group().secret_group_id())
.customMetadata(Map.of("key", "value"))
.description("Extended description for this secret.")
.labels("my-label")
.configuration("my_custom_credentials_configuration")
.parameters(SmCustomCredentialsSecretParametersArgs.builder()
.integerValues(Map.of("example_param_1", 17))
.stringValues(Map.ofEntries(
Map.entry("example_param_2", "str2"),
Map.entry("example_param_3", "str3")
))
.booleanValues(Map.of("example_param_4", false))
.build())
.rotation(SmCustomCredentialsSecretRotationArgs.builder()
.autoRotate(true)
.interval(3)
.unit("day")
.build())
.ttl("864000")
.build());
}
}
resources:
smCustomCredentialsSecret:
type: ibm:SmCustomCredentialsSecret
properties:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
secretGroupId: ${ibm_sm_secret_group.sm_secret_group.secret_group_id}
customMetadata:
key: value
description: Extended description for this secret.
labels:
- my-label
configuration: my_custom_credentials_configuration
parameters:
integerValues:
example_param_1: 17
stringValues:
example_param_2: str2
example_param_3: str3
booleanValues:
example_param_4: false
rotation:
autoRotate: true
interval: 3
unit: day
ttl: '864000'
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 SmCustomCredentialsSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmCustomCredentialsSecret(name: string, args: SmCustomCredentialsSecretArgs, opts?: CustomResourceOptions);
@overload
def SmCustomCredentialsSecret(resource_name: str,
args: SmCustomCredentialsSecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmCustomCredentialsSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
configuration: Optional[str] = None,
name: Optional[str] = None,
endpoint_type: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Sequence[str]] = None,
custom_metadata: Optional[Mapping[str, str]] = None,
parameters: Optional[SmCustomCredentialsSecretParametersArgs] = None,
region: Optional[str] = None,
rotation: Optional[SmCustomCredentialsSecretRotationArgs] = None,
secret_group_id: Optional[str] = None,
sm_custom_credentials_secret_id: Optional[str] = None,
ttl: Optional[str] = None,
version_custom_metadata: Optional[Mapping[str, str]] = None)
func NewSmCustomCredentialsSecret(ctx *Context, name string, args SmCustomCredentialsSecretArgs, opts ...ResourceOption) (*SmCustomCredentialsSecret, error)
public SmCustomCredentialsSecret(string name, SmCustomCredentialsSecretArgs args, CustomResourceOptions? opts = null)
public SmCustomCredentialsSecret(String name, SmCustomCredentialsSecretArgs args)
public SmCustomCredentialsSecret(String name, SmCustomCredentialsSecretArgs args, CustomResourceOptions options)
type: ibm:SmCustomCredentialsSecret
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 SmCustomCredentialsSecretArgs
- 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 SmCustomCredentialsSecretArgs
- 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 SmCustomCredentialsSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmCustomCredentialsSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmCustomCredentialsSecretArgs
- 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 smCustomCredentialsSecretResource = new Ibm.SmCustomCredentialsSecret("smCustomCredentialsSecretResource", new()
{
InstanceId = "string",
Configuration = "string",
Name = "string",
EndpointType = "string",
Description = "string",
Labels = new[]
{
"string",
},
CustomMetadata =
{
{ "string", "string" },
},
Parameters = new Ibm.Inputs.SmCustomCredentialsSecretParametersArgs
{
BooleanValues =
{
{ "string", false },
},
IntegerValues =
{
{ "string", 0 },
},
StringValues =
{
{ "string", "string" },
},
},
Region = "string",
Rotation = new Ibm.Inputs.SmCustomCredentialsSecretRotationArgs
{
AutoRotate = false,
Interval = 0,
Unit = "string",
},
SecretGroupId = "string",
SmCustomCredentialsSecretId = "string",
Ttl = "string",
VersionCustomMetadata =
{
{ "string", "string" },
},
});
example, err := ibm.NewSmCustomCredentialsSecret(ctx, "smCustomCredentialsSecretResource", &ibm.SmCustomCredentialsSecretArgs{
InstanceId: pulumi.String("string"),
Configuration: pulumi.String("string"),
Name: pulumi.String("string"),
EndpointType: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringArray{
pulumi.String("string"),
},
CustomMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Parameters: &ibm.SmCustomCredentialsSecretParametersArgs{
BooleanValues: pulumi.BoolMap{
"string": pulumi.Bool(false),
},
IntegerValues: pulumi.Float64Map{
"string": pulumi.Float64(0),
},
StringValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Region: pulumi.String("string"),
Rotation: &ibm.SmCustomCredentialsSecretRotationArgs{
AutoRotate: pulumi.Bool(false),
Interval: pulumi.Float64(0),
Unit: pulumi.String("string"),
},
SecretGroupId: pulumi.String("string"),
SmCustomCredentialsSecretId: pulumi.String("string"),
Ttl: pulumi.String("string"),
VersionCustomMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var smCustomCredentialsSecretResource = new SmCustomCredentialsSecret("smCustomCredentialsSecretResource", SmCustomCredentialsSecretArgs.builder()
.instanceId("string")
.configuration("string")
.name("string")
.endpointType("string")
.description("string")
.labels("string")
.customMetadata(Map.of("string", "string"))
.parameters(SmCustomCredentialsSecretParametersArgs.builder()
.booleanValues(Map.of("string", false))
.integerValues(Map.of("string", 0.0))
.stringValues(Map.of("string", "string"))
.build())
.region("string")
.rotation(SmCustomCredentialsSecretRotationArgs.builder()
.autoRotate(false)
.interval(0.0)
.unit("string")
.build())
.secretGroupId("string")
.smCustomCredentialsSecretId("string")
.ttl("string")
.versionCustomMetadata(Map.of("string", "string"))
.build());
sm_custom_credentials_secret_resource = ibm.SmCustomCredentialsSecret("smCustomCredentialsSecretResource",
instance_id="string",
configuration="string",
name="string",
endpoint_type="string",
description="string",
labels=["string"],
custom_metadata={
"string": "string",
},
parameters={
"boolean_values": {
"string": False,
},
"integer_values": {
"string": 0,
},
"string_values": {
"string": "string",
},
},
region="string",
rotation={
"auto_rotate": False,
"interval": 0,
"unit": "string",
},
secret_group_id="string",
sm_custom_credentials_secret_id="string",
ttl="string",
version_custom_metadata={
"string": "string",
})
const smCustomCredentialsSecretResource = new ibm.SmCustomCredentialsSecret("smCustomCredentialsSecretResource", {
instanceId: "string",
configuration: "string",
name: "string",
endpointType: "string",
description: "string",
labels: ["string"],
customMetadata: {
string: "string",
},
parameters: {
booleanValues: {
string: false,
},
integerValues: {
string: 0,
},
stringValues: {
string: "string",
},
},
region: "string",
rotation: {
autoRotate: false,
interval: 0,
unit: "string",
},
secretGroupId: "string",
smCustomCredentialsSecretId: "string",
ttl: "string",
versionCustomMetadata: {
string: "string",
},
});
type: ibm:SmCustomCredentialsSecret
properties:
configuration: string
customMetadata:
string: string
description: string
endpointType: string
instanceId: string
labels:
- string
name: string
parameters:
booleanValues:
string: false
integerValues:
string: 0
stringValues:
string: string
region: string
rotation:
autoRotate: false
interval: 0
unit: string
secretGroupId: string
smCustomCredentialsSecretId: string
ttl: string
versionCustomMetadata:
string: string
SmCustomCredentialsSecret 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 SmCustomCredentialsSecret resource accepts the following input properties:
- Configuration string
- The name of the custom credentials secret configuration.
- Instance
Id string - The GUID of the Secrets Manager instance.
- 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.
- 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:
- Labels List<string>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- Parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Custom Credentials Secret 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
Custom stringCredentials Secret Id - Ttl string
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- Version
Custom Dictionary<string, string>Metadata - (Map) The custom metadata of the current secret version.
- Configuration string
- The name of the custom credentials secret configuration.
- Instance
Id string - The GUID of the Secrets Manager instance.
- 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.
- 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:
- Labels []string
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- Parameters
Sm
Custom Credentials Secret Parameters Args - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Custom Credentials Secret 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
Custom stringCredentials Secret Id - Ttl string
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- Version
Custom map[string]stringMetadata - (Map) The custom metadata of the current secret version.
- configuration String
- The name of the custom credentials secret configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- 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.
- 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:
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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
Custom StringCredentials Secret Id - ttl String
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- version
Custom Map<String,String>Metadata - (Map) The custom metadata of the current secret version.
- configuration string
- The name of the custom credentials secret configuration.
- instance
Id string - The GUID of the Secrets Manager instance.
- 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.
- 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:
- labels string[]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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
Custom stringCredentials Secret Id - ttl string
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- version
Custom {[key: string]: string}Metadata - (Map) The custom metadata of the current secret version.
- configuration str
- The name of the custom credentials secret configuration.
- instance_
id str - The GUID of the Secrets Manager instance.
- 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.
- 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:
- labels Sequence[str]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- parameters
Sm
Custom Credentials Secret Parameters Args - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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_
custom_ strcredentials_ secret_ id - ttl str
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- version_
custom_ Mapping[str, str]metadata - (Map) The custom metadata of the current secret version.
- configuration String
- The name of the custom credentials secret configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- 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.
- 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:
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- Constraints: The maximum length 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
- parameters Property Map
- The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- 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
Custom StringCredentials Secret Id - ttl String
- The time-to-live (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- version
Custom Map<String>Metadata - (Map) The custom metadata of the current secret version.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmCustomCredentialsSecret resource produces the following output properties:
- 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
- Credentials
Contents List<SmCustom Credentials Secret Credentials Content> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Secret
Id string - The unique identifier of the secret.
- 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.
- 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
- 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
- Credentials
Contents []SmCustom Credentials Secret Credentials Content - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Secret
Id string - The unique identifier of the secret.
- 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.
- 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
- 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
- credentials
Contents List<SmCustom Credentials Secret Credentials Content> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- secret
Id String - The unique identifier of the secret.
- 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.
- 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
- 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
- credentials
Contents SmCustom Credentials Secret Credentials Content[] - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- secret
Id string - The unique identifier of the secret.
- 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.
- 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
- 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
- credentials_
contents Sequence[SmCustom Credentials Secret Credentials Content] - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- secret_
id str - The unique identifier of the secret.
- 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.
- 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
- 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
- credentials
Contents List<Property Map> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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 a secret is expired. The date format follows RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- secret
Id String - The unique identifier of the secret.
- 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.
- 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 SmCustomCredentialsSecret Resource
Get an existing SmCustomCredentialsSecret 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?: SmCustomCredentialsSecretState, opts?: CustomResourceOptions): SmCustomCredentialsSecret
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
credentials_contents: Optional[Sequence[SmCustomCredentialsSecretCredentialsContentArgs]] = None,
crn: Optional[str] = None,
custom_metadata: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
downloaded: Optional[bool] = None,
endpoint_type: Optional[str] = None,
expiration_date: Optional[str] = None,
instance_id: Optional[str] = None,
labels: Optional[Sequence[str]] = None,
locks_total: Optional[float] = None,
name: Optional[str] = None,
next_rotation_date: Optional[str] = None,
parameters: Optional[SmCustomCredentialsSecretParametersArgs] = None,
region: Optional[str] = None,
rotation: Optional[SmCustomCredentialsSecretRotationArgs] = None,
secret_group_id: Optional[str] = None,
secret_id: Optional[str] = None,
sm_custom_credentials_secret_id: Optional[str] = None,
state: Optional[float] = None,
state_description: Optional[str] = None,
ttl: Optional[str] = None,
updated_at: Optional[str] = None,
version_custom_metadata: Optional[Mapping[str, str]] = None,
versions_total: Optional[float] = None) -> SmCustomCredentialsSecret
func GetSmCustomCredentialsSecret(ctx *Context, name string, id IDInput, state *SmCustomCredentialsSecretState, opts ...ResourceOption) (*SmCustomCredentialsSecret, error)
public static SmCustomCredentialsSecret Get(string name, Input<string> id, SmCustomCredentialsSecretState? state, CustomResourceOptions? opts = null)
public static SmCustomCredentialsSecret get(String name, Output<String> id, SmCustomCredentialsSecretState state, CustomResourceOptions options)
resources: _: type: ibm:SmCustomCredentialsSecret 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.
- Configuration string
- The name of the custom credentials secret configuration.
- 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
- Credentials
Contents List<SmCustom Credentials Secret Credentials Content> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- Expiration
Date string - (String) The date a secret is expired. The date format follows RFC 3339.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Labels List<string>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- Parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Custom Credentials Secret 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 secret.
- Sm
Custom stringCredentials Secret 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Version
Custom Dictionary<string, string>Metadata - (Map) The custom metadata of the current secret version.
- 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
- Configuration string
- The name of the custom credentials secret configuration.
- 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
- Credentials
Contents []SmCustom Credentials Secret Credentials Content Args - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- Expiration
Date string - (String) The date a secret is expired. The date format follows RFC 3339.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Labels []string
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- Parameters
Sm
Custom Credentials Secret Parameters Args - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Rotation
Sm
Custom Credentials Secret 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 secret.
- Sm
Custom stringCredentials Secret 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Version
Custom map[string]stringMetadata - (Map) The custom metadata of the current secret version.
- 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
- configuration String
- The name of the custom credentials secret configuration.
- 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
- credentials
Contents List<SmCustom Credentials Secret Credentials Content> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- expiration
Date String - (String) The date a secret is expired. The date format follows RFC 3339.
- instance
Id String - The GUID of the Secrets Manager instance.
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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 secret.
- sm
Custom StringCredentials Secret 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- version
Custom Map<String,String>Metadata - (Map) The custom metadata of the current secret version.
- 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
- configuration string
- The name of the custom credentials secret configuration.
- 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
- credentials
Contents SmCustom Credentials Secret Credentials Content[] - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- expiration
Date string - (String) The date a secret is expired. The date format follows RFC 3339.
- instance
Id string - The GUID of the Secrets Manager instance.
- labels string[]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- parameters
Sm
Custom Credentials Secret Parameters - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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 secret.
- sm
Custom stringCredentials Secret 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- version
Custom {[key: string]: string}Metadata - (Map) The custom metadata of the current secret version.
- 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
- configuration str
- The name of the custom credentials secret configuration.
- 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
- credentials_
contents Sequence[SmCustom Credentials Secret Credentials Content Args] - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- expiration_
date str - (String) The date a secret is expired. The date format follows RFC 3339.
- instance_
id str - The GUID of the Secrets Manager instance.
- labels Sequence[str]
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- parameters
Sm
Custom Credentials Secret Parameters Args - The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- rotation
Sm
Custom Credentials Secret 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 secret.
- sm_
custom_ strcredentials_ secret_ 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- updated_
at str - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- version_
custom_ Mapping[str, str]metadata - (Map) The custom metadata of the current secret version.
- 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
- configuration String
- The name of the custom credentials secret configuration.
- 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
- credentials
Contents List<Property Map> - (List) The credentials that were generated for this secret. Nested scheme for credentials_content:
- 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
- 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.
- 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:
- expiration
Date String - (String) The date a secret is expired. The date format follows RFC 3339.
- instance
Id String - The GUID of the Secrets Manager instance.
- labels List<String>
- Labels that you can use to search for secrets in your instance.Up to 30 labels can be created.
- Constraints: The maximum length is
30
items.
- 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
- 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.
- parameters Property Map
- The parameters that are passed to the Code Engine job. Nested scheme for parameters:
- 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
- secret
Id String - The unique identifier of the secret.
- sm
Custom StringCredentials Secret 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 (in seconds) to assign to generated credentials. Minimum duration is 86400 seconds (one day).
- Constraints: Must represent an integer not less than 86400.
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- version
Custom Map<String>Metadata - (Map) The custom metadata of the current secret version.
- 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
SmCustomCredentialsSecretCredentialsContent, SmCustomCredentialsSecretCredentialsContentArgs
- Boolean
Values Dictionary<string, bool> - (Map) Values of boolean credentials.
- Integer
Values Dictionary<string, double> - (Map) Values of integer credentials.
- String
Values Dictionary<string, string> - (Map) Values of string credentials.
- Boolean
Values map[string]bool - (Map) Values of boolean credentials.
- Integer
Values map[string]float64 - (Map) Values of integer credentials.
- String
Values map[string]string - (Map) Values of string credentials.
- boolean
Values Map<String,Boolean> - (Map) Values of boolean credentials.
- integer
Values Map<String,Double> - (Map) Values of integer credentials.
- string
Values Map<String,String> - (Map) Values of string credentials.
- boolean
Values {[key: string]: boolean} - (Map) Values of boolean credentials.
- integer
Values {[key: string]: number} - (Map) Values of integer credentials.
- string
Values {[key: string]: string} - (Map) Values of string credentials.
- boolean_
values Mapping[str, bool] - (Map) Values of boolean credentials.
- integer_
values Mapping[str, float] - (Map) Values of integer credentials.
- string_
values Mapping[str, str] - (Map) Values of string credentials.
- boolean
Values Map<Boolean> - (Map) Values of boolean credentials.
- integer
Values Map<Number> - (Map) Values of integer credentials.
- string
Values Map<String> - (Map) Values of string credentials.
SmCustomCredentialsSecretParameters, SmCustomCredentialsSecretParametersArgs
- Boolean
Values Dictionary<string, bool> - Values of boolean parameters.
- Integer
Values Dictionary<string, double> - Values of integer parameters.
- String
Values Dictionary<string, string> - Values of string parameters.
- Boolean
Values map[string]bool - Values of boolean parameters.
- Integer
Values map[string]float64 - Values of integer parameters.
- String
Values map[string]string - Values of string parameters.
- boolean
Values Map<String,Boolean> - Values of boolean parameters.
- integer
Values Map<String,Double> - Values of integer parameters.
- string
Values Map<String,String> - Values of string parameters.
- boolean
Values {[key: string]: boolean} - Values of boolean parameters.
- integer
Values {[key: string]: number} - Values of integer parameters.
- string
Values {[key: string]: string} - Values of string parameters.
- boolean_
values Mapping[str, bool] - Values of boolean parameters.
- integer_
values Mapping[str, float] - Values of integer parameters.
- string_
values Mapping[str, str] - Values of string parameters.
- boolean
Values Map<Boolean> - Values of boolean parameters.
- integer
Values Map<Number> - Values of integer parameters.
- string
Values Map<String> - Values of string parameters.
SmCustomCredentialsSecretRotation, SmCustomCredentialsSecretRotationArgs
- 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:
Import
You can import the ibm_sm_custom_credentials_secret
resource by using region
, instance_id
, and secret_id
.
For more information, see the documentation
Syntax
bash
$ pulumi import ibm:index/smCustomCredentialsSecret:SmCustomCredentialsSecret sm_custom_credentials_secret <region>/<instance_id>/<secret_id>
Example
bash
$ pulumi import ibm:index/smCustomCredentialsSecret:SmCustomCredentialsSecret sm_custom_credentials_secret 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.