1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ComputeInstanceAgent
  5. getInstanceAvailablePlugin
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.ComputeInstanceAgent.getInstanceAvailablePlugin

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides the list of Instance Available Plugins in Oracle Cloud Infrastructure Compute Instance Agent service.

    The API to get the list of plugins that are available.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceAvailablePlugins = oci.ComputeInstanceAgent.getInstanceAvailablePlugin({
        osName: _var.instance_available_plugin_os_name,
        osVersion: _var.instance_available_plugin_os_version,
        name: _var.instance_available_plugin_name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_available_plugins = oci.ComputeInstanceAgent.get_instance_available_plugin(os_name=var["instance_available_plugin_os_name"],
        os_version=var["instance_available_plugin_os_version"],
        name=var["instance_available_plugin_name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ComputeInstanceAgent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ComputeInstanceAgent.GetInstanceAvailablePlugin(ctx, &computeinstanceagent.GetInstanceAvailablePluginArgs{
    			OsName:    _var.Instance_available_plugin_os_name,
    			OsVersion: _var.Instance_available_plugin_os_version,
    			Name:      pulumi.StringRef(_var.Instance_available_plugin_name),
    		}, 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 testInstanceAvailablePlugins = Oci.ComputeInstanceAgent.GetInstanceAvailablePlugin.Invoke(new()
        {
            OsName = @var.Instance_available_plugin_os_name,
            OsVersion = @var.Instance_available_plugin_os_version,
            Name = @var.Instance_available_plugin_name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ComputeInstanceAgent.ComputeInstanceAgentFunctions;
    import com.pulumi.oci.ComputeInstanceAgent.inputs.GetInstanceAvailablePluginArgs;
    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 testInstanceAvailablePlugins = ComputeInstanceAgentFunctions.getInstanceAvailablePlugin(GetInstanceAvailablePluginArgs.builder()
                .osName(var_.instance_available_plugin_os_name())
                .osVersion(var_.instance_available_plugin_os_version())
                .name(var_.instance_available_plugin_name())
                .build());
    
        }
    }
    
    variables:
      testInstanceAvailablePlugins:
        fn::invoke:
          Function: oci:ComputeInstanceAgent:getInstanceAvailablePlugin
          Arguments:
            osName: ${var.instance_available_plugin_os_name}
            osVersion: ${var.instance_available_plugin_os_version}
            name: ${var.instance_available_plugin_name}
    

    Using getInstanceAvailablePlugin

    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 getInstanceAvailablePlugin(args: GetInstanceAvailablePluginArgs, opts?: InvokeOptions): Promise<GetInstanceAvailablePluginResult>
    function getInstanceAvailablePluginOutput(args: GetInstanceAvailablePluginOutputArgs, opts?: InvokeOptions): Output<GetInstanceAvailablePluginResult>
    def get_instance_available_plugin(compartment_id: Optional[str] = None,
                                      filters: Optional[Sequence[_computeinstanceagent.GetInstanceAvailablePluginFilter]] = None,
                                      name: Optional[str] = None,
                                      os_name: Optional[str] = None,
                                      os_version: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetInstanceAvailablePluginResult
    def get_instance_available_plugin_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_computeinstanceagent.GetInstanceAvailablePluginFilterArgs]]]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      os_name: Optional[pulumi.Input[str]] = None,
                                      os_version: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetInstanceAvailablePluginResult]
    func GetInstanceAvailablePlugin(ctx *Context, args *GetInstanceAvailablePluginArgs, opts ...InvokeOption) (*GetInstanceAvailablePluginResult, error)
    func GetInstanceAvailablePluginOutput(ctx *Context, args *GetInstanceAvailablePluginOutputArgs, opts ...InvokeOption) GetInstanceAvailablePluginResultOutput

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

    public static class GetInstanceAvailablePlugin 
    {
        public static Task<GetInstanceAvailablePluginResult> InvokeAsync(GetInstanceAvailablePluginArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceAvailablePluginResult> Invoke(GetInstanceAvailablePluginInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceAvailablePluginResult> getInstanceAvailablePlugin(GetInstanceAvailablePluginArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ComputeInstanceAgent/getInstanceAvailablePlugin:getInstanceAvailablePlugin
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    OsName string
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    OsVersion string
    The OS version for which the plugin is supported.
    Filters List<GetInstanceAvailablePluginFilter>
    Name string
    The plugin name
    CompartmentId string
    OsName string
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    OsVersion string
    The OS version for which the plugin is supported.
    Filters []GetInstanceAvailablePluginFilter
    Name string
    The plugin name
    compartmentId String
    osName String
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    osVersion String
    The OS version for which the plugin is supported.
    filters List<GetInstanceAvailablePluginFilter>
    name String
    The plugin name
    compartmentId string
    osName string
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    osVersion string
    The OS version for which the plugin is supported.
    filters GetInstanceAvailablePluginFilter[]
    name string
    The plugin name
    compartment_id str
    os_name str
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    os_version str
    The OS version for which the plugin is supported.
    filters Sequence[computeinstanceagent.GetInstanceAvailablePluginFilter]
    name str
    The plugin name
    compartmentId String
    osName String
    The OS for which the plugin is supported. Examples of OperatingSystemQueryParam:OperatingSystemVersionQueryParam are as follows: 'CentOS' '6.10' , 'CentOS Linux' '7', 'CentOS Linux' '8', 'Oracle Linux Server' '6.10', 'Oracle Linux Server' '8.0', 'Red Hat Enterprise Linux Server' '7.8', 'Windows' '10', 'Windows' '2008ServerR2', 'Windows' '2012ServerR2', 'Windows' '7', 'Windows' '8.1'
    osVersion String
    The OS version for which the plugin is supported.
    filters List<Property Map>
    name String
    The plugin name

    getInstanceAvailablePlugin Result

    The following output properties are available:

    AvailablePlugins List<GetInstanceAvailablePluginAvailablePlugin>
    The list of available_plugins.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OsName string
    OsVersion string
    Filters List<GetInstanceAvailablePluginFilter>
    Name string
    The plugin name
    AvailablePlugins []GetInstanceAvailablePluginAvailablePlugin
    The list of available_plugins.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OsName string
    OsVersion string
    Filters []GetInstanceAvailablePluginFilter
    Name string
    The plugin name
    availablePlugins List<GetInstanceAvailablePluginAvailablePlugin>
    The list of available_plugins.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    osName String
    osVersion String
    filters List<GetInstanceAvailablePluginFilter>
    name String
    The plugin name
    availablePlugins GetInstanceAvailablePluginAvailablePlugin[]
    The list of available_plugins.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    osName string
    osVersion string
    filters GetInstanceAvailablePluginFilter[]
    name string
    The plugin name
    availablePlugins List<Property Map>
    The list of available_plugins.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    osName String
    osVersion String
    filters List<Property Map>
    name String
    The plugin name

    Supporting Types

    GetInstanceAvailablePluginAvailablePlugin

    IsEnabledByDefault bool
    Is the plugin enabled or disabled by default
    IsSupported bool
    Is the plugin supported or not
    Name string
    The plugin name
    Summary string
    A brief description of the plugin functionality
    IsEnabledByDefault bool
    Is the plugin enabled or disabled by default
    IsSupported bool
    Is the plugin supported or not
    Name string
    The plugin name
    Summary string
    A brief description of the plugin functionality
    isEnabledByDefault Boolean
    Is the plugin enabled or disabled by default
    isSupported Boolean
    Is the plugin supported or not
    name String
    The plugin name
    summary String
    A brief description of the plugin functionality
    isEnabledByDefault boolean
    Is the plugin enabled or disabled by default
    isSupported boolean
    Is the plugin supported or not
    name string
    The plugin name
    summary string
    A brief description of the plugin functionality
    is_enabled_by_default bool
    Is the plugin enabled or disabled by default
    is_supported bool
    Is the plugin supported or not
    name str
    The plugin name
    summary str
    A brief description of the plugin functionality
    isEnabledByDefault Boolean
    Is the plugin enabled or disabled by default
    isSupported Boolean
    Is the plugin supported or not
    name String
    The plugin name
    summary String
    A brief description of the plugin functionality

    GetInstanceAvailablePluginFilter

    Name string
    The plugin name
    Values List<string>
    Regex bool
    Name string
    The plugin name
    Values []string
    Regex bool
    name String
    The plugin name
    values List<String>
    regex Boolean
    name string
    The plugin name
    values string[]
    regex boolean
    name str
    The plugin name
    values Sequence[str]
    regex bool
    name String
    The plugin name
    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.31.0 published on Wednesday, Apr 10, 2024 by Pulumi