Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.ContainerEngine.getClusterOption
Explore with Pulumi AI
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
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 = oci_containerengine_cluster_option.Test_cluster_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.GetClusterOption(ctx, &containerengine.GetClusterOptionArgs{
ClusterOptionId: oci_containerengine_cluster_option.Test_cluster_option.Id,
CompartmentId: pulumi.StringRef(_var.Compartment_id),
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_containerengine_cluster_option.test_cluster_option().id())
.compartmentId(var_.compartment_id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_cluster_option = oci.ContainerEngine.get_cluster_option(cluster_option_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testClusterOption = oci.ContainerEngine.getClusterOption({
clusterOptionId: oci_containerengine_cluster_option.test_cluster_option.id,
compartmentId: _var.compartment_id,
});
variables:
testClusterOption:
fn::invoke:
Function: oci:ContainerEngine:getClusterOption
Arguments:
clusterOptionId: ${oci_containerengine_cluster_option.test_cluster_option.id}
compartmentId: ${var.compartment_id}
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>
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]
func GetClusterOption(ctx *Context, args *GetClusterOptionArgs, opts ...InvokeOption) (*GetClusterOptionResult, error)
func GetClusterOptionOutput(ctx *Context, args *GetClusterOptionOutputArgs, opts ...InvokeOption) GetClusterOptionResultOutput
> 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)
}
public static CompletableFuture<GetClusterOptionResult> getClusterOption(GetClusterOptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ContainerEngine/getClusterOption:getClusterOption
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Option stringId 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 string The OCID of the compartment.
- Cluster
Option stringId 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 string The OCID of the compartment.
- cluster
Option StringId 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 String The OCID of the compartment.
- cluster
Option stringId 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 string The OCID of the compartment.
- cluster_
option_ strid 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.
- cluster
Option StringId 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 String The OCID of the compartment.
getClusterOption Result
The following output properties are available:
- Cluster
Option stringId - Cluster
Pod List<GetNetwork Options Cluster Option Cluster Pod Network Option> 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.
- Kubernetes
Versions List<string> Available Kubernetes versions.
- Compartment
Id string
- Cluster
Option stringId - Cluster
Pod []GetNetwork Options Cluster Option Cluster Pod Network Option 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.
- Kubernetes
Versions []string Available Kubernetes versions.
- Compartment
Id string
- cluster
Option StringId - cluster
Pod List<GetNetwork Options Cluster Option Cluster Pod Network Option> 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.
- kubernetes
Versions List<String> Available Kubernetes versions.
- compartment
Id String
- cluster
Option stringId - cluster
Pod GetNetwork Options Cluster Option Cluster Pod Network Option[] 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.
- kubernetes
Versions string[] Available Kubernetes versions.
- compartment
Id string
- cluster_
option_ strid - cluster_
pod_ Getnetwork_ options Cluster Option Cluster Pod Network Option] 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
- cluster
Option StringId - cluster
Pod List<Property Map>Network Options 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.
- kubernetes
Versions List<String> Available Kubernetes versions.
- compartment
Id String
Supporting Types
GetClusterOptionClusterPodNetworkOption
- Cni
Type string The CNI used by the node pools of this cluster
- Cni
Type string The CNI used by the node pools of this cluster
- cni
Type String The CNI used by the node pools of this cluster
- cni
Type string The CNI used by the node pools of this cluster
- cni_
type str The CNI used by the node pools of this cluster
- cni
Type 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.