1. Packages
  2. Ibm Provider
  3. API Docs
  4. getSmServiceCredentialsSecret
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getSmServiceCredentialsSecret

Explore with Pulumi AI

Provides a read-only data source for a service credentials secret. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. The data source can be defined by providing the secret ID or the secret and secret group names.

Example Usage

By secret id

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const serviceCredentialsSecret = ibm.getSmServiceCredentialsSecret({
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    secretId: "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
});
Copy
import pulumi
import pulumi_ibm as ibm

service_credentials_secret = ibm.get_sm_service_credentials_secret(instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    secret_id="0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
Copy
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.LookupSmServiceCredentialsSecret(ctx, &ibm.LookupSmServiceCredentialsSecretArgs{
			InstanceId: ibm_resource_instance.Sm_instance.Guid,
			Region:     pulumi.StringRef("us-south"),
			SecretId:   pulumi.StringRef("0b5571f7-21e6-42b7-91c5-3f5ac9793a46"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var serviceCredentialsSecret = Ibm.GetSmServiceCredentialsSecret.Invoke(new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        SecretId = "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
    });

});
Copy
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.GetSmServiceCredentialsSecretArgs;
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 serviceCredentialsSecret = IbmFunctions.getSmServiceCredentialsSecret(GetSmServiceCredentialsSecretArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .secretId("0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
            .build());

    }
}
Copy
variables:
  serviceCredentialsSecret:
    fn::invoke:
      function: ibm:getSmServiceCredentialsSecret
      arguments:
        instanceId: ${ibm_resource_instance.sm_instance.guid}
        region: us-south
        secretId: 0b5571f7-21e6-42b7-91c5-3f5ac9793a46
Copy

By secret name and group name

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const serviceCredentialsSecret = ibm.getSmServiceCredentialsSecret({
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    name: "secret-name",
    secretGroupName: "group-name",
});
Copy
import pulumi
import pulumi_ibm as ibm

service_credentials_secret = ibm.get_sm_service_credentials_secret(instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    name="secret-name",
    secret_group_name="group-name")
Copy
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.LookupSmServiceCredentialsSecret(ctx, &ibm.LookupSmServiceCredentialsSecretArgs{
			InstanceId:      ibm_resource_instance.Sm_instance.Guid,
			Region:          pulumi.StringRef("us-south"),
			Name:            pulumi.StringRef("secret-name"),
			SecretGroupName: pulumi.StringRef("group-name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var serviceCredentialsSecret = Ibm.GetSmServiceCredentialsSecret.Invoke(new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        Name = "secret-name",
        SecretGroupName = "group-name",
    });

});
Copy
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.GetSmServiceCredentialsSecretArgs;
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 serviceCredentialsSecret = IbmFunctions.getSmServiceCredentialsSecret(GetSmServiceCredentialsSecretArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .name("secret-name")
            .secretGroupName("group-name")
            .build());

    }
}
Copy
variables:
  serviceCredentialsSecret:
    fn::invoke:
      function: ibm:getSmServiceCredentialsSecret
      arguments:
        instanceId: ${ibm_resource_instance.sm_instance.guid}
        region: us-south
        name: secret-name
        secretGroupName: group-name
Copy

Example to access resource credentials using credentials attribute:

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const serviceCredentialsSecret = ibm.getSmServiceCredentialsSecret({
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    secretId: "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
});
export const accessKeyId = serviceCredentialsSecret.then(serviceCredentialsSecret => serviceCredentialsSecret.credentials?.["cos_hmac_keys.access_key_id"]);
export const secretAccessKey = serviceCredentialsSecret.then(serviceCredentialsSecret => serviceCredentialsSecret.credentials?.["cos_hmac_keys.secret_access_key"]);
Copy
import pulumi
import pulumi_ibm as ibm

service_credentials_secret = ibm.get_sm_service_credentials_secret(instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    secret_id="0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
pulumi.export("accessKeyId", service_credentials_secret.credentials["cos_hmac_keys.access_key_id"])
pulumi.export("secretAccessKey", service_credentials_secret.credentials["cos_hmac_keys.secret_access_key"])
Copy
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 {
		serviceCredentialsSecret, err := ibm.LookupSmServiceCredentialsSecret(ctx, &ibm.LookupSmServiceCredentialsSecretArgs{
			InstanceId: ibm_resource_instance.Sm_instance.Guid,
			Region:     pulumi.StringRef("us-south"),
			SecretId:   pulumi.StringRef("0b5571f7-21e6-42b7-91c5-3f5ac9793a46"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("accessKeyId", serviceCredentialsSecret.Credentials.Cos_hmac_keys.access_key_id)
		ctx.Export("secretAccessKey", serviceCredentialsSecret.Credentials.Cos_hmac_keys.secret_access_key)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var serviceCredentialsSecret = Ibm.GetSmServiceCredentialsSecret.Invoke(new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        SecretId = "0b5571f7-21e6-42b7-91c5-3f5ac9793a46",
    });

    return new Dictionary<string, object?>
    {
        ["accessKeyId"] = serviceCredentialsSecret.Apply(getSmServiceCredentialsSecretResult => getSmServiceCredentialsSecretResult.Credentials?.Cos_hmac_keys_access_key_id),
        ["secretAccessKey"] = serviceCredentialsSecret.Apply(getSmServiceCredentialsSecretResult => getSmServiceCredentialsSecretResult.Credentials?.Cos_hmac_keys_secret_access_key),
    };
});
Copy
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.GetSmServiceCredentialsSecretArgs;
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 serviceCredentialsSecret = IbmFunctions.getSmServiceCredentialsSecret(GetSmServiceCredentialsSecretArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .secretId("0b5571f7-21e6-42b7-91c5-3f5ac9793a46")
            .build());

        ctx.export("accessKeyId", serviceCredentialsSecret.applyValue(getSmServiceCredentialsSecretResult -> getSmServiceCredentialsSecretResult.credentials().cos_hmac_keys.access_key_id()));
        ctx.export("secretAccessKey", serviceCredentialsSecret.applyValue(getSmServiceCredentialsSecretResult -> getSmServiceCredentialsSecretResult.credentials().cos_hmac_keys.secret_access_key()));
    }
}
Copy
variables:
  serviceCredentialsSecret:
    fn::invoke:
      function: ibm:getSmServiceCredentialsSecret
      arguments:
        instanceId: ${ibm_resource_instance.sm_instance.guid}
        region: us-south
        secretId: 0b5571f7-21e6-42b7-91c5-3f5ac9793a46
outputs:
  accessKeyId: ${serviceCredentialsSecret.credentials"cos_hmac_keys.access_key_id"[%!s(MISSING)]}
  secretAccessKey: ${serviceCredentialsSecret.credentials"cos_hmac_keys.secret_access_key"[%!s(MISSING)]}
Copy

Using getSmServiceCredentialsSecret

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 getSmServiceCredentialsSecret(args: GetSmServiceCredentialsSecretArgs, opts?: InvokeOptions): Promise<GetSmServiceCredentialsSecretResult>
function getSmServiceCredentialsSecretOutput(args: GetSmServiceCredentialsSecretOutputArgs, opts?: InvokeOptions): Output<GetSmServiceCredentialsSecretResult>
Copy
def get_sm_service_credentials_secret(endpoint_type: Optional[str] = None,
                                      id: Optional[str] = None,
                                      instance_id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      region: Optional[str] = None,
                                      secret_group_name: Optional[str] = None,
                                      secret_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetSmServiceCredentialsSecretResult
def get_sm_service_credentials_secret_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      instance_id: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      region: Optional[pulumi.Input[str]] = None,
                                      secret_group_name: Optional[pulumi.Input[str]] = None,
                                      secret_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetSmServiceCredentialsSecretResult]
Copy
func LookupSmServiceCredentialsSecret(ctx *Context, args *LookupSmServiceCredentialsSecretArgs, opts ...InvokeOption) (*LookupSmServiceCredentialsSecretResult, error)
func LookupSmServiceCredentialsSecretOutput(ctx *Context, args *LookupSmServiceCredentialsSecretOutputArgs, opts ...InvokeOption) LookupSmServiceCredentialsSecretResultOutput
Copy

> Note: This function is named LookupSmServiceCredentialsSecret in the Go SDK.

public static class GetSmServiceCredentialsSecret 
{
    public static Task<GetSmServiceCredentialsSecretResult> InvokeAsync(GetSmServiceCredentialsSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetSmServiceCredentialsSecretResult> Invoke(GetSmServiceCredentialsSecretInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSmServiceCredentialsSecretResult> getSmServiceCredentialsSecret(GetSmServiceCredentialsSecretArgs args, InvokeOptions options)
public static Output<GetSmServiceCredentialsSecretResult> getSmServiceCredentialsSecret(GetSmServiceCredentialsSecretArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getSmServiceCredentialsSecret:getSmServiceCredentialsSecret
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The GUID of the Secrets Manager instance.
EndpointType 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.
Id string
Name string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SecretGroupName string
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
SecretId string
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.
InstanceId This property is required. string
The GUID of the Secrets Manager instance.
EndpointType 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.
Id string
Name string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SecretGroupName string
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
SecretId string
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.
instanceId This property is required. String
The GUID of the Secrets Manager instance.
endpointType 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.
id String
name String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
secretGroupName String
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
secretId String
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.
instanceId This property is required. string
The GUID of the Secrets Manager instance.
endpointType 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.
id string
name string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
secretGroupName string
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
secretId string
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.
instance_id This property is required. str
The GUID of the Secrets Manager instance.
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.
id str
name str
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
region str
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
secret_group_name str
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
secret_id str
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.
instanceId This property is required. String
The GUID of the Secrets Manager instance.
endpointType 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.
id String
name String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
secretGroupName String
The name of your existing secret group. To be used in combination with name.

  • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
secretId String
The ID of the secret.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}/.

getSmServiceCredentialsSecret Result

The following output properties are available:

CreatedAt string
(String) The date when a resource was created. The date format follows RFC 3339.
CreatedBy 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 is 4 characters.
Credentials Dictionary<string, string>
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
Crn string
(String) The resource key CRN of the generated service credentials.
CustomMetadata 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.
ExpirationDate string
(String) The date a secret is expired. The date format follows RFC 3339.
Id string
InstanceId 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 is 30 items. The minimum length is 0 items.
LocksTotal double
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
Name string
(String) The resource key name of the generated service credentials.
NextRotationDate string
(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<GetSmServiceCredentialsSecretRotation>
(List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
SecretGroupId string
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
SecretId string
SecretType 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.
SourceServices List<GetSmServiceCredentialsSecretSourceService>
(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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
StateDescription string
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
UpdatedAt string
(String) The date when a resource was recently modified. The date format follows RFC 3339.
VersionsTotal double
(Integer) The number of versions of the secret.

  • Constraints: The maximum value is 50. The minimum value is 0.
EndpointType string
SecretGroupName string
CreatedAt string
(String) The date when a resource was created. The date format follows RFC 3339.
CreatedBy 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 is 4 characters.
Credentials map[string]string
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
Crn string
(String) The resource key CRN of the generated service credentials.
CustomMetadata 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.
ExpirationDate string
(String) The date a secret is expired. The date format follows RFC 3339.
Id string
InstanceId 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 is 30 items. The minimum length is 0 items.
LocksTotal float64
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
Name string
(String) The resource key name of the generated service credentials.
NextRotationDate string
(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 []GetSmServiceCredentialsSecretRotation
(List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
SecretGroupId string
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
SecretId string
SecretType 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.
SourceServices []GetSmServiceCredentialsSecretSourceService
(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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
StateDescription string
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
UpdatedAt string
(String) The date when a resource was recently modified. The date format follows RFC 3339.
VersionsTotal float64
(Integer) The number of versions of the secret.

  • Constraints: The maximum value is 50. The minimum value is 0.
EndpointType string
SecretGroupName string
createdAt String
(String) The date when a resource was created. The date format follows RFC 3339.
createdBy 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 is 4 characters.
credentials Map<String,String>
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
crn String
(String) The resource key CRN of the generated service credentials.
customMetadata 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.
expirationDate String
(String) The date a secret is expired. The date format follows RFC 3339.
id String
instanceId 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 is 30 items. The minimum length is 0 items.
locksTotal Double
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
name String
(String) The resource key name of the generated service credentials.
nextRotationDate String
(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<GetSmServiceCredentialsSecretRotation>
(List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
secretGroupId String
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
secretId String
secretType 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.
sourceServices List<GetSmServiceCredentialsSecretSourceService>
(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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
stateDescription String
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
updatedAt String
(String) The date when a resource was recently modified. The date format follows RFC 3339.
versionsTotal Double
(Integer) The number of versions of the secret.

  • Constraints: The maximum value is 50. The minimum value is 0.
endpointType String
secretGroupName String
createdAt string
(String) The date when a resource was created. The date format follows RFC 3339.
createdBy 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 is 4 characters.
credentials {[key: string]: string}
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
crn string
(String) The resource key CRN of the generated service credentials.
customMetadata {[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.
expirationDate string
(String) The date a secret is expired. The date format follows RFC 3339.
id string
instanceId 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 is 30 items. The minimum length is 0 items.
locksTotal number
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
name string
(String) The resource key name of the generated service credentials.
nextRotationDate string
(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 GetSmServiceCredentialsSecretRotation[]
(List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
secretGroupId string
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
secretId string
secretType 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.
sourceServices GetSmServiceCredentialsSecretSourceService[]
(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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
stateDescription string
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
updatedAt string
(String) The date when a resource was recently modified. The date format follows RFC 3339.
versionsTotal number
(Integer) The number of versions of the secret.

  • Constraints: The maximum value is 50. The minimum value is 0.
endpointType string
secretGroupName 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 is 4 characters.
credentials Mapping[str, str]
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
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
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 is 30 items. The minimum length is 0 items.
locks_total float
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
name str
(String) The resource key name of the generated service credentials.
next_rotation_date str
(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[GetSmServiceCredentialsSecretRotation]
(List) Determines whether Secrets Manager rotates your secrets automatically. Nested scheme for rotation:
secret_group_id str
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
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.
source_services Sequence[GetSmServiceCredentialsSecretSourceService]
(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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
state_description str
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
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 is 0.
endpoint_type str
secret_group_name str
createdAt String
(String) The date when a resource was created. The date format follows RFC 3339.
createdBy 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 is 4 characters.
credentials Map<String>
(List) The properties of the service credentials secret payload. Nested scheme for credentials:
crn String
(String) The resource key CRN of the generated service credentials.
customMetadata 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.
expirationDate String
(String) The date a secret is expired. The date format follows RFC 3339.
id String
instanceId 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 is 30 items. The minimum length is 0 items.
locksTotal Number
(Integer) The number of locks of the secret.

  • Constraints: The maximum value is 1000. The minimum value is 0.
name String
(String) The resource key name of the generated service credentials.
nextRotationDate String
(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:
secretGroupId String
(String) A UUID identifier, or default secret group.

  • Constraints: The maximum length is 36 characters. The minimum length is 7 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)$/.
secretId String
secretType 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.
sourceServices 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, and Destroyed = 5 values.

  • Constraints: Allowable values are: 0, 1, 2, 3, 5.
stateDescription String
(String) A text representation of the secret state.

  • Constraints: Allowable values are: pre_activation, active, suspended, deactivated, destroyed.
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 is 2 characters.
updatedAt String
(String) The date when a resource was recently modified. The date format follows RFC 3339.
versionsTotal Number
(Integer) The number of versions of the secret.

  • Constraints: The maximum value is 50. The minimum value is 0.
endpointType String
secretGroupName String

Supporting Types

GetSmServiceCredentialsSecretRotation

AutoRotate This property is required. bool
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
Interval This property is required. double
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
Unit This property is required. string
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.
AutoRotate This property is required. bool
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
Interval This property is required. float64
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
Unit This property is required. string
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.
autoRotate This property is required. Boolean
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
interval This property is required. Double
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
unit This property is required. String
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.
autoRotate This property is required. boolean
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
interval This property is required. number
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
unit This property is required. string
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.
auto_rotate This property is required. bool
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
interval This property is required. float
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
unit This property is required. str
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.
autoRotate This property is required. Boolean
(Boolean) Determines whether Secrets Manager rotates your secret automatically.Default is false. If auto_rotate is set to true the service rotates your secret based on the defined interval.
interval This property is required. Number
(Integer) The length of the secret rotation time interval.

  • Constraints: The minimum value is 1.
unit This property is required. String
(String) The units for the secret rotation time interval.

  • Constraints: Allowable values are: day, month.

GetSmServiceCredentialsSecretSourceService

Iams This property is required. List<GetSmServiceCredentialsSecretSourceServiceIam>
(List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
Instances This property is required. List<GetSmServiceCredentialsSecretSourceServiceInstance>
Parameters This property is required. Dictionary<string, string>
ResourceKeys This property is required. List<GetSmServiceCredentialsSecretSourceServiceResourceKey>
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
Roles This property is required. List<GetSmServiceCredentialsSecretSourceServiceRole>
(String) The IAM role for the generate service credentials. Nested scheme for role:
Iams This property is required. []GetSmServiceCredentialsSecretSourceServiceIam
(List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
Instances This property is required. []GetSmServiceCredentialsSecretSourceServiceInstance
Parameters This property is required. map[string]string
ResourceKeys This property is required. []GetSmServiceCredentialsSecretSourceServiceResourceKey
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
Roles This property is required. []GetSmServiceCredentialsSecretSourceServiceRole
(String) The IAM role for the generate service credentials. Nested scheme for role:
iams This property is required. List<GetSmServiceCredentialsSecretSourceServiceIam>
(List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
instances This property is required. List<GetSmServiceCredentialsSecretSourceServiceInstance>
parameters This property is required. Map<String,String>
resourceKeys This property is required. List<GetSmServiceCredentialsSecretSourceServiceResourceKey>
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
roles This property is required. List<GetSmServiceCredentialsSecretSourceServiceRole>
(String) The IAM role for the generate service credentials. Nested scheme for role:
iams This property is required. GetSmServiceCredentialsSecretSourceServiceIam[]
(List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
instances This property is required. GetSmServiceCredentialsSecretSourceServiceInstance[]
parameters This property is required. {[key: string]: string}
resourceKeys This property is required. GetSmServiceCredentialsSecretSourceServiceResourceKey[]
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
roles This property is required. GetSmServiceCredentialsSecretSourceServiceRole[]
(String) The IAM role for the generate service credentials. Nested scheme for role:
iams This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceIam]
(List) The source service IAM data is returned in case IAM credentials where created for this secret. Nested scheme for iam:
instances This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceInstance]
parameters This property is required. Mapping[str, str]
resource_keys This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceResourceKey]
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
roles This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceRole]
(String) The IAM role for the generate service credentials. Nested scheme for role:
iams This property is required. 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 This property is required. List<Property Map>
parameters This property is required. Map<String>
resourceKeys This property is required. List<Property Map>
(List) The source service resource key data of the generated service credentials. Nested scheme for resource_key:
roles This property is required. List<Property Map>
(String) The IAM role for the generate service credentials. Nested scheme for role:

GetSmServiceCredentialsSecretSourceServiceIam

Apikeys This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamApikey>
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
Roles This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamRole>
(String) The IAM role for the generate service credentials. Nested scheme for role:
Serviceids This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamServiceid>
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
Apikeys This property is required. []GetSmServiceCredentialsSecretSourceServiceIamApikey
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
Roles This property is required. []GetSmServiceCredentialsSecretSourceServiceIamRole
(String) The IAM role for the generate service credentials. Nested scheme for role:
Serviceids This property is required. []GetSmServiceCredentialsSecretSourceServiceIamServiceid
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
apikeys This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamApikey>
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
roles This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamRole>
(String) The IAM role for the generate service credentials. Nested scheme for role:
serviceids This property is required. List<GetSmServiceCredentialsSecretSourceServiceIamServiceid>
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
apikeys This property is required. GetSmServiceCredentialsSecretSourceServiceIamApikey[]
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
roles This property is required. GetSmServiceCredentialsSecretSourceServiceIamRole[]
(String) The IAM role for the generate service credentials. Nested scheme for role:
serviceids This property is required. GetSmServiceCredentialsSecretSourceServiceIamServiceid[]
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
apikeys This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceIamApikey]
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
roles This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceIamRole]
(String) The IAM role for the generate service credentials. Nested scheme for role:
serviceids This property is required. Sequence[GetSmServiceCredentialsSecretSourceServiceIamServiceid]
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:
apikeys This property is required. List<Property Map>
(String) The IAM apikey metadata for the IAM credentials that were generated. Nested scheme for apikey:
roles This property is required. List<Property Map>
(String) The IAM role for the generate service credentials. Nested scheme for role:
serviceids This property is required. List<Property Map>
(String) The IAM serviceid for the generated service credentials. Nested scheme for serviceid:

GetSmServiceCredentialsSecretSourceServiceIamApikey

Description This property is required. string
(String) The IAM API key description for the generated service credentials.
Name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
Description This property is required. string
(String) The IAM API key description for the generated service credentials.
Name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
description This property is required. String
(String) The IAM API key description for the generated service credentials.
name This property is required. String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
description This property is required. string
(String) The IAM API key description for the generated service credentials.
name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
description This property is required. str
(String) The IAM API key description for the generated service credentials.
name This property is required. str
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
description This property is required. String
(String) The IAM API key description for the generated service credentials.
name This property is required. String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.

GetSmServiceCredentialsSecretSourceServiceIamRole

Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. str
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.

GetSmServiceCredentialsSecretSourceServiceIamServiceid

Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. str
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.

GetSmServiceCredentialsSecretSourceServiceInstance

Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. str
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.

GetSmServiceCredentialsSecretSourceServiceResourceKey

Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
name This property is required. String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
crn This property is required. string
(String) The resource key CRN of the generated service credentials.
name This property is required. string
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
crn This property is required. str
(String) The resource key CRN of the generated service credentials.
name This property is required. str
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
name This property is required. String
The human-readable name of your secret. To be used in combination with secret_group_name.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression ^[A-Za-z0-9][A-Za-z0-9]*(?:_*-*\\.*[A-Za-z0-9]+)*$.

GetSmServiceCredentialsSecretSourceServiceRole

Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
Crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. String
(String) The resource key CRN of the generated service credentials.
crn This property is required. string
(String) The resource key CRN of the generated service credentials.
crn This property is required. str
(String) The resource key CRN of the generated service credentials.
crn This property is required. 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.