Last updated 3 years ago
Was this helpful?
Default version: v1
v1
$ns = $this->cluster ->namespace() ->setName('staging') ->create();
The Status API is available to be accessed for fresh instances:
$ns->refresh(); if ($ns->isActive()) { // }
You can also check if the namespace is terminating:
if ($ns->isTerminating()) { // }