1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getAddons
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.ContainerEngine.getAddons

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    This data source provides the list of Addons in Oracle Cloud Infrastructure Container Engine service.

    List addon for a provisioned cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAddons = oci.ContainerEngine.getAddons({
        clusterId: testCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_addons = oci.ContainerEngine.get_addons(cluster_id=test_cluster["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.GetAddons(ctx, &containerengine.GetAddonsArgs{
    			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 testAddons = Oci.ContainerEngine.GetAddons.Invoke(new()
        {
            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.GetAddonsArgs;
    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 testAddons = ContainerEngineFunctions.getAddons(GetAddonsArgs.builder()
                .clusterId(testCluster.id())
                .build());
    
        }
    }
    
    variables:
      testAddons:
        fn::invoke:
          Function: oci:ContainerEngine:getAddons
          Arguments:
            clusterId: ${testCluster.id}
    

    Using getAddons

    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 getAddons(args: GetAddonsArgs, opts?: InvokeOptions): Promise<GetAddonsResult>
    function getAddonsOutput(args: GetAddonsOutputArgs, opts?: InvokeOptions): Output<GetAddonsResult>
    def get_addons(cluster_id: Optional[str] = None,
                   filters: Optional[Sequence[_containerengine.GetAddonsFilter]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAddonsResult
    def get_addons_output(cluster_id: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerengine.GetAddonsFilterArgs]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAddonsResult]
    func GetAddons(ctx *Context, args *GetAddonsArgs, opts ...InvokeOption) (*GetAddonsResult, error)
    func GetAddonsOutput(ctx *Context, args *GetAddonsOutputArgs, opts ...InvokeOption) GetAddonsResultOutput

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

    public static class GetAddons 
    {
        public static Task<GetAddonsResult> InvokeAsync(GetAddonsArgs args, InvokeOptions? opts = null)
        public static Output<GetAddonsResult> Invoke(GetAddonsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAddonsResult> getAddons(GetAddonsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerEngine/getAddons:getAddons
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The OCID of the cluster.
    Filters List<GetAddonsFilter>
    ClusterId string
    The OCID of the cluster.
    Filters []GetAddonsFilter
    clusterId String
    The OCID of the cluster.
    filters List<GetAddonsFilter>
    clusterId string
    The OCID of the cluster.
    filters GetAddonsFilter[]
    clusterId String
    The OCID of the cluster.
    filters List<Property Map>

    getAddons Result

    The following output properties are available:

    Addons List<GetAddonsAddon>
    The list of addons.
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetAddonsFilter>
    Addons []GetAddonsAddon
    The list of addons.
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetAddonsFilter
    addons List<GetAddonsAddon>
    The list of addons.
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetAddonsFilter>
    addons GetAddonsAddon[]
    The list of addons.
    clusterId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetAddonsFilter[]
    addons Sequence[containerengine.GetAddonsAddon]
    The list of addons.
    cluster_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[containerengine.GetAddonsFilter]
    addons List<Property Map>
    The list of addons.
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetAddonsAddon

    AddonErrors List<GetAddonsAddonAddonError>
    The error info of the addon.
    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    Configurations List<GetAddonsAddonConfiguration>
    Addon configuration details.
    CurrentInstalledVersion string
    current installed version of the addon
    RemoveAddonResourcesOnDelete bool
    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 []GetAddonsAddonAddonError
    The error info of the addon.
    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    Configurations []GetAddonsAddonConfiguration
    Addon configuration details.
    CurrentInstalledVersion string
    current installed version of the addon
    RemoveAddonResourcesOnDelete bool
    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<GetAddonsAddonAddonError>
    The error info of the addon.
    addonName String
    The name of the addon.
    clusterId String
    The OCID of the cluster.
    configurations List<GetAddonsAddonConfiguration>
    Addon configuration details.
    currentInstalledVersion String
    current installed version of the addon
    removeAddonResourcesOnDelete Boolean
    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 GetAddonsAddonAddonError[]
    The error info of the addon.
    addonName string
    The name of the addon.
    clusterId string
    The OCID of the cluster.
    configurations GetAddonsAddonConfiguration[]
    Addon configuration details.
    currentInstalledVersion string
    current installed version of the addon
    removeAddonResourcesOnDelete boolean
    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[containerengine.GetAddonsAddonAddonError]
    The error info of the addon.
    addon_name str
    The name of the addon.
    cluster_id str
    The OCID of the cluster.
    configurations Sequence[containerengine.GetAddonsAddonConfiguration]
    Addon configuration details.
    current_installed_version str
    current installed version of the addon
    remove_addon_resources_on_delete bool
    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
    The OCID of the cluster.
    configurations List<Property Map>
    Addon configuration details.
    currentInstalledVersion String
    current installed version of the addon
    removeAddonResourcesOnDelete Boolean
    state String
    The state of the addon.
    timeCreated String
    The time the cluster was created.
    version String
    selected addon version, or null indicates autoUpdate

    GetAddonsAddonAddonError

    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.

    GetAddonsAddonConfiguration

    Key string
    configuration key name
    Value string
    configuration value name
    Key string
    configuration key name
    Value string
    configuration value name
    key String
    configuration key name
    value String
    configuration value name
    key string
    configuration key name
    value string
    configuration value name
    key str
    configuration key name
    value str
    configuration value name
    key String
    configuration key name
    value String
    configuration value name

    GetAddonsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi