ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSmServiceCredentialsSecretMetadata
Explore with Pulumi AI
Provides a read-only data source for the metadata of an service credentials secret. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const serviceCredentialsSecretMetadata = ibm.getSmServiceCredentialsSecretMetadata({
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
secretId: "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
});
import pulumi
import pulumi_ibm as ibm
service_credentials_secret_metadata = ibm.get_sm_service_credentials_secret_metadata(instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
secret_id="0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
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.GetSmServiceCredentialsSecretMetadata(ctx, &ibm.GetSmServiceCredentialsSecretMetadataArgs{
InstanceId: ibm_resource_instance.Sm_instance.Guid,
Region: pulumi.StringRef("us-south"),
SecretId: "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var serviceCredentialsSecretMetadata = Ibm.GetSmServiceCredentialsSecretMetadata.Invoke(new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
SecretId = "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSmServiceCredentialsSecretMetadataArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var serviceCredentialsSecretMetadata = IbmFunctions.getSmServiceCredentialsSecretMetadata(GetSmServiceCredentialsSecretMetadataArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.secretId("0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
.build());
}
}
variables:
serviceCredentialsSecretMetadata:
fn::invoke:
function: ibm:getSmServiceCredentialsSecretMetadata
arguments:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
secretId: 0b5571f7-21e6-42b7-91c5-3f5ac9793a46
Using getSmServiceCredentialsSecretMetadata
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSmServiceCredentialsSecretMetadata(args: GetSmServiceCredentialsSecretMetadataArgs, opts?: InvokeOptions): Promise<GetSmServiceCredentialsSecretMetadataResult>
function getSmServiceCredentialsSecretMetadataOutput(args: GetSmServiceCredentialsSecretMetadataOutputArgs, opts?: InvokeOptions): Output<GetSmServiceCredentialsSecretMetadataResult>
def get_sm_service_credentials_secret_metadata(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
secret_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmServiceCredentialsSecretMetadataResult
def get_sm_service_credentials_secret_metadata_output(endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
secret_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSmServiceCredentialsSecretMetadataResult]
func GetSmServiceCredentialsSecretMetadata(ctx *Context, args *GetSmServiceCredentialsSecretMetadataArgs, opts ...InvokeOption) (*GetSmServiceCredentialsSecretMetadataResult, error)
func GetSmServiceCredentialsSecretMetadataOutput(ctx *Context, args *GetSmServiceCredentialsSecretMetadataOutputArgs, opts ...InvokeOption) GetSmServiceCredentialsSecretMetadataResultOutput
> Note: This function is named GetSmServiceCredentialsSecretMetadata
in the Go SDK.
public static class GetSmServiceCredentialsSecretMetadata
{
public static Task<GetSmServiceCredentialsSecretMetadataResult> InvokeAsync(GetSmServiceCredentialsSecretMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetSmServiceCredentialsSecretMetadataResult> Invoke(GetSmServiceCredentialsSecretMetadataInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSmServiceCredentialsSecretMetadataResult> getSmServiceCredentialsSecretMetadata(GetSmServiceCredentialsSecretMetadataArgs args, InvokeOptions options)
public static Output<GetSmServiceCredentialsSecretMetadataResult> getSmServiceCredentialsSecretMetadata(GetSmServiceCredentialsSecretMetadataArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSmServiceCredentialsSecretMetadata:getSmServiceCredentialsSecretMetadata
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Secret
Id string - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Id string
- The unique identifier of the data source.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Instance
Id string - The GUID of the Secrets Manager instance.
- Secret
Id string - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Id string
- The unique identifier of the data source.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- secret
Id String - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id String
- The unique identifier of the data source.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id string - The GUID of the Secrets Manager instance.
- secret
Id string - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id string
- The unique identifier of the data source.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance_
id str - The GUID of the Secrets Manager instance.
- secret_
id str - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- endpoint_
type str - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id str
- The unique identifier of the data source.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- instance
Id String - The GUID of the Secrets Manager instance.
- secret
Id String - The ID of the secret.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}/
.
- Constraints: The maximum length is
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- id String
- The unique identifier of the data source.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
getSmServiceCredentialsSecretMetadata Result
The following output properties are available:
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Custom
Metadata Dictionary<string, string> - (Map) The secret metadata that a user can customize.
- Description string
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- Instance
Id string - Labels List<string>
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- Region string
- Rotations
List<Get
Sm Service Credentials Secret Metadata Rotation> - (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - (String) 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 - 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:
- Source
Services List<GetSm Service Credentials Secret Metadata Source Service> - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- Endpoint
Type string
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Custom
Metadata map[string]string - (Map) The secret metadata that a user can customize.
- Description string
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- Instance
Id string - Labels []string
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- Region string
- Rotations
[]Get
Sm Service Credentials Secret Metadata Rotation - (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- Secret
Group stringId - (String) 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 - 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:
- Source
Services []GetSm Service Credentials Secret Metadata Source Service - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- Endpoint
Type string
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By String - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- crn String
- (String) The resource key CRN of the generated service credentials.
- custom
Metadata Map<String,String> - (Map) The secret metadata that a user can customize.
- description String
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- instance
Id String - labels List<String>
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- region String
- rotations
List<Get
Sm Service Credentials Secret Metadata Rotation> - (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - (String) 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 - 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:
- source
Services List<GetSm Service Credentials Secret Metadata Source Service> - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- endpoint
Type String
- created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By string - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- crn string
- (String) The resource key CRN of the generated service credentials.
- custom
Metadata {[key: string]: string} - (Map) The secret metadata that a user can customize.
- description string
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- instance
Id string - labels string[]
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- region string
- rotations
Get
Sm Service Credentials Secret Metadata Rotation[] - (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group stringId - (String) 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 - 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:
- source
Services GetSm Service Credentials Secret Metadata Source Service[] - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- endpoint
Type string
- created_
at str - (String) The date when a resource was created. The date format follows RFC 3339.
- created_
by str - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- crn str
- (String) The resource key CRN of the generated service credentials.
- custom_
metadata Mapping[str, str] - (Map) The secret metadata that a user can customize.
- description str
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- instance_
id str - labels Sequence[str]
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- region str
- rotations
Sequence[Get
Sm Service Credentials Secret Metadata Rotation] - (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret_
group_ strid - (String) 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 - 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:
- source_
services Sequence[GetSm Service Credentials Secret Metadata Source Service] - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- endpoint_
type str
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- created
By String - (String) The unique identifier that is associated with the entity that created the secret.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- crn String
- (String) The resource key CRN of the generated service credentials.
- custom
Metadata Map<String> - (Map) The secret metadata that a user can customize.
- description String
- (String) The IAM API key description for the generated service credentials.
- 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 unique identifier of the data source.
- instance
Id String - labels List<String>
- (List) 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
- (String) The resource key name of the generated service credentials.
- 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.
- region String
- rotations List<Property Map>
- (List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
- secret
Group StringId - (String) 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 - 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:
- source
Services List<Property Map> - (List) The properties required for creating the service credentials for the specified source service instance. Nested scheme for source_service:
- 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
- (String) The time-to-live (TTL) or lease duration to assign to generated credentials. The TTL defines for how long generated credentials remain valid. The value should be a string that specifies the number of seconds. Minimum duration is 86400 (1 day). Maximum is 7776000 seconds (90 days).
- Constraints: The maximum length is
7
characters. The minimum length is2
characters.
- Constraints: The maximum length is
- 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
- endpoint
Type String
Supporting Types
GetSmServiceCredentialsSecretMetadataRotation
- Auto
Rotate bool - (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
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- Unit string
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- Auto
Rotate bool - (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 float64
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- Unit string
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate Boolean - (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
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit String
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate boolean - (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
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit string
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto_
rotate bool - (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 float
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit str
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
- auto
Rotate Boolean - (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
- (Integer) The length of the secret rotation time interval.
- Constraints: The minimum value is
1
.
- Constraints: The minimum value is
- unit String
- (String) The units for the secret rotation time interval.
- Constraints: Allowable values are:
day
,month
.
- Constraints: Allowable values are:
GetSmServiceCredentialsSecretMetadataSourceService
- Iams
List<Get
Sm Service Credentials Secret Metadata Source Service Iam> - (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- Instances
List<Get
Sm Service Credentials Secret Metadata Source Service Instance> - Parameters Dictionary<string, string>
- Resource
Keys List<GetSm Service Credentials Secret Metadata Source Service Resource Key> - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- Roles
List<Get
Sm Service Credentials Secret Metadata Source Service Role> - (String) The IAM role for the generate service credentials. Nested scheme for role:
- Iams
[]Get
Sm Service Credentials Secret Metadata Source Service Iam - (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- Instances
[]Get
Sm Service Credentials Secret Metadata Source Service Instance - Parameters map[string]string
- Resource
Keys []GetSm Service Credentials Secret Metadata Source Service Resource Key - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- Roles
[]Get
Sm Service Credentials Secret Metadata Source Service Role - (String) The IAM role for the generate service credentials. Nested scheme for role:
- iams
List<Get
Sm Service Credentials Secret Metadata Source Service Iam> - (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- instances
List<Get
Sm Service Credentials Secret Metadata Source Service Instance> - parameters Map<String,String>
- resource
Keys List<GetSm Service Credentials Secret Metadata Source Service Resource Key> - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- roles
List<Get
Sm Service Credentials Secret Metadata Source Service Role> - (String) The IAM role for the generate service credentials. Nested scheme for role:
- iams
Get
Sm Service Credentials Secret Metadata Source Service Iam[] - (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- instances
Get
Sm Service Credentials Secret Metadata Source Service Instance[] - parameters {[key: string]: string}
- resource
Keys GetSm Service Credentials Secret Metadata Source Service Resource Key[] - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- roles
Get
Sm Service Credentials Secret Metadata Source Service Role[] - (String) The IAM role for the generate service credentials. Nested scheme for role:
- iams
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Iam] - (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- instances
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Instance] - parameters Mapping[str, str]
- resource_
keys Sequence[GetSm Service Credentials Secret Metadata Source Service Resource Key] - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- roles
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Role] - (String) The IAM role for the generate service credentials. Nested scheme for role:
- iams List<Property Map>
- (List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
- instances List<Property Map>
- parameters Map<String>
- resource
Keys List<Property Map> - (List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
- roles List<Property Map>
- (String) The IAM role for the generate service credentials. Nested scheme for role:
GetSmServiceCredentialsSecretMetadataSourceServiceIam
- Apikeys
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Apikey> - (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- Roles
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Role> - (String) The IAM role for the generate service credentials. Nested scheme for role:
- Serviceids
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Serviceid> - (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
- Apikeys
[]Get
Sm Service Credentials Secret Metadata Source Service Iam Apikey - (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- Roles
[]Get
Sm Service Credentials Secret Metadata Source Service Iam Role - (String) The IAM role for the generate service credentials. Nested scheme for role:
- Serviceids
[]Get
Sm Service Credentials Secret Metadata Source Service Iam Serviceid - (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
- apikeys
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Apikey> - (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- roles
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Role> - (String) The IAM role for the generate service credentials. Nested scheme for role:
- serviceids
List<Get
Sm Service Credentials Secret Metadata Source Service Iam Serviceid> - (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
- apikeys
Get
Sm Service Credentials Secret Metadata Source Service Iam Apikey[] - (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- roles
Get
Sm Service Credentials Secret Metadata Source Service Iam Role[] - (String) The IAM role for the generate service credentials. Nested scheme for role:
- serviceids
Get
Sm Service Credentials Secret Metadata Source Service Iam Serviceid[] - (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
- apikeys
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Iam Apikey] - (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- roles
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Iam Role] - (String) The IAM role for the generate service credentials. Nested scheme for role:
- serviceids
Sequence[Get
Sm Service Credentials Secret Metadata Source Service Iam Serviceid] - (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
- apikeys List<Property Map>
- (String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
- roles List<Property Map>
- (String) The IAM role for the generate service credentials. Nested scheme for role:
- serviceids List<Property Map>
- (String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
GetSmServiceCredentialsSecretMetadataSourceServiceIamApikey
- Description string
- (String) The IAM API key description for the generated service credentials.
- Name string
- (String) The resource key name of the generated service credentials.
- Description string
- (String) The IAM API key description for the generated service credentials.
- Name string
- (String) The resource key name of the generated service credentials.
- description String
- (String) The IAM API key description for the generated service credentials.
- name String
- (String) The resource key name of the generated service credentials.
- description string
- (String) The IAM API key description for the generated service credentials.
- name string
- (String) The resource key name of the generated service credentials.
- description str
- (String) The IAM API key description for the generated service credentials.
- name str
- (String) The resource key name of the generated service credentials.
- description String
- (String) The IAM API key description for the generated service credentials.
- name String
- (String) The resource key name of the generated service credentials.
GetSmServiceCredentialsSecretMetadataSourceServiceIamRole
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Crn string
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
- crn string
- (String) The resource key CRN of the generated service credentials.
- crn str
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
GetSmServiceCredentialsSecretMetadataSourceServiceIamServiceid
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Crn string
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
- crn string
- (String) The resource key CRN of the generated service credentials.
- crn str
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
GetSmServiceCredentialsSecretMetadataSourceServiceInstance
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Crn string
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
- crn string
- (String) The resource key CRN of the generated service credentials.
- crn str
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
GetSmServiceCredentialsSecretMetadataSourceServiceResourceKey
GetSmServiceCredentialsSecretMetadataSourceServiceRole
- Crn string
- (String) The resource key CRN of the generated service credentials.
- Crn string
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
- crn string
- (String) The resource key CRN of the generated service credentials.
- crn str
- (String) The resource key CRN of the generated service credentials.
- crn String
- (String) The resource key CRN of the generated service credentials.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.