Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ContainerEngine/getNodePoolOption:getNodePoolOption
arguments:
# arguments dictionary
The following arguments are supported:
- Node
Pool 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.
- Compartment
Id string - The OCID of the compartment.
- Node
Pool 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.
- Compartment
Id string - The OCID of the compartment.
- node
Pool 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.
- compartment
Id String - The OCID of the compartment.
- node
Pool 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.
- compartment
Id 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.
- node
Pool 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.
- compartment
Id 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. - Kubernetes
Versions List<string> - Available Kubernetes versions.
- Node
Pool stringOption Id - Shapes List<string>
- Available shapes for nodes.
- Sources
List<Get
Node Pool Option Source> - Available source of the node.
- Compartment
Id 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. - Kubernetes
Versions []string - Available Kubernetes versions.
- Node
Pool stringOption Id - Shapes []string
- Available shapes for nodes.
- Sources
[]Get
Node Pool Option Source - Available source of the node.
- Compartment
Id 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. - kubernetes
Versions List<String> - Available Kubernetes versions.
- node
Pool StringOption Id - shapes List<String>
- Available shapes for nodes.
- sources
List<Get
Node Pool Option Source> - Available source of the node.
- compartment
Id 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. - kubernetes
Versions string[] - Available Kubernetes versions.
- node
Pool stringOption Id - shapes string[]
- Available shapes for nodes.
- sources
Get
Node Pool Option Source[] - Available source of the node.
- compartment
Id 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_ stroption_ id - shapes Sequence[str]
- Available shapes for nodes.
- sources
Sequence[containerengine.
Get Node 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_name
property. - kubernetes
Versions List<String> - Available Kubernetes versions.
- node
Pool StringOption Id - shapes List<String>
- Available shapes for nodes.
- sources List<Property Map>
- Available source of the node.
- compartment
Id String
Supporting Types
GetNodePoolOptionSource
- Image
Id string - The OCID of the image.
- Source
Name string - The user-friendly name of the entity corresponding to the OCID.
- Source
Type string - The source type of this option.
IMAGE
means the OCID is of an image.
- Image
Id string - The OCID of the image.
- Source
Name string - The user-friendly name of the entity corresponding to the OCID.
- Source
Type string - The source type of this option.
IMAGE
means the OCID is of an image.
- image
Id String - The OCID of the image.
- source
Name String - The user-friendly name of the entity corresponding to the OCID.
- source
Type String - The source type of this option.
IMAGE
means the OCID is of an image.
- image
Id string - The OCID of the image.
- source
Name string - The user-friendly name of the entity corresponding to the OCID.
- source
Type 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.
- image
Id String - The OCID of the image.
- source
Name String - The user-friendly name of the entity corresponding to the OCID.
- source
Type 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.