GitHub user michaeljmarshall added a comment to the discussion: Unsubscribe
subscription [Rest API] working?
It looks like that documentation is incorrect. I also get a 404 when I call
that endpoint. However, when I run `bin/pulsar-admin topics unsubscribe -s sub
test`, I noticed that the broker logs a different endpoint:
> 23:49:23.569 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO
> org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [01/Sep/2022:23:49:23
> -0500] "PUT /admin/v2/persistent/public/default/test/subscription/sub
> HTTP/1.1" 204 0 "-" "Pulsar-Java-v2.7.2" 78
The correct endpoint includes `/persistent`. If you try
`/admin/v2/persistent/{tenant}/{namespace}/{topic}/subscription/{subName}`, it
should work.
Would you mind creating an issue in the project to get the documentation fixed?
Thanks!
GitHub link:
https://github.com/apache/pulsar/discussions/17379#discussioncomment-3532868
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]