Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Queue.getQueues
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Queues in Oracle Cloud Infrastructure Queue service.
Returns a list of queues.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testQueues = oci.Queue.getQueues({
compartmentId: compartmentId,
displayName: queueDisplayName,
id: queueId,
state: queueState,
});
import pulumi
import pulumi_oci as oci
test_queues = oci.Queue.get_queues(compartment_id=compartment_id,
display_name=queue_display_name,
id=queue_id,
state=queue_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Queue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Queue.GetQueues(ctx, &queue.GetQueuesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(queueDisplayName),
Id: pulumi.StringRef(queueId),
State: pulumi.StringRef(queueState),
}, 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 testQueues = Oci.Queue.GetQueues.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = queueDisplayName,
Id = queueId,
State = queueState,
});
});
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.GetQueuesArgs;
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 testQueues = QueueFunctions.getQueues(GetQueuesArgs.builder()
.compartmentId(compartmentId)
.displayName(queueDisplayName)
.id(queueId)
.state(queueState)
.build());
}
}
variables:
testQueues:
fn::invoke:
Function: oci:Queue:getQueues
Arguments:
compartmentId: ${compartmentId}
displayName: ${queueDisplayName}
id: ${queueId}
state: ${queueState}
Using getQueues
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 getQueues(args: GetQueuesArgs, opts?: InvokeOptions): Promise<GetQueuesResult>
function getQueuesOutput(args: GetQueuesOutputArgs, opts?: InvokeOptions): Output<GetQueuesResult>
def get_queues(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_queue.GetQueuesFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQueuesResult
def get_queues_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_queue.GetQueuesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQueuesResult]
func GetQueues(ctx *Context, args *GetQueuesArgs, opts ...InvokeOption) (*GetQueuesResult, error)
func GetQueuesOutput(ctx *Context, args *GetQueuesOutputArgs, opts ...InvokeOption) GetQueuesResultOutput
> Note: This function is named GetQueues
in the Go SDK.
public static class GetQueues
{
public static Task<GetQueuesResult> InvokeAsync(GetQueuesArgs args, InvokeOptions? opts = null)
public static Output<GetQueuesResult> Invoke(GetQueuesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQueuesResult> getQueues(GetQueuesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Queue/getQueues:getQueues
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Queues Filter> - Id string
- The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Queues Filter - Id string
- The unique queue identifier.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Gets
Filter> - id String
- The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Queues Filter[] - id string
- The unique queue identifier.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[queue.
Get Queues Filter] - id str
- The unique queue identifier.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- The unique queue identifier.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
getQueues Result
The following output properties are available:
- Queue
Collections List<GetQueues Queue Collection> - The list of queue_collection.
- Compartment
Id string - The OCID of the compartment containing the queue.
- Display
Name string - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Queues Filter> - Id string
- A unique identifier for the queue that is immutable on creation.
- State string
- The current state of the queue.
- Queue
Collections []GetQueues Queue Collection - The list of queue_collection.
- Compartment
Id string - The OCID of the compartment containing the queue.
- Display
Name string - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Queues Filter - Id string
- A unique identifier for the queue that is immutable on creation.
- State string
- The current state of the queue.
- queue
Collections List<GetsCollection> - The list of queue_collection.
- compartment
Id String - The OCID of the compartment containing the queue.
- display
Name String - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Gets
Filter> - id String
- A unique identifier for the queue that is immutable on creation.
- state String
- The current state of the queue.
- queue
Collections GetQueues Queue Collection[] - The list of queue_collection.
- compartment
Id string - The OCID of the compartment containing the queue.
- display
Name string - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Queues Filter[] - id string
- A unique identifier for the queue that is immutable on creation.
- state string
- The current state of the queue.
- queue_
collections Sequence[queue.Get Queues Queue Collection] - The list of queue_collection.
- compartment_
id str - The OCID of the compartment containing the queue.
- display_
name str - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[queue.
Get Queues Filter] - id str
- A unique identifier for the queue that is immutable on creation.
- state str
- The current state of the queue.
- queue
Collections List<Property Map> - The list of queue_collection.
- compartment
Id String - The OCID of the compartment containing the queue.
- display
Name String - A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- id String
- A unique identifier for the queue that is immutable on creation.
- state String
- The current state of the queue.
Supporting Types
GetQueuesFilter
GetQueuesQueueCollection
GetQueuesQueueCollectionItem
- Channel
Consumption intLimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Custom
Encryption stringKey Id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- Dictionary<string, object>
- 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, object>
- 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 queue identifier.
- Lifecycle
Details string - Any additional details about the current state of the queue.
- Messages
Endpoint string - The endpoint to use to consume or publish messages in the queue.
- Purge
Trigger int - Purge
Type string - Retention
In intSeconds - The retention period of the messages in the queue, in seconds.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Dictionary<string, object>
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- Time
Updated string - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- Timeout
In intSeconds - The default polling timeout of the messages in the queue, in seconds.
- Visibility
In intSeconds - The default visibility timeout of the messages consumed from the queue, in seconds.
- Channel
Consumption intLimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Custom
Encryption stringKey Id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- map[string]interface{}
- 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]interface{}
- 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 queue identifier.
- Lifecycle
Details string - Any additional details about the current state of the queue.
- Messages
Endpoint string - The endpoint to use to consume or publish messages in the queue.
- Purge
Trigger int - Purge
Type string - Retention
In intSeconds - The retention period of the messages in the queue, in seconds.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- map[string]interface{}
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- Time
Updated string - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- Timeout
In intSeconds - The default polling timeout of the messages in the queue, in seconds.
- Visibility
In intSeconds - The default visibility timeout of the messages consumed from the queue, in seconds.
- channel
Consumption IntegerLimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- compartment
Id String - The OCID of the compartment in which to list resources.
- custom
Encryption StringKey Id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- Map<String,Object>
- 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,Object>
- 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 queue identifier.
- lifecycle
Details String - Any additional details about the current state of the queue.
- messages
Endpoint String - The endpoint to use to consume or publish messages in the queue.
- purge
Trigger Integer - purge
Type String - retention
In IntegerSeconds - The retention period of the messages in the queue, in seconds.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String,Object>
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- time
Updated String - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- timeout
In IntegerSeconds - The default polling timeout of the messages in the queue, in seconds.
- visibility
In IntegerSeconds - The default visibility timeout of the messages consumed from the queue, in seconds.
- channel
Consumption numberLimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- compartment
Id string - The OCID of the compartment in which to list resources.
- custom
Encryption stringKey Id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- {[key: string]: any}
- 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]: any}
- 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 queue identifier.
- lifecycle
Details string - Any additional details about the current state of the queue.
- messages
Endpoint string - The endpoint to use to consume or publish messages in the queue.
- purge
Trigger number - purge
Type string - retention
In numberSeconds - The retention period of the messages in the queue, in seconds.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[key: string]: any}
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- time
Updated string - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- timeout
In numberSeconds - The default polling timeout of the messages in the queue, in seconds.
- visibility
In numberSeconds - The default visibility timeout of the messages consumed from the queue, in seconds.
- channel_
consumption_ intlimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- compartment_
id str - The OCID of the compartment in which to list resources.
- custom_
encryption_ strkey_ id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- Mapping[str, Any]
- 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, Any]
- 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 queue identifier.
- lifecycle_
details str - Any additional details about the current state of the queue.
- messages_
endpoint str - The endpoint to use to consume or publish messages in the queue.
- purge_
trigger int - purge_
type str - retention_
in_ intseconds - The retention period of the messages in the queue, in seconds.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Mapping[str, Any]
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- time_
updated str - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- timeout_
in_ intseconds - The default polling timeout of the messages in the queue, in seconds.
- visibility_
in_ intseconds - The default visibility timeout of the messages consumed from the queue, in seconds.
- channel
Consumption NumberLimit - The percentage of allocated queue resources that can be consumed by a single channel. For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue's resources.
- compartment
Id String - The OCID of the compartment in which to list resources.
- custom
Encryption StringKey Id - The OCID of the custom encryption key to be used to encrypt messages content.
- 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.
- Map<Any>
- 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<Any>
- 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 queue identifier.
- lifecycle
Details String - Any additional details about the current state of the queue.
- messages
Endpoint String - The endpoint to use to consume or publish messages in the queue.
- purge
Trigger Number - purge
Type String - retention
In NumberSeconds - The retention period of the messages in the queue, in seconds.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<Any>
- 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 queue was created, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- time
Updated String - The time that the queue was updated, expressed in RFC 3339 timestamp format. Example:
2018-04-20T00:00:07.405Z
- timeout
In NumberSeconds - The default polling timeout of the messages in the queue, in seconds.
- visibility
In NumberSeconds - The default visibility timeout of the messages consumed from the queue, in seconds.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi