get Node Types
Provides available node types for Compute Engine sole-tenant nodes in a zone for a given project. For more information, see the official documentation and API.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetNodeTypesArgs;
import com.pulumi.gcp.compute.NodeTemplate;
import com.pulumi.gcp.compute.NodeTemplateArgs;
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 central1b = ComputeFunctions.getNodeTypes(GetNodeTypesArgs.builder()
.zone("us-central1-b")
.build());
var tmpl = new NodeTemplate("tmpl", NodeTemplateArgs.builder()
.region("us-central1")
.nodeType(data.google_compute_node_types().types().names()[0])
.build());
}
}
Return
A collection of values returned by getNodeTypes.
Parameters
A collection of arguments for invoking getNodeTypes.
Return
A collection of values returned by getNodeTypes.
Parameters
ID of the project to list available node types for. Should match the project the nodes of this type will be deployed to. Defaults to the project that the provider is authenticated with.
The zone to list node types for. Should be in zone of intended node groups and region of referencing node template. If zone
is not specified, the provider-level zone must be set and is used instead.
See also
Return
A collection of values returned by getNodeTypes.
Parameters
Builder for com.pulumi.gcp.compute.kotlin.inputs.GetNodeTypesPlainArgs.