1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getClusterOption
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.ContainerEngine.getClusterOption

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides details about a specific Cluster Option resource in Oracle Cloud Infrastructure Container Engine service.

Get options available for clusters.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testClusterOption = oci.ContainerEngine.getClusterOption({
    clusterOptionId: testClusterOptionOciContainerengineClusterOption.id,
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_cluster_option = oci.ContainerEngine.get_cluster_option(cluster_option_id=test_cluster_option_oci_containerengine_cluster_option["id"],
    compartment_id=compartment_id)
Copy
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.GetClusterOption(ctx, &containerengine.GetClusterOptionArgs{
			ClusterOptionId: testClusterOptionOciContainerengineClusterOption.Id,
			CompartmentId:   pulumi.StringRef(compartmentId),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testClusterOption = Oci.ContainerEngine.GetClusterOption.Invoke(new()
    {
        ClusterOptionId = testClusterOptionOciContainerengineClusterOption.Id,
        CompartmentId = compartmentId,
    });

});
Copy
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.GetClusterOptionArgs;
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 testClusterOption = ContainerEngineFunctions.getClusterOption(GetClusterOptionArgs.builder()
            .clusterOptionId(testClusterOptionOciContainerengineClusterOption.id())
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testClusterOption:
    fn::invoke:
      function: oci:ContainerEngine:getClusterOption
      arguments:
        clusterOptionId: ${testClusterOptionOciContainerengineClusterOption.id}
        compartmentId: ${compartmentId}
Copy

Using getClusterOption

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 getClusterOption(args: GetClusterOptionArgs, opts?: InvokeOptions): Promise<GetClusterOptionResult>
function getClusterOptionOutput(args: GetClusterOptionOutputArgs, opts?: InvokeOptions): Output<GetClusterOptionResult>
Copy
def get_cluster_option(cluster_option_id: Optional[str] = None,
                       compartment_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetClusterOptionResult
def get_cluster_option_output(cluster_option_id: Optional[pulumi.Input[str]] = None,
                       compartment_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetClusterOptionResult]
Copy
func GetClusterOption(ctx *Context, args *GetClusterOptionArgs, opts ...InvokeOption) (*GetClusterOptionResult, error)
func GetClusterOptionOutput(ctx *Context, args *GetClusterOptionOutputArgs, opts ...InvokeOption) GetClusterOptionResultOutput
Copy

> Note: This function is named GetClusterOption in the Go SDK.

public static class GetClusterOption 
{
    public static Task<GetClusterOptionResult> InvokeAsync(GetClusterOptionArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterOptionResult> Invoke(GetClusterOptionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetClusterOptionResult> getClusterOption(GetClusterOptionArgs args, InvokeOptions options)
public static Output<GetClusterOptionResult> getClusterOption(GetClusterOptionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ContainerEngine/getClusterOption:getClusterOption
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterOptionId This property is required. 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.
ClusterOptionId This property is required. 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.
clusterOptionId This property is required. 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.
clusterOptionId This property is required. 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.
cluster_option_id This property is required. 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.
clusterOptionId This property is required. 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.

getClusterOption Result

The following output properties are available:

ClusterOptionId string
ClusterPodNetworkOptions List<GetClusterOptionClusterPodNetworkOption>
Available CNIs and network options for existing and new node pools of the cluster
Id string
The provider-assigned unique ID for this managed resource.
KubernetesVersions List<string>
Available Kubernetes versions.
CompartmentId string
ClusterOptionId string
ClusterPodNetworkOptions []GetClusterOptionClusterPodNetworkOption
Available CNIs and network options for existing and new node pools of the cluster
Id string
The provider-assigned unique ID for this managed resource.
KubernetesVersions []string
Available Kubernetes versions.
CompartmentId string
clusterOptionId String
clusterPodNetworkOptions List<GetClusterOptionClusterPodNetworkOption>
Available CNIs and network options for existing and new node pools of the cluster
id String
The provider-assigned unique ID for this managed resource.
kubernetesVersions List<String>
Available Kubernetes versions.
compartmentId String
clusterOptionId string
clusterPodNetworkOptions GetClusterOptionClusterPodNetworkOption[]
Available CNIs and network options for existing and new node pools of the cluster
id string
The provider-assigned unique ID for this managed resource.
kubernetesVersions string[]
Available Kubernetes versions.
compartmentId string
cluster_option_id str
cluster_pod_network_options Sequence[containerengine.GetClusterOptionClusterPodNetworkOption]
Available CNIs and network options for existing and new node pools of the cluster
id str
The provider-assigned unique ID for this managed resource.
kubernetes_versions Sequence[str]
Available Kubernetes versions.
compartment_id str
clusterOptionId String
clusterPodNetworkOptions List<Property Map>
Available CNIs and network options for existing and new node pools of the cluster
id String
The provider-assigned unique ID for this managed resource.
kubernetesVersions List<String>
Available Kubernetes versions.
compartmentId String

Supporting Types

GetClusterOptionClusterPodNetworkOption

CniType This property is required. string
The CNI used by the node pools of this cluster
CniType This property is required. string
The CNI used by the node pools of this cluster
cniType This property is required. String
The CNI used by the node pools of this cluster
cniType This property is required. string
The CNI used by the node pools of this cluster
cni_type This property is required. str
The CNI used by the node pools of this cluster
cniType This property is required. String
The CNI used by the node pools of this cluster

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi