yb_server_cloud()

This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.

Synopsis

yb_server_cloud() returns the cloud provider that a user's server is connected to.

Examples

Call yb_server_cloud()

yugabyte=# SELECT yb_server_cloud();
 yb_server_cloud
-----------------
 aws
(1 row)

Note

If you didn't set the placement_cloud flag at node startup, yb_server_cloud() returns NULL.

See also