Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ContainerEngine.getNodePoolOption
Explore with Pulumi AI
This data source provides details about a specific Node Pool Option resource in Oracle Cloud Infrastructure Container Engine service.
Get options available for node pools.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNodePoolOption = oci.ContainerEngine.getNodePoolOption({
    nodePoolOptionId: testNodePoolOptionOciContainerengineNodePoolOption.id,
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_node_pool_option = oci.ContainerEngine.get_node_pool_option(node_pool_option_id=test_node_pool_option_oci_containerengine_node_pool_option["id"],
    compartment_id=compartment_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/containerengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerengine.GetNodePoolOption(ctx, &containerengine.GetNodePoolOptionArgs{
			NodePoolOptionId: testNodePoolOptionOciContainerengineNodePoolOption.Id,
			CompartmentId:    pulumi.StringRef(compartmentId),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testNodePoolOption = Oci.ContainerEngine.GetNodePoolOption.Invoke(new()
    {
        NodePoolOptionId = testNodePoolOptionOciContainerengineNodePoolOption.Id,
        CompartmentId = compartmentId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerEngine.ContainerEngineFunctions;
import com.pulumi.oci.ContainerEngine.inputs.GetNodePoolOptionArgs;
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 testNodePoolOption = ContainerEngineFunctions.getNodePoolOption(GetNodePoolOptionArgs.builder()
            .nodePoolOptionId(testNodePoolOptionOciContainerengineNodePoolOption.id())
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testNodePoolOption:
    fn::invoke:
      function: oci:ContainerEngine:getNodePoolOption
      arguments:
        nodePoolOptionId: ${testNodePoolOptionOciContainerengineNodePoolOption.id}
        compartmentId: ${compartmentId}
Using getNodePoolOption
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 getNodePoolOption(args: GetNodePoolOptionArgs, opts?: InvokeOptions): Promise<GetNodePoolOptionResult>
function getNodePoolOptionOutput(args: GetNodePoolOptionOutputArgs, opts?: InvokeOptions): Output<GetNodePoolOptionResult>def get_node_pool_option(compartment_id: Optional[str] = None,
                         node_pool_option_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetNodePoolOptionResult
def get_node_pool_option_output(compartment_id: Optional[pulumi.Input[str]] = None,
                         node_pool_option_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetNodePoolOptionResult]func GetNodePoolOption(ctx *Context, args *GetNodePoolOptionArgs, opts ...InvokeOption) (*GetNodePoolOptionResult, error)
func GetNodePoolOptionOutput(ctx *Context, args *GetNodePoolOptionOutputArgs, opts ...InvokeOption) GetNodePoolOptionResultOutput> Note: This function is named GetNodePoolOption in the Go SDK.
public static class GetNodePoolOption 
{
    public static Task<GetNodePoolOptionResult> InvokeAsync(GetNodePoolOptionArgs args, InvokeOptions? opts = null)
    public static Output<GetNodePoolOptionResult> Invoke(GetNodePoolOptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNodePoolOptionResult> getNodePoolOption(GetNodePoolOptionArgs args, InvokeOptions options)
public static Output<GetNodePoolOptionResult> getNodePoolOption(GetNodePoolOptionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ContainerEngine/getNodePoolOption:getNodePoolOption
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NodePool stringOption Id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- CompartmentId string
- The OCID of the compartment.
- NodePool stringOption Id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- CompartmentId string
- The OCID of the compartment.
- nodePool StringOption Id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- compartmentId String
- The OCID of the compartment.
- nodePool stringOption Id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- compartmentId string
- The OCID of the compartment.
- node_pool_ stroption_ id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- compartment_id str
- The OCID of the compartment.
- nodePool StringOption Id 
- The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.
- compartmentId String
- The OCID of the compartment.
getNodePoolOption Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Images List<string>
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- KubernetesVersions List<string>
- Available Kubernetes versions.
- NodePool stringOption Id 
- Shapes List<string>
- Available shapes for nodes.
- Sources
List<GetNode Pool Option Source> 
- Available source of the node.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Images []string
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- KubernetesVersions []string
- Available Kubernetes versions.
- NodePool stringOption Id 
- Shapes []string
- Available shapes for nodes.
- Sources
[]GetNode Pool Option Source 
- Available source of the node.
- CompartmentId string
- id String
- The provider-assigned unique ID for this managed resource.
- images List<String>
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- kubernetesVersions List<String>
- Available Kubernetes versions.
- nodePool StringOption Id 
- shapes List<String>
- Available shapes for nodes.
- sources
List<GetNode Pool Option Source> 
- Available source of the node.
- compartmentId String
- id string
- The provider-assigned unique ID for this managed resource.
- images string[]
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- kubernetesVersions string[]
- Available Kubernetes versions.
- nodePool stringOption Id 
- shapes string[]
- Available shapes for nodes.
- sources
GetNode Pool Option Source[] 
- Available source of the node.
- compartmentId string
- id str
- The provider-assigned unique ID for this managed resource.
- images Sequence[str]
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- kubernetes_versions Sequence[str]
- Available Kubernetes versions.
- node_pool_ stroption_ id 
- shapes Sequence[str]
- Available shapes for nodes.
- sources
Sequence[GetNode Pool Option Source] 
- Available source of the node.
- compartment_id str
- id String
- The provider-assigned unique ID for this managed resource.
- images List<String>
- Deprecated. See sources. When creating a node pool, only image names contained in this property can be passed to the node_image_nameproperty.
- kubernetesVersions List<String>
- Available Kubernetes versions.
- nodePool StringOption Id 
- shapes List<String>
- Available shapes for nodes.
- sources List<Property Map>
- Available source of the node.
- compartmentId String
Supporting Types
GetNodePoolOptionSource    
- ImageId string
- The OCID of the image.
- SourceName string
- The user-friendly name of the entity corresponding to the OCID.
- SourceType string
- The source type of this option. IMAGEmeans the OCID is of an image.
- ImageId string
- The OCID of the image.
- SourceName string
- The user-friendly name of the entity corresponding to the OCID.
- SourceType string
- The source type of this option. IMAGEmeans the OCID is of an image.
- imageId String
- The OCID of the image.
- sourceName String
- The user-friendly name of the entity corresponding to the OCID.
- sourceType String
- The source type of this option. IMAGEmeans the OCID is of an image.
- imageId string
- The OCID of the image.
- sourceName string
- The user-friendly name of the entity corresponding to the OCID.
- sourceType string
- The source type of this option. IMAGEmeans the OCID is of an image.
- image_id str
- The OCID of the image.
- source_name str
- The user-friendly name of the entity corresponding to the OCID.
- source_type str
- The source type of this option. IMAGEmeans the OCID is of an image.
- imageId String
- The OCID of the image.
- sourceName String
- The user-friendly name of the entity corresponding to the OCID.
- sourceType String
- The source type of this option. IMAGEmeans the OCID is of an image.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.