1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. getAgentPlugin
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.CloudBridge.getAgentPlugin

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific Agent Plugin resource in Oracle Cloud Infrastructure Cloud Bridge service.

    Gets a plugin by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAgentPlugin = oci.CloudBridge.getAgentPlugin({
        agentId: testAgent.id,
        pluginName: agentPluginPluginName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_agent_plugin = oci.CloudBridge.get_agent_plugin(agent_id=test_agent["id"],
        plugin_name=agent_plugin_plugin_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudBridge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudBridge.GetAgentPlugin(ctx, &cloudbridge.GetAgentPluginArgs{
    			AgentId:    testAgent.Id,
    			PluginName: agentPluginPluginName,
    		}, 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 testAgentPlugin = Oci.CloudBridge.GetAgentPlugin.Invoke(new()
        {
            AgentId = testAgent.Id,
            PluginName = agentPluginPluginName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudBridge.CloudBridgeFunctions;
    import com.pulumi.oci.CloudBridge.inputs.GetAgentPluginArgs;
    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 testAgentPlugin = CloudBridgeFunctions.getAgentPlugin(GetAgentPluginArgs.builder()
                .agentId(testAgent.id())
                .pluginName(agentPluginPluginName)
                .build());
    
        }
    }
    
    variables:
      testAgentPlugin:
        fn::invoke:
          Function: oci:CloudBridge:getAgentPlugin
          Arguments:
            agentId: ${testAgent.id}
            pluginName: ${agentPluginPluginName}
    

    Using getAgentPlugin

    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 getAgentPlugin(args: GetAgentPluginArgs, opts?: InvokeOptions): Promise<GetAgentPluginResult>
    function getAgentPluginOutput(args: GetAgentPluginOutputArgs, opts?: InvokeOptions): Output<GetAgentPluginResult>
    def get_agent_plugin(agent_id: Optional[str] = None,
                         plugin_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAgentPluginResult
    def get_agent_plugin_output(agent_id: Optional[pulumi.Input[str]] = None,
                         plugin_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAgentPluginResult]
    func GetAgentPlugin(ctx *Context, args *GetAgentPluginArgs, opts ...InvokeOption) (*GetAgentPluginResult, error)
    func GetAgentPluginOutput(ctx *Context, args *GetAgentPluginOutputArgs, opts ...InvokeOption) GetAgentPluginResultOutput

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

    public static class GetAgentPlugin 
    {
        public static Task<GetAgentPluginResult> InvokeAsync(GetAgentPluginArgs args, InvokeOptions? opts = null)
        public static Output<GetAgentPluginResult> Invoke(GetAgentPluginInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAgentPluginResult> getAgentPlugin(GetAgentPluginArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudBridge/getAgentPlugin:getAgentPlugin
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AgentId string
    Unique Agent identifier path parameter.
    PluginName string
    Unique plugin identifier path parameter.
    AgentId string
    Unique Agent identifier path parameter.
    PluginName string
    Unique plugin identifier path parameter.
    agentId String
    Unique Agent identifier path parameter.
    pluginName String
    Unique plugin identifier path parameter.
    agentId string
    Unique Agent identifier path parameter.
    pluginName string
    Unique plugin identifier path parameter.
    agent_id str
    Unique Agent identifier path parameter.
    plugin_name str
    Unique plugin identifier path parameter.
    agentId String
    Unique Agent identifier path parameter.
    pluginName String
    Unique plugin identifier path parameter.

    getAgentPlugin Result

    The following output properties are available:

    AgentId string
    Agent identifier.
    DefinedTags Dictionary<string, object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DesiredState string
    State to which the customer wants the plugin to move to.
    FreeformTags Dictionary<string, object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    Name string
    Plugin identifier, which can be renamed.
    PluginName string
    PluginVersion string
    Plugin version.
    State string
    The current state of the plugin.
    SystemTags Dictionary<string, object>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The time when the Agent was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the Agent was updated. An RFC3339 formatted datetime string.
    AgentId string
    Agent identifier.
    DefinedTags map[string]interface{}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DesiredState string
    State to which the customer wants the plugin to move to.
    FreeformTags map[string]interface{}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    Name string
    Plugin identifier, which can be renamed.
    PluginName string
    PluginVersion string
    Plugin version.
    State string
    The current state of the plugin.
    SystemTags map[string]interface{}
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The time when the Agent was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the Agent was updated. An RFC3339 formatted datetime string.
    agentId String
    Agent identifier.
    definedTags Map<String,Object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    desiredState String
    State to which the customer wants the plugin to move to.
    freeformTags Map<String,Object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    name String
    Plugin identifier, which can be renamed.
    pluginName String
    pluginVersion String
    Plugin version.
    state String
    The current state of the plugin.
    systemTags Map<String,Object>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The time when the Agent was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the Agent was updated. An RFC3339 formatted datetime string.
    agentId string
    Agent identifier.
    definedTags {[key: string]: any}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    desiredState string
    State to which the customer wants the plugin to move to.
    freeformTags {[key: string]: any}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    lifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    name string
    Plugin identifier, which can be renamed.
    pluginName string
    pluginVersion string
    Plugin version.
    state string
    The current state of the plugin.
    systemTags {[key: string]: any}
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated string
    The time when the Agent was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the Agent was updated. An RFC3339 formatted datetime string.
    agent_id str
    Agent identifier.
    defined_tags Mapping[str, Any]
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    desired_state str
    State to which the customer wants the plugin to move to.
    freeform_tags Mapping[str, Any]
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    lifecycle_details str
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    name str
    Plugin identifier, which can be renamed.
    plugin_name str
    plugin_version str
    Plugin version.
    state str
    The current state of the plugin.
    system_tags Mapping[str, Any]
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    time_created str
    The time when the Agent was created. An RFC3339 formatted datetime string.
    time_updated str
    The time when the Agent was updated. An RFC3339 formatted datetime string.
    agentId String
    Agent identifier.
    definedTags Map<Any>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    desiredState String
    State to which the customer wants the plugin to move to.
    freeformTags Map<Any>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    name String
    Plugin identifier, which can be renamed.
    pluginName String
    pluginVersion String
    Plugin version.
    state String
    The current state of the plugin.
    systemTags Map<Any>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The time when the Agent was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the Agent was updated. An RFC3339 formatted datetime string.

    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi