nomad.getNamespaces

Retrieve a list of namespaces available in Nomad.

Using getNamespaces

function getNamespaces(opts?: InvokeOptions): Promise<GetNamespacesResult>
def get_namespaces(opts: Optional[InvokeOptions] = None) -> GetNamespacesResult
func GetNamespaces(ctx *Context, opts ...InvokeOption) (*GetNamespacesResult, error)

> Note: This function is named GetNamespaces in the Go SDK.

public static class GetNamespaces 
{
    public static Task<GetNamespacesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespacesResult> getNamespaces(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: nomad:index/getNamespaces:getNamespaces
  arguments:
    # arguments dictionary

getNamespaces Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Namespaces List<string>

(list of strings) - a list of namespaces available in the cluster.

Id string

The provider-assigned unique ID for this managed resource.

Namespaces []string

(list of strings) - a list of namespaces available in the cluster.

id String

The provider-assigned unique ID for this managed resource.

namespaces List<String>

(list of strings) - a list of namespaces available in the cluster.

id string

The provider-assigned unique ID for this managed resource.

namespaces string[]

(list of strings) - a list of namespaces available in the cluster.

id str

The provider-assigned unique ID for this managed resource.

namespaces Sequence[str]

(list of strings) - a list of namespaces available in the cluster.

id String

The provider-assigned unique ID for this managed resource.

namespaces List<String>

(list of strings) - a list of namespaces available in the cluster.

Package Details

Repository
HashiCorp Nomad pulumi/pulumi-nomad
License
Apache-2.0
Notes

This Pulumi package is based on the nomad Terraform Provider.