Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getNodePoolOption

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testNodePoolOption = Output.Create(Oci.ContainerEngine.GetNodePoolOption.InvokeAsync(new Oci.ContainerEngine.GetNodePoolOptionArgs
        {
            NodePoolOptionId = oci_containerengine_node_pool_option.Test_node_pool_option.Id,
            CompartmentId = @var.Compartment_id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_containerengine_node_pool_option.Test_node_pool_option.Id,
			CompartmentId:    pulumi.StringRef(_var.Compartment_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_node_pool_option = oci.ContainerEngine.get_node_pool_option(node_pool_option_id=oci_containerengine_node_pool_option["test_node_pool_option"]["id"],
    compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNodePoolOption = oci.ContainerEngine.getNodePoolOption({
    nodePoolOptionId: oci_containerengine_node_pool_option.test_node_pool_option.id,
    compartmentId: _var.compartment_id,
});

Coming soon!

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 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.