Create a Temporary Topic

post

/temporaryTopics

Create a temporary topic on the session parameter.

Request

Query Parameters
  • Required.  The name of the session in which to create the temporary topic.
Back to Top

Response

201 Response

Temporary topic created. 

The content of the element is a pseudorandom name generated by the service for the newly created temporary topic or topic.


<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

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.
Back to Top

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