yb_server_cloud()

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

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