HashiCorp Nomad

v0.2.1 published on Tuesday, Dec 7, 2021 by Pulumi

getSchedulerPolicy

Retrieve the cluster’s scheduler configuration.

Example Usage

using Pulumi;
using Nomad = Pulumi.Nomad;

class MyStack : Stack
{
    public MyStack()
    {
        var @global = Output.Create(Nomad.GetSchedulerPolicy.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-nomad/sdk/go/nomad"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nomad.GetSchedulerPolicy(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_nomad as nomad

global_ = nomad.get_scheduler_policy()
import * as pulumi from "@pulumi/pulumi";
import * as nomad from "@pulumi/nomad";

const global = pulumi.output(nomad.getSchedulerPolicy());

Using getSchedulerPolicy

function getSchedulerPolicy(opts?: InvokeOptions): Promise<GetSchedulerPolicyResult>
def get_scheduler_policy(opts: Optional[InvokeOptions] = None) -> GetSchedulerPolicyResult
func GetSchedulerPolicy(ctx *Context, opts ...InvokeOption) (*GetSchedulerPolicyResult, error)

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

public static class GetSchedulerPolicy 
{
    public static Task<GetSchedulerPolicyResult> InvokeAsync(InvokeOptions? opts = null)
}

getSchedulerPolicy Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
MemoryOversubscriptionEnabled bool
PreemptionConfig Dictionary<string, bool>
SchedulerAlgorithm string
Id string
The provider-assigned unique ID for this managed resource.
MemoryOversubscriptionEnabled bool
PreemptionConfig map[string]bool
SchedulerAlgorithm string
id string
The provider-assigned unique ID for this managed resource.
memoryOversubscriptionEnabled boolean
preemptionConfig {[key: string]: boolean}
schedulerAlgorithm string
id str
The provider-assigned unique ID for this managed resource.
memory_oversubscription_enabled bool
preemption_config Mapping[str, bool]
scheduler_algorithm str

Package Details

Repository
https://github.com/pulumi/pulumi-nomad
License
Apache-2.0
Notes
This Pulumi package is based on the nomad Terraform Provider.