Creating a DB over the public API is unsupported?

36 views
Skip to first unread message

srinadh korukonda

unread,
Oct 31, 2015, 7:32:02 AM10/31/15
to Couchbase Mobile
Hi All,

    I want to create database from Rest API, but i'm getting error like Creating a DB over the public API is unsupported
 

Jens Alfke

unread,
Oct 31, 2015, 12:11:32 PM10/31/15
to mobile-c...@googlegroups.com
That's because creating a database over the public API is unsupported. You can use the admin port instead. However, the bucket backing that database has to already exist.

—Jens 

On Oct 31, 2015, at 4:32 AM, srinadh korukonda <srin...@stellentsoft.com> wrote:

Hi All,

    I want to create database from Rest API, but i'm getting error like Creating a DB over the public API is unsupported
 

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0f2cca4e-c7a8-461e-bd99-6f2e42b1d017%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

srinadh korukonda

unread,
Oct 31, 2015, 1:36:12 PM10/31/15
to Couchbase Mobile
Hi Jens, Thanks for reply,

 How can i know my admin port.

Jens Alfke

unread,
Nov 1, 2015, 1:08:49 AM11/1/15
to mobile-c...@googlegroups.com

> On Oct 31, 2015, at 10:36 AM, srinadh korukonda <srin...@stellentsoft.com> wrote:
>
> How can i know my admin port.

Look at the SG config file, or if admin_api isn’t defined, it defaults to port 4985. (And for security reasons it’s only available on localhost, i.e. you can’t reach it from another machine.)

—Jens

Reply all
Reply to author
Forward
0 new messages