Create a Temporary Topic
post
/temporaryTopics
Create a temporary topic on the
session
parameter.Request
Query Parameters
-
session: string
Required. The name of the session in which to create the temporary topic.
Response
201 Response
Temporary topic created.
The content of the
<temporaryTopic>
<name>topic name</name>
<connection>name of the connection with which the topic is associated</connection>
<canonicalLink>relative path to temporary topic</canonicalLink>
</temporaryTopic>
Headers
-
Location: string
Contains the URL for the newly created temporary topic.
400 Response
Error Codes
sessionNotFound
: There is no session with the specified name.
500 Response
Error Codes
operationFailed
:A low-level exception occurred in attempting to create the temporary topic.
Examples
cURL Command
Temporary Topics are created on a session and a randomly generated name is assigned and returned in the response.
cookie=/tmp/messaging-cookie curl -s -u $USER:$PASS -c $cookie -b $cookie \ -H "X-OC-ID-TOKEN-STATUS: disabled" \ -X POST "https://messaging.us2.oraclecloud.com/myService-myTenant/api/v1/temporaryTopics?session=myFirstSession"
There is no request body to submit with the HTTP request.
Example of Response Body
<?xml version='1.0' encoding='UTF-8'?> <temporaryTopic> <name>CFDF99EE0C424C21</name> <connection>myFirstConnection</connection> <canonicalLink>/myService-myTenant/api/v1/temporaryTopics/CFDF99EE0C424C21</canonicalLink> </temporaryTopic>Back to Top