1. Packages
  2. HashiCorp Nomad
  3. API Docs
  4. getRegions
Nomad v2.2.0 published on Wednesday, Mar 13, 2024 by Pulumi

nomad.getRegions

Explore with Pulumi AI

nomad logo
Nomad v2.2.0 published on Wednesday, Mar 13, 2024 by Pulumi

    Retrieve a list of regions available in Nomad.

    Using getRegions

    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 getRegions(opts?: InvokeOptions): Promise<GetRegionsResult>
    function getRegionsOutput(opts?: InvokeOptions): Output<GetRegionsResult>
    def get_regions(opts: Optional[InvokeOptions] = None) -> GetRegionsResult
    def get_regions_output(opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
    func GetRegions(ctx *Context, opts ...InvokeOption) (*GetRegionsResult, error)
    func GetRegionsOutput(ctx *Context, opts ...InvokeOption) GetRegionsResultOutput

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

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

    getRegions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Regions List<string>
    (list of strings) - a list of regions available in the cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Regions []string
    (list of strings) - a list of regions available in the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    regions List<String>
    (list of strings) - a list of regions available in the cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    regions string[]
    (list of strings) - a list of regions available in the cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    regions Sequence[str]
    (list of strings) - a list of regions available in the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    regions List<String>
    (list of strings) - a list of regions 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
    Nomad v2.2.0 published on Wednesday, Mar 13, 2024 by Pulumi