Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ContainerEngine.getAddon
Explore with Pulumi AI
This data source provides details about a specific Addon resource in Oracle Cloud Infrastructure Container Engine service.
Get the specified addon for a cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddon = oci.ContainerEngine.getAddon({
    addonName: testAddonOciContainerengineAddon.name,
    clusterId: testCluster.id,
});
import pulumi
import pulumi_oci as oci
test_addon = oci.ContainerEngine.get_addon(addon_name=test_addon_oci_containerengine_addon["name"],
    cluster_id=test_cluster["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.GetAddon(ctx, &containerengine.GetAddonArgs{
			AddonName: testAddonOciContainerengineAddon.Name,
			ClusterId: testCluster.Id,
		}, 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 testAddon = Oci.ContainerEngine.GetAddon.Invoke(new()
    {
        AddonName = testAddonOciContainerengineAddon.Name,
        ClusterId = testCluster.Id,
    });
});
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.GetAddonArgs;
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 testAddon = ContainerEngineFunctions.getAddon(GetAddonArgs.builder()
            .addonName(testAddonOciContainerengineAddon.name())
            .clusterId(testCluster.id())
            .build());
    }
}
variables:
  testAddon:
    fn::invoke:
      function: oci:ContainerEngine:getAddon
      arguments:
        addonName: ${testAddonOciContainerengineAddon.name}
        clusterId: ${testCluster.id}
Using getAddon
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 getAddon(args: GetAddonArgs, opts?: InvokeOptions): Promise<GetAddonResult>
function getAddonOutput(args: GetAddonOutputArgs, opts?: InvokeOptions): Output<GetAddonResult>def get_addon(addon_name: Optional[str] = None,
              cluster_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetAddonResult
def get_addon_output(addon_name: Optional[pulumi.Input[str]] = None,
              cluster_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetAddonResult]func LookupAddon(ctx *Context, args *LookupAddonArgs, opts ...InvokeOption) (*LookupAddonResult, error)
func LookupAddonOutput(ctx *Context, args *LookupAddonOutputArgs, opts ...InvokeOption) LookupAddonResultOutput> Note: This function is named LookupAddon in the Go SDK.
public static class GetAddon 
{
    public static Task<GetAddonResult> InvokeAsync(GetAddonArgs args, InvokeOptions? opts = null)
    public static Output<GetAddonResult> Invoke(GetAddonInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddonResult> getAddon(GetAddonArgs args, InvokeOptions options)
public static Output<GetAddonResult> getAddon(GetAddonArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ContainerEngine/getAddon:getAddon
  arguments:
    # arguments dictionaryThe following arguments are supported:
- addon_name str
- The name of the addon.
- cluster_id str
- The OCID of the cluster.
getAddon Result
The following output properties are available:
- AddonErrors List<GetAddon Addon Error> 
- The error info of the addon.
- AddonName string
- The name of the addon.
- ClusterId string
- Configurations
List<GetAddon Configuration> 
- Addon configuration details.
- CurrentInstalled stringVersion 
- current installed version of the addon
- Id string
- OverrideExisting bool
- RemoveAddon boolResources On Delete 
- State string
- The state of the addon.
- TimeCreated string
- The time the cluster was created.
- Version string
- selected addon version, or null indicates autoUpdate
- AddonErrors []GetAddon Addon Error 
- The error info of the addon.
- AddonName string
- The name of the addon.
- ClusterId string
- Configurations
[]GetAddon Configuration 
- Addon configuration details.
- CurrentInstalled stringVersion 
- current installed version of the addon
- Id string
- OverrideExisting bool
- RemoveAddon boolResources On Delete 
- State string
- The state of the addon.
- TimeCreated string
- The time the cluster was created.
- Version string
- selected addon version, or null indicates autoUpdate
- addonErrors List<GetAddon Addon Error> 
- The error info of the addon.
- addonName String
- The name of the addon.
- clusterId String
- configurations
List<GetAddon Configuration> 
- Addon configuration details.
- currentInstalled StringVersion 
- current installed version of the addon
- id String
- overrideExisting Boolean
- removeAddon BooleanResources On Delete 
- state String
- The state of the addon.
- timeCreated String
- The time the cluster was created.
- version String
- selected addon version, or null indicates autoUpdate
- addonErrors GetAddon Addon Error[] 
- The error info of the addon.
- addonName string
- The name of the addon.
- clusterId string
- configurations
GetAddon Configuration[] 
- Addon configuration details.
- currentInstalled stringVersion 
- current installed version of the addon
- id string
- overrideExisting boolean
- removeAddon booleanResources On Delete 
- state string
- The state of the addon.
- timeCreated string
- The time the cluster was created.
- version string
- selected addon version, or null indicates autoUpdate
- addon_errors Sequence[GetAddon Addon Error] 
- The error info of the addon.
- addon_name str
- The name of the addon.
- cluster_id str
- configurations
Sequence[GetAddon Configuration] 
- Addon configuration details.
- current_installed_ strversion 
- current installed version of the addon
- id str
- override_existing bool
- remove_addon_ boolresources_ on_ delete 
- state str
- The state of the addon.
- time_created str
- The time the cluster was created.
- version str
- selected addon version, or null indicates autoUpdate
- addonErrors List<Property Map>
- The error info of the addon.
- addonName String
- The name of the addon.
- clusterId String
- configurations List<Property Map>
- Addon configuration details.
- currentInstalled StringVersion 
- current installed version of the addon
- id String
- overrideExisting Boolean
- removeAddon BooleanResources On Delete 
- state String
- The state of the addon.
- timeCreated String
- The time the cluster was created.
- version String
- selected addon version, or null indicates autoUpdate
Supporting Types
GetAddonAddonError   
- Code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- Message string
- A human-readable error string of the upstream error.
- Status string
- The status of the HTTP response encountered in the upstream error.
- Code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- Message string
- A human-readable error string of the upstream error.
- Status string
- The status of the HTTP response encountered in the upstream error.
- code String
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message String
- A human-readable error string of the upstream error.
- status String
- The status of the HTTP response encountered in the upstream error.
- code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message string
- A human-readable error string of the upstream error.
- status string
- The status of the HTTP response encountered in the upstream error.
- code str
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message str
- A human-readable error string of the upstream error.
- status str
- The status of the HTTP response encountered in the upstream error.
- code String
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message String
- A human-readable error string of the upstream error.
- status String
- The status of the HTTP response encountered in the upstream error.
GetAddonConfiguration  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.