No, you can only access it from localhost via the socket … to do any remote management you need to create an agent snap that utilizes the snapd-control
interface and then forwards the requests/replies to the network…
ogra@pipower:~$ snap install http
Download snap "core18" (2755) from channel "stable" 6% 3.70MB/s 13.1shttp 2.4.0 from Snap Retiring installed
ogra@pipower:~$ http snapd:///v2/snaps
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 13 Jun 2023 15:36:29 GMT
Transfer-Encoding: chunked
{
"result": [
{
"apps": [
{
"desktop-file": "/var/lib/snapd/desktop/applications/htop_htop.desktop",
"name": "htop",
"snap": "htop"
}
],
"base": "core22",
"channel": "stable",
"confinement": "strict",
...
(curl should also work via http://localhost … and the socket option)