ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSmSecretGroups
Explore with Pulumi AI
Provides a read-only data source for secret group collection. 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 secretGroups = ibm.getSmSecretGroups({
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
});
import pulumi
import pulumi_ibm as ibm
secret_groups = ibm.get_sm_secret_groups(instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south")
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.GetSmSecretGroups(ctx, &ibm.GetSmSecretGroupsArgs{
InstanceId: ibm_resource_instance.Sm_instance.Guid,
Region: pulumi.StringRef("us-south"),
}, 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 secretGroups = Ibm.GetSmSecretGroups.Invoke(new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
});
});
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.GetSmSecretGroupsArgs;
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 secretGroups = IbmFunctions.getSmSecretGroups(GetSmSecretGroupsArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.build());
}
}
variables:
secretGroups:
fn::invoke:
function: ibm:getSmSecretGroups
arguments:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
Using getSmSecretGroups
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 getSmSecretGroups(args: GetSmSecretGroupsArgs, opts?: InvokeOptions): Promise<GetSmSecretGroupsResult>
function getSmSecretGroupsOutput(args: GetSmSecretGroupsOutputArgs, opts?: InvokeOptions): Output<GetSmSecretGroupsResult>
def get_sm_secret_groups(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmSecretGroupsResult
def get_sm_secret_groups_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,
opts: Optional[InvokeOptions] = None) -> Output[GetSmSecretGroupsResult]
func GetSmSecretGroups(ctx *Context, args *GetSmSecretGroupsArgs, opts ...InvokeOption) (*GetSmSecretGroupsResult, error)
func GetSmSecretGroupsOutput(ctx *Context, args *GetSmSecretGroupsOutputArgs, opts ...InvokeOption) GetSmSecretGroupsResultOutput
> Note: This function is named GetSmSecretGroups
in the Go SDK.
public static class GetSmSecretGroups
{
public static Task<GetSmSecretGroupsResult> InvokeAsync(GetSmSecretGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetSmSecretGroupsResult> Invoke(GetSmSecretGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSmSecretGroupsResult> getSmSecretGroups(GetSmSecretGroupsArgs args, InvokeOptions options)
public static Output<GetSmSecretGroupsResult> getSmSecretGroups(GetSmSecretGroupsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSmSecretGroups:getSmSecretGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the Secrets Manager instance.
- 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
- (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
- 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.
- 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
- (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
- 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.
- 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
- (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
- 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.
- 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
- (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
- 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.
- 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
- (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
- 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.
- 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
- (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
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
getSmSecretGroups Result
The following output properties are available:
- Id string
- (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
- Instance
Id string - Region string
- Secret
Groups List<GetSm Secret Groups Secret Group> - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- Total
Count double - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Endpoint
Type string
- Id string
- (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
- Instance
Id string - Region string
- Secret
Groups []GetSm Secret Groups Secret Group - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- Total
Count float64 - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Endpoint
Type string
- id String
- (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
- instance
Id String - region String
- secret
Groups List<GetSm Secret Groups Secret Group> - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- total
Count Double - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- endpoint
Type String
- id string
- (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
- instance
Id string - region string
- secret
Groups GetSm Secret Groups Secret Group[] - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- total
Count number - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- endpoint
Type string
- id str
- (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
- instance_
id str - region str
- secret_
groups Sequence[GetSm Secret Groups Secret Group] - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- total_
count float - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- endpoint_
type str
- id String
- (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
- instance
Id String - region String
- secret
Groups List<Property Map> - (List) A collection of secret groups.
- Constraints: The maximum length is
201
items. The minimum length is1
item. Nested scheme for secret_groups:
- Constraints: The maximum length is
- total
Count Number - (Integer) The total number of resources in a collection.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- endpoint
Type String
Supporting Types
GetSmSecretGroupsSecretGroup
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Description string
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Id string
- (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
- Name string
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- Created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- Description string
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Id string
- (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
- Name string
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- Updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- description String
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- id String
- (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
- name String
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- created
At string - (String) The date when a resource was created. The date format follows RFC 3339.
- description string
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- id string
- (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
- name string
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- updated
At string - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- created_
at str - (String) The date when a resource was created. The date format follows RFC 3339.
- description str
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- id str
- (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
- name str
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- updated_
at str - (String) The date when a resource was recently modified. The date format follows RFC 3339.
- created
At String - (String) The date when a resource was created. The date format follows RFC 3339.
- description String
- (String) An extended description of your secret group.To protect your privacy, do not use personal data, such as your name or location, as a description for your secret group.
- Constraints: The maximum length is
1024
characters. The minimum length is0
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- id String
- (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
- name String
- (String) The name of your existing secret group.
- Constraints: The maximum length is
64
characters. The minimum length is2
characters. The value must match regular expression/(.*?)/
.
- Constraints: The maximum length is
- updated
At String - (String) The date when a resource was recently modified. The date format follows RFC 3339.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.