Retrieve the Topology of a specific Messaging Context.
get
/messagingcontexts/{messagingContextID}
A user can view a specific messaging context and its encapsulated ephemeral resources.
Request
Path Parameters
-
messagingContextID: string
The messaging context ID whose topology to return
Response
Supported Media Types
- application/json
- application/xml
200 Response
An individual messaging Context.
Root Schema : messagingContext
Type:
Show Source
object
-
connections(optional):
array connections
-
id(optional):
string
A service-generated ID for the messaging context. This ID is relevant only to the topology API. Each element of the array will have a different id value. This field is always present.
Nested Schema : connection
Type:
Show Source
object
-
clientId(optional):
string
The connection???s client ID; if the connection does not have a client ID, this field will not be present.
-
name(optional):
string
The name under which the REST API client created the connection. This field is always present.
-
sessions(optional):
array sessions
-
started(optional):
boolean
A boolean that is true if the connection is currently started, and false otherwise. This field is always present.
-
temporaryQueues(optional):
array temporaryQueues
-
temporaryTopics(optional):
array temporaryTopics
Nested Schema : session
Type:
Show Source
object
-
ackMode(optional):
string
A value indicating the acknowledgement mode of the session. Its value is
auto, client, or dups_ok
. This field will be present if transacted is false; otherwise, this field will not be present. -
consumers(optional):
array consumers
-
durableSubscribers(optional):
array durableSubscribers
-
name(optional):
string
The name under which the REST API client created the session. This field is always present.
-
producers(optional):
array producers
-
queueBrowsers(optional):
array queueBrowsers
-
transacted(optional):
boolean
A boolean that is true if the session is transacted, and false otherwise. This field is always present.
Nested Schema : consumer
Type:
Show Source
object
-
destination(optional):
string
The destination from which the producer receives messages. This field will always be present, and will have one of the following formats -
- /queues/queueName
- /topics/topicName
- /temporaryQueues/queueName
- /temporaryTopics/topicName
-
localMode(optional):
string
The local mode of the consumer, which defines whether a consumer on a topic will receive message sent on the same connection the consumer was created from. If the consumer is not on a topic or temporary topic, this field will not be present. The default is for topic consumers to receive all messages sent to the topic that match their selector, so this field will only be present if the consumer does not receive messages sent on its connection, in which case the field will be present, and will have value NO_LOCAL.
-
name(optional):
string
The name under which the REST API client created the consumer. This field is always present.
-
selector(optional):
string
The selector for the consumer. This field will only be present if the consumer has a selector.
Nested Schema : durableSuscriber
Type:
Show Source
object
-
destination(optional):
string
The destination from which the producer receives messages. This field will always be present and will have the format -
/topics/topicName
/temporaryTopics/temporaryTopic
. -
localMode(optional):
string
The local mode of the consumer, which defines whether a consumer on a topic will receive message sent on the same connection the consumer was created from. If the consumer is not on a topic or temporary topic, this field will not be present. The default is for topic consumers to receive all messages sent to the topic that match their selector, so this field will only be present if the consumer does not receive messages sent on its connection, in which case the field will be present, and will have value NO_LOCAL.
-
name(optional):
string
The name under which the REST API client created the durable suscriber. This field is always present.
-
selector(optional):
string
The selector for the consumer. This field will only be present if the consumer has a selector.
-
subscriptionName(optional):
string
The string that is the subscription name corresponding to the subscriber.
Note This is different from the name field, which gives the name by which REST API clients refer to the subscriber.
Nested Schema : producer
Type:
Show Source
object
-
deliveryMode(optional):
string
A String giving the default delivery mode for messages sent by this producer. This field will always be present, and will have the value
persistent
ornon_persistent
. -
destination(optional):
string
The destination from which the producer receives messages. This field will always be present, and will have one of the following formats -
- /queues/queueName
- /topics/topicName
- /temporaryQueues/queueName
- /temporaryTopics/topicName
-
name(optional):
string
The name under which the REST API client created the producer. This field is always present.
-
timeToLive(optional):
integer
The time to live, in milliseconds, that is the default time to live for messages sent by this producer. This field will always be present, and will be formatted as an integer, not a String.
Nested Schema : queueBrowser
Type:
Show Source
object
-
name(optional):
string
The name under which the REST API client created the queue browser. This field is always present.
-
queue(optional):
string
The queue that the browser browses. This field is always present, and will have the format
/queues/queueName
. -
selector(optional):
string
The selector for the browser. This field will only be present if the browser has a selector.
Examples
cURL Command
curl -s -u $USER:$PASS \ -H "Accept: application/json" \ -X GET "https://messaging.us2.oraclecloud.com/myService-myTenant/api/v1/messagingcontexts/CEAB023246F71F9E"
There is no request body to submit with the HTTP request.
Example of Response Body
{ "connections": [ { "name": "0", "sessions": [ { "ackMode": "auto", "name": "0", "producers": [ { "deliveryMode": "persistent", "name": "0_0", "timeToLive": 1209600000 } ], "transacted": false } ], "started": false } ], "id": "CEAB023246F71F9E" }Back to Top