Show Dataverse server name by Native API

116 views
Skip to first unread message

Thiago Brasil

unread,
Feb 13, 2023, 10:23:35 AM2/13/23
to Dataverse Users Community
Hello,
I'm trying to get the name of the Dataverse server (e.g. Demo Dataverse) but this native API endpoint just returns the server alias (e.g. demo.dataverse.org).

Is there any way to show this information using the native API?

James Myers

unread,
Feb 13, 2023, 10:29:55 AM2/13/23
to dataverse...@googlegroups.com

That’s actually the name of the root collection (aka dataverse) and https://demo.dataverse.org/api/dataverses/1 should let you get it’s name.

 

--Jim

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/cf690a7d-12b9-428b-a752-6572fbaa361an%40googlegroups.com.

Thiago Brasil

unread,
Feb 13, 2023, 10:42:50 AM2/13/23
to Dataverse Users Community
I see, so I can get the name using the :root value.

Thanks, Jim.

James Myers

unread,
Feb 13, 2023, 11:06:45 AM2/13/23
to dataverse...@googlegroups.com

After a slack chat with Don – a more complete answer is that the InstallationName itself isn’t available via the native API. However, by default, it is set to the name of the root collection, so in most cases the /api/dataverses/:root call will work. If the  :InstallationName setting to change the default is set, there isn’t currently an API way to get that value except for the restricted admin api: /api/admin/settings/:InstallationName . (https://data.qdr.syr.edu is a good example where the Installation name is not the same as the root collection name.)

 

It would probably be useful to put in an issue and/or PR to make it available (perhaps as an extension of that /api/info/server endpoint).

 

-- Jim

Thiago Brasil

unread,
Feb 15, 2023, 1:31:43 PM2/15/23
to Dataverse Users Community
I created a GitHub issue about our discussion:
Reply all
Reply to author
Forward
0 new messages