List Temporary Topics
get
/temporaryTopics
Lists all of the temporary topics in the messaging context.
Request
Query Parameters
-
connection(optional): string
Optional. The name of a connection for which to list all temporary topics.
Response
200 Response
In XML, the format for listing all temporary topics in a messaging context is as follows:
<temporaryTopics>
<items>
<name>topic name</name>
<connection>name of the connection with which the topic is associated</connection>
<canonicalLink>relative path to temporary topic</canonicalLink>
</items>
...
<canonicalLink>relative path to list of temporary topics</canonicalLink>
</temporaryTopics>
400 Response
Error Codes
connectionParameterNotFound
: Aconnection
parameter was supplied, but no connection with that name exists in the messaging context.
500 Response
Error Codes
operationFailed
:A low-level exception occurred in attempting to list the temporary topics.
Examples
cURL Command
cookie=/tmp/messaging-cookie curl -s -u $USER:$PASS -c $cookie -b $cookie \ -H "X-OC-ID-TOKEN-STATUS: disabled" \ -X GET "https://messaging.us2.oraclecloud.com/myService-myTenant/api/v1/temporaryTopics"
There is no request body to submit with the HTTP request.
Example of Response Body
<?xml version='1.0' encoding='UTF-8'?> <temporaryTopics> <items> <name>CFDF99EE0C424C21</name> <connection>myFirstConnection</connection> <canonicalLink>/myService-myTenant/api/v1/temporaryTopics/CFDF99EE0C424C21</canonicalLink> </items> </temporaryTopics>Back to Top