1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getNodePoolOption
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

oci.ContainerEngine.getNodePoolOption

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerEngine/getNodePoolOption:getNodePoolOption
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodePoolOptionId string
    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.
    NodePoolOptionId string
    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.
    nodePoolOptionId String
    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.
    nodePoolOptionId string
    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_option_id str
    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.
    nodePoolOptionId String
    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_name property.
    KubernetesVersions List<string>
    Available Kubernetes versions.
    NodePoolOptionId string
    Shapes List<string>
    Available shapes for nodes.
    Sources List<GetNodePoolOptionSource>
    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_name property.
    KubernetesVersions []string
    Available Kubernetes versions.
    NodePoolOptionId string
    Shapes []string
    Available shapes for nodes.
    Sources []GetNodePoolOptionSource
    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_name property.
    kubernetesVersions List<String>
    Available Kubernetes versions.
    nodePoolOptionId String
    shapes List<String>
    Available shapes for nodes.
    sources List<GetNodePoolOptionSource>
    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_name property.
    kubernetesVersions string[]
    Available Kubernetes versions.
    nodePoolOptionId string
    shapes string[]
    Available shapes for nodes.
    sources GetNodePoolOptionSource[]
    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_name property.
    kubernetes_versions Sequence[str]
    Available Kubernetes versions.
    node_pool_option_id str
    shapes Sequence[str]
    Available shapes for nodes.
    sources Sequence[containerengine.GetNodePoolOptionSource]
    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_name property.
    kubernetesVersions List<String>
    Available Kubernetes versions.
    nodePoolOptionId String
    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. IMAGE means 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. IMAGE means 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. IMAGE means 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. IMAGE means 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. IMAGE means 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. IMAGE means 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi