oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.CloudBridge.getAgentPlugin

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAgentPlugin = Oci.CloudBridge.GetAgentPlugin.Invoke(new()
    {
        AgentId = oci_cloud_bridge_agent.Test_agent.Id,
        PluginName = @var.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:    oci_cloud_bridge_agent.Test_agent.Id,
			PluginName: _var.Agent_plugin_plugin_name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_cloud_bridge_agent.test_agent().id())
            .pluginName(var_.agent_plugin_plugin_name())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_agent_plugin = oci.CloudBridge.get_agent_plugin(agent_id=oci_cloud_bridge_agent["test_agent"]["id"],
    plugin_name=var["agent_plugin_plugin_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAgentPlugin = oci.CloudBridge.getAgentPlugin({
    agentId: oci_cloud_bridge_agent.test_agent.id,
    pluginName: _var.agent_plugin_plugin_name,
});
variables:
  testAgentPlugin:
    fn::invoke:
      Function: oci:CloudBridge:getAgentPlugin
      Arguments:
        agentId: ${oci_cloud_bridge_agent.test_agent.id}
        pluginName: ${var.agent_plugin_plugin_name}

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.