1. Packages
  2. Packages
  3. Nomad Provider
  4. API Docs
  5. getNamespaces
Viewing docs for Nomad v0.4.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
nomad logo
Viewing docs for Nomad v0.4.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Retrieve a list of namespaces available in Nomad.

    Using getNamespaces

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

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

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

    public static class GetNamespaces 
    {
        public static Task<GetNamespacesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetNamespacesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespacesResult> getNamespaces(InvokeOptions options)
    public static Output<GetNamespacesResult> getNamespaces(InvokeOptions options)
    
    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.
    nomad logo
    Viewing docs for Nomad v0.4.1 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.