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 details about a specific Consumer Group resource in Oracle Cloud Infrastructure Queue service.
Gets a consumer group by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConsumerGroup = oci.Queue.getConsumerGroup({
consumerGroupId: testConsumerGroupOciQueueConsumerGroup.id,
});
import pulumi
import pulumi_oci as oci
test_consumer_group = oci.Queue.get_consumer_group(consumer_group_id=test_consumer_group_oci_queue_consumer_group["id"])
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.GetConsumerGroup(ctx, &queue.GetConsumerGroupArgs{
ConsumerGroupId: testConsumerGroupOciQueueConsumerGroup.Id,
}, 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 testConsumerGroup = Oci.Queue.GetConsumerGroup.Invoke(new()
{
ConsumerGroupId = testConsumerGroupOciQueueConsumerGroup.Id,
});
});
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.GetConsumerGroupArgs;
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 testConsumerGroup = QueueFunctions.getConsumerGroup(GetConsumerGroupArgs.builder()
.consumerGroupId(testConsumerGroupOciQueueConsumerGroup.id())
.build());
}
}
variables:
testConsumerGroup:
fn::invoke:
function: oci:Queue:getConsumerGroup
arguments:
consumerGroupId: ${testConsumerGroupOciQueueConsumerGroup.id}
Using getConsumerGroup
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 getConsumerGroup(args: GetConsumerGroupArgs, opts?: InvokeOptions): Promise<GetConsumerGroupResult>
function getConsumerGroupOutput(args: GetConsumerGroupOutputArgs, opts?: InvokeOptions): Output<GetConsumerGroupResult>def get_consumer_group(consumer_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsumerGroupResult
def get_consumer_group_output(consumer_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsumerGroupResult]func LookupConsumerGroup(ctx *Context, args *LookupConsumerGroupArgs, opts ...InvokeOption) (*LookupConsumerGroupResult, error)
func LookupConsumerGroupOutput(ctx *Context, args *LookupConsumerGroupOutputArgs, opts ...InvokeOption) LookupConsumerGroupResultOutput> Note: This function is named LookupConsumerGroup in the Go SDK.
public static class GetConsumerGroup
{
public static Task<GetConsumerGroupResult> InvokeAsync(GetConsumerGroupArgs args, InvokeOptions? opts = null)
public static Output<GetConsumerGroupResult> Invoke(GetConsumerGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConsumerGroupResult> getConsumerGroup(GetConsumerGroupArgs args, InvokeOptions options)
public static Output<GetConsumerGroupResult> getConsumerGroup(GetConsumerGroupArgs args, InvokeOptions options)
fn::invoke:
function: oci:Queue/getConsumerGroup:getConsumerGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Consumer
Group stringId - The unique consumer group identifier.
- Consumer
Group stringId - The unique consumer group identifier.
- consumer
Group StringId - The unique consumer group identifier.
- consumer
Group stringId - The unique consumer group identifier.
- consumer_
group_ strid - The unique consumer group identifier.
- consumer
Group StringId - The unique consumer group identifier.
getConsumerGroup Result
The following output properties are available:
- Consumer
Group stringFilter - The filter used by the consumer group. Only messages matching the filter will be available by consumers of the group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- Consumer
Group stringId - 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 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.
- 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
- A unique identifier for the consumer group that is immutable on creation.
- Is
Enabled bool - Lifecycle
Details string - Any additional details about the current state of the consumer group.
- Queue
Id string - The OCID of the associated queue.
- State string
- The current state of the consumer group.
- 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 group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- Consumer
Group stringId - 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 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.
- 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
- A unique identifier for the consumer group that is immutable on creation.
- Is
Enabled bool - Lifecycle
Details string - Any additional details about the current state of the consumer group.
- Queue
Id string - The OCID of the associated queue.
- State string
- The current state of the consumer group.
- 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 group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- consumer
Group StringId - 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 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.
- 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
- A unique identifier for the consumer group that is immutable on creation.
- is
Enabled Boolean - lifecycle
Details String - Any additional details about the current state of the consumer group.
- queue
Id String - The OCID of the associated queue.
- state String
- The current state of the consumer group.
- 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 group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- consumer
Group stringId - 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 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.
- {[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
- A unique identifier for the consumer group that is immutable on creation.
- is
Enabled boolean - lifecycle
Details string - Any additional details about the current state of the consumer group.
- queue
Id string - The OCID of the associated queue.
- state string
- The current state of the consumer group.
- {[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 group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- consumer_
group_ strid - 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 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.
- 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
- A unique identifier for the consumer group that is immutable on creation.
- is_
enabled bool - lifecycle_
details str - Any additional details about the current state of the consumer group.
- queue_
id str - The OCID of the associated queue.
- state str
- The current state of the consumer group.
- 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 group. An empty value means that all messages will be available in the group. The primary consumer group cannot have any filter.
- consumer
Group StringId - 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 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.
- 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
- A unique identifier for the consumer group that is immutable on creation.
- is
Enabled Boolean - lifecycle
Details String - Any additional details about the current state of the consumer group.
- queue
Id String - The OCID of the associated queue.
- state String
- The current state of the consumer group.
- 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
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
