Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
This data source provides the list of Consumer Groups in Oracle Cloud Infrastructure Queue service.
Returns a list of consumer groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConsumerGroups = oci.Queue.getConsumerGroups({
displayName: consumerGroupDisplayName,
id: consumerGroupId,
queueId: testQueue.id,
state: consumerGroupState,
});
import pulumi
import pulumi_oci as oci
test_consumer_groups = oci.Queue.get_consumer_groups(display_name=consumer_group_display_name,
id=consumer_group_id,
queue_id=test_queue["id"],
state=consumer_group_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/queue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := queue.GetConsumerGroups(ctx, &queue.GetConsumerGroupsArgs{
DisplayName: pulumi.StringRef(consumerGroupDisplayName),
Id: pulumi.StringRef(consumerGroupId),
QueueId: pulumi.StringRef(testQueue.Id),
State: pulumi.StringRef(consumerGroupState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testConsumerGroups = Oci.Queue.GetConsumerGroups.Invoke(new()
{
DisplayName = consumerGroupDisplayName,
Id = consumerGroupId,
QueueId = testQueue.Id,
State = consumerGroupState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Queue.QueueFunctions;
import com.pulumi.oci.Queue.inputs.GetConsumerGroupsArgs;
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 testConsumerGroups = QueueFunctions.getConsumerGroups(GetConsumerGroupsArgs.builder()
.displayName(consumerGroupDisplayName)
.id(consumerGroupId)
.queueId(testQueue.id())
.state(consumerGroupState)
.build());
}
}
variables:
testConsumerGroups:
fn::invoke:
function: oci:Queue:getConsumerGroups
arguments:
displayName: ${consumerGroupDisplayName}
id: ${consumerGroupId}
queueId: ${testQueue.id}
state: ${consumerGroupState}
Using getConsumerGroups
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 getConsumerGroups(args: GetConsumerGroupsArgs, opts?: InvokeOptions): Promise<GetConsumerGroupsResult>
function getConsumerGroupsOutput(args: GetConsumerGroupsOutputArgs, opts?: InvokeOptions): Output<GetConsumerGroupsResult>def get_consumer_groups(display_name: Optional[str] = None,
filters: Optional[Sequence[GetConsumerGroupsFilter]] = None,
id: Optional[str] = None,
queue_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsumerGroupsResult
def get_consumer_groups_output(display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetConsumerGroupsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
queue_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsumerGroupsResult]func GetConsumerGroups(ctx *Context, args *GetConsumerGroupsArgs, opts ...InvokeOption) (*GetConsumerGroupsResult, error)
func GetConsumerGroupsOutput(ctx *Context, args *GetConsumerGroupsOutputArgs, opts ...InvokeOption) GetConsumerGroupsResultOutput> Note: This function is named GetConsumerGroups in the Go SDK.
public static class GetConsumerGroups
{
public static Task<GetConsumerGroupsResult> InvokeAsync(GetConsumerGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetConsumerGroupsResult> Invoke(GetConsumerGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConsumerGroupsResult> getConsumerGroups(GetConsumerGroupsArgs args, InvokeOptions options)
public static Output<GetConsumerGroupsResult> getConsumerGroups(GetConsumerGroupsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Queue/getConsumerGroups:getConsumerGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Consumer Groups Filter> - Id string
- The unique consumer group identifier.
- Queue
Id string - The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Consumer Groups Filter - Id string
- The unique consumer group identifier.
- Queue
Id string - The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Consumer Groups Filter> - id String
- The unique consumer group identifier.
- queue
Id String - The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Consumer Groups Filter[] - id string
- The unique consumer group identifier.
- queue
Id string - The unique queue identifier.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Consumer Groups Filter] - id str
- The unique consumer group identifier.
- queue_
id str - The unique queue identifier.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- The unique consumer group identifier.
- queue
Id String - The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
getConsumerGroups Result
The following output properties are available:
- Consumer
Group List<GetCollections Consumer Groups Consumer Group Collection> - The list of consumer_group_collection.
- Display
Name string - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- Filters
List<Get
Consumer Groups Filter> - Id string
- A unique identifier for the consumer group that is immutable on creation.
- Queue
Id string - The OCID of the associated queue.
- State string
- The current state of the consumer group.
- Consumer
Group []GetCollections Consumer Groups Consumer Group Collection - The list of consumer_group_collection.
- Display
Name string - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- Filters
[]Get
Consumer Groups Filter - Id string
- A unique identifier for the consumer group that is immutable on creation.
- Queue
Id string - The OCID of the associated queue.
- State string
- The current state of the consumer group.
- consumer
Group List<GetCollections Consumer Groups Consumer Group Collection> - The list of consumer_group_collection.
- display
Name String - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- filters
List<Get
Consumer Groups Filter> - id String
- A unique identifier for the consumer group that is immutable on creation.
- queue
Id String - The OCID of the associated queue.
- state String
- The current state of the consumer group.
- consumer
Group GetCollections Consumer Groups Consumer Group Collection[] - The list of consumer_group_collection.
- display
Name string - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- filters
Get
Consumer Groups Filter[] - id string
- A unique identifier for the consumer group that is immutable on creation.
- queue
Id string - The OCID of the associated queue.
- state string
- The current state of the consumer group.
- consumer_
group_ Sequence[Getcollections Consumer Groups Consumer Group Collection] - The list of consumer_group_collection.
- display_
name str - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- filters
Sequence[Get
Consumer Groups Filter] - id str
- A unique identifier for the consumer group that is immutable on creation.
- queue_
id str - The OCID of the associated queue.
- state str
- The current state of the consumer group.
- consumer
Group List<Property Map>Collections - The list of consumer_group_collection.
- display
Name String - A user-friendly name for the consumer group. It has to be unique within the same queue in a case-insensitive manner. It's changeable. Avoid entering confidential information.
- filters List<Property Map>
- id String
- A unique identifier for the consumer group that is immutable on creation.
- queue
Id String - The OCID of the associated queue.
- state String
- The current state of the consumer group.
Supporting Types
GetConsumerGroupsConsumerGroupCollection
GetConsumerGroupsConsumerGroupCollectionItem
- Consumer
Group stringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- Dead
Letter intQueue Delivery Count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The unique consumer group identifier.
- Is
Enabled bool - Lifecycle
Details string - Any additional details about the current state of the consumer group.
- Queue
Id string - The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - Time
Updated string - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- Consumer
Group stringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- Dead
Letter intQueue Delivery Count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The unique consumer group identifier.
- Is
Enabled bool - Lifecycle
Details string - Any additional details about the current state of the consumer group.
- Queue
Id string - The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - Time
Updated string - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- consumer
Group StringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- dead
Letter IntegerQueue Delivery Count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The unique consumer group identifier.
- is
Enabled Boolean - lifecycle
Details String - Any additional details about the current state of the consumer group.
- queue
Id String - The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - time
Updated String - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- consumer
Group stringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- dead
Letter numberQueue Delivery Count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The unique consumer group identifier.
- is
Enabled boolean - lifecycle
Details string - Any additional details about the current state of the consumer group.
- queue
Id string - The unique queue identifier.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - time
Updated string - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- consumer_
group_ strfilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- dead_
letter_ intqueue_ delivery_ count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display_
name str - A filter to return only resources that match the entire display name given.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The unique consumer group identifier.
- is_
enabled bool - lifecycle_
details str - Any additional details about the current state of the consumer group.
- queue_
id str - The unique queue identifier.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - time_
updated str - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- consumer
Group StringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the consumer group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- dead
Letter NumberQueue Delivery Count - The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. If the value isn't set, it will be using the value defined at the queue level.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A filter to return only resources that match the entire display name given.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The unique consumer group identifier.
- is
Enabled Boolean - lifecycle
Details String - Any additional details about the current state of the consumer group.
- queue
Id String - The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time that the consumer group was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z - time
Updated String - The time that the consumer group was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
GetConsumerGroupsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
