get Plugin
Lookup a plugin by ID. The aim of this datasource is to determine whether a particular plugin exists on the cluster, to find information on the health and availability of the plugin, and to optionally wait for the plugin before performing actions the require an available plugin controller. If a plugin with the specified ID does not exist and the datasource is not configured to wait, it will result in an error. For simple existence checks, use the nomad.getPlugins
listing datasource.
Example Usage
Check for the existence of a plugin:
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.NomadFunctions;
import com.pulumi.nomad.inputs.GetPluginArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ebs = NomadFunctions.getPlugin(GetPluginArgs.builder()
.pluginId("aws-ebs0")
.waitForHealthy(true)
.build());
}
}
Return
A collection of values returned by getPlugin.
Parameters
A collection of arguments for invoking getPlugin.
Return
A collection of values returned by getPlugin.
Parameters
(string)
ID of the plugin.
(boolean)
retry until the plugin exists and all controllers are healthy
(boolean)
if the plugin doesn't exist, retry until it does
See also
Return
A collection of values returned by getPlugin.
Parameters
Builder for com.pulumi.nomad.kotlin.inputs.GetPluginPlainArgs.