oci logo
Oracle Cloud Infrastructure v0.19.0, May 26 23

oci.CloudBridge.getAgentDependencies

Explore with Pulumi AI

This data source provides the list of Agent Dependencies in Oracle Cloud Infrastructure Cloud Bridge service.

Returns a list of AgentDependencies such as AgentDependencyCollection.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testAgentDependencies = Oci.CloudBridge.GetAgentDependencies.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        AgentId = oci_cloud_bridge_agent.Test_agent.Id,
        DisplayName = @var.Agent_dependency_display_name,
        EnvironmentId = oci_cloud_bridge_environment.Test_environment.Id,
        State = @var.Agent_dependency_state,
    });

});
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.GetAgentDependencies(ctx, &cloudbridge.GetAgentDependenciesArgs{
			CompartmentId: _var.Compartment_id,
			AgentId:       pulumi.StringRef(oci_cloud_bridge_agent.Test_agent.Id),
			DisplayName:   pulumi.StringRef(_var.Agent_dependency_display_name),
			EnvironmentId: pulumi.StringRef(oci_cloud_bridge_environment.Test_environment.Id),
			State:         pulumi.StringRef(_var.Agent_dependency_state),
		}, 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.GetAgentDependenciesArgs;
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 testAgentDependencies = CloudBridgeFunctions.getAgentDependencies(GetAgentDependenciesArgs.builder()
            .compartmentId(var_.compartment_id())
            .agentId(oci_cloud_bridge_agent.test_agent().id())
            .displayName(var_.agent_dependency_display_name())
            .environmentId(oci_cloud_bridge_environment.test_environment().id())
            .state(var_.agent_dependency_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_agent_dependencies = oci.CloudBridge.get_agent_dependencies(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    agent_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    environment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    state=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAgentDependencies = oci.CloudBridge.getAgentDependencies({
    compartmentId: _var.compartment_id,
    agentId: oci_cloud_bridge_agent.test_agent.id,
    displayName: _var.agent_dependency_display_name,
    environmentId: oci_cloud_bridge_environment.test_environment.id,
    state: _var.agent_dependency_state,
});
variables:
  testAgentDependencies:
    fn::invoke:
      Function: oci:CloudBridge:getAgentDependencies
      Arguments:
        compartmentId: ${var.compartment_id}
        agentId: ${oci_cloud_bridge_agent.test_agent.id}
        displayName: ${var.agent_dependency_display_name}
        environmentId: ${oci_cloud_bridge_environment.test_environment.id}
        state: ${var.agent_dependency_state}

Using getAgentDependencies

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 getAgentDependencies(args: GetAgentDependenciesArgs, opts?: InvokeOptions): Promise<GetAgentDependenciesResult>
function getAgentDependenciesOutput(args: GetAgentDependenciesOutputArgs, opts?: InvokeOptions): Output<GetAgentDependenciesResult>
def get_agent_dependencies(agent_id: Optional[str] = None,
                           compartment_id: Optional[str] = None,
                           display_name: Optional[str] = None,
                           environment_id: Optional[str] = None,
                           filters: Optional[Sequence[_cloudbridge.GetAgentDependenciesFilter]] = None,
                           state: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAgentDependenciesResult
def get_agent_dependencies_output(agent_id: Optional[pulumi.Input[str]] = None,
                           compartment_id: Optional[pulumi.Input[str]] = None,
                           display_name: Optional[pulumi.Input[str]] = None,
                           environment_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudbridge.GetAgentDependenciesFilterArgs]]]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAgentDependenciesResult]
func GetAgentDependencies(ctx *Context, args *GetAgentDependenciesArgs, opts ...InvokeOption) (*GetAgentDependenciesResult, error)
func GetAgentDependenciesOutput(ctx *Context, args *GetAgentDependenciesOutputArgs, opts ...InvokeOption) GetAgentDependenciesResultOutput

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

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

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

AgentId string

A filter to return only resources that match the given Agent ID.

DisplayName string

A filter to return only resources that match the entire display name given.

EnvironmentId string

A filter to return only resources that match the given environment ID.

Filters List<GetAgentDependenciesFilter>
State string

A filter to return only resources their lifecycleState matches the given lifecycleState.

CompartmentId string

The ID of the compartment in which to list resources.

AgentId string

A filter to return only resources that match the given Agent ID.

DisplayName string

A filter to return only resources that match the entire display name given.

EnvironmentId string

A filter to return only resources that match the given environment ID.

Filters []GetAgentDependenciesFilter
State string

A filter to return only resources their lifecycleState matches the given lifecycleState.

compartmentId String

The ID of the compartment in which to list resources.

agentId String

A filter to return only resources that match the given Agent ID.

displayName String

A filter to return only resources that match the entire display name given.

environmentId String

A filter to return only resources that match the given environment ID.

filters List<GetAgentDependenciesFilter>
state String

A filter to return only resources their lifecycleState matches the given lifecycleState.

compartmentId string

The ID of the compartment in which to list resources.

agentId string

A filter to return only resources that match the given Agent ID.

displayName string

A filter to return only resources that match the entire display name given.

environmentId string

A filter to return only resources that match the given environment ID.

filters GetAgentDependenciesFilter[]
state string

A filter to return only resources their lifecycleState matches the given lifecycleState.

compartment_id str

The ID of the compartment in which to list resources.

agent_id str

A filter to return only resources that match the given Agent ID.

display_name str

A filter to return only resources that match the entire display name given.

environment_id str

A filter to return only resources that match the given environment ID.

filters GetAgentDependenciesFilter]
state str

A filter to return only resources their lifecycleState matches the given lifecycleState.

compartmentId String

The ID of the compartment in which to list resources.

agentId String

A filter to return only resources that match the given Agent ID.

displayName String

A filter to return only resources that match the entire display name given.

environmentId String

A filter to return only resources that match the given environment ID.

filters List<Property Map>
state String

A filter to return only resources their lifecycleState matches the given lifecycleState.

getAgentDependencies Result

The following output properties are available:

AgentDependencyCollections List<GetAgentDependenciesAgentDependencyCollection>

The list of agent_dependency_collection.

CompartmentId string

Compartment identifier

Id string

The provider-assigned unique ID for this managed resource.

AgentId string
DisplayName string

Display name of the Agent dependency.

EnvironmentId string
Filters List<GetAgentDependenciesFilter>
State string

The current state of AgentDependency.

AgentDependencyCollections []GetAgentDependenciesAgentDependencyCollection

The list of agent_dependency_collection.

CompartmentId string

Compartment identifier

Id string

The provider-assigned unique ID for this managed resource.

AgentId string
DisplayName string

Display name of the Agent dependency.

EnvironmentId string
Filters []GetAgentDependenciesFilter
State string

The current state of AgentDependency.

agentDependencyCollections List<GetAgentDependenciesAgentDependencyCollection>

The list of agent_dependency_collection.

compartmentId String

Compartment identifier

id String

The provider-assigned unique ID for this managed resource.

agentId String
displayName String

Display name of the Agent dependency.

environmentId String
filters List<GetAgentDependenciesFilter>
state String

The current state of AgentDependency.

agentDependencyCollections GetAgentDependenciesAgentDependencyCollection[]

The list of agent_dependency_collection.

compartmentId string

Compartment identifier

id string

The provider-assigned unique ID for this managed resource.

agentId string
displayName string

Display name of the Agent dependency.

environmentId string
filters GetAgentDependenciesFilter[]
state string

The current state of AgentDependency.

agent_dependency_collections GetAgentDependenciesAgentDependencyCollection]

The list of agent_dependency_collection.

compartment_id str

Compartment identifier

id str

The provider-assigned unique ID for this managed resource.

agent_id str
display_name str

Display name of the Agent dependency.

environment_id str
filters GetAgentDependenciesFilter]
state str

The current state of AgentDependency.

agentDependencyCollections List<Property Map>

The list of agent_dependency_collection.

compartmentId String

Compartment identifier

id String

The provider-assigned unique ID for this managed resource.

agentId String
displayName String

Display name of the Agent dependency.

environmentId String
filters List<Property Map>
state String

The current state of AgentDependency.

Supporting Types

GetAgentDependenciesAgentDependencyCollection

GetAgentDependenciesAgentDependencyCollectionItem

Bucket string

Object storage bucket where the Agent dependency is uploaded.

Checksum string

The checksum associated with the dependency object returned by Object Storage.

CompartmentId string

The ID of the compartment in which to list resources.

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"}

DependencyName string

Name of the dependency type. This should match the whitelisted enum of dependency names.

DependencyVersion string

Version of the Agent dependency.

Description string

Description about the Agent dependency.

DisplayName string

A filter to return only resources that match the entire display name given.

ETag string

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

Namespace string

Object storage namespace associated with the customer's tenancy.

Object string

Name of the dependency object uploaded by the customer.

State string

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

Bucket string

Object storage bucket where the Agent dependency is uploaded.

Checksum string

The checksum associated with the dependency object returned by Object Storage.

CompartmentId string

The ID of the compartment in which to list resources.

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"}

DependencyName string

Name of the dependency type. This should match the whitelisted enum of dependency names.

DependencyVersion string

Version of the Agent dependency.

Description string

Description about the Agent dependency.

DisplayName string

A filter to return only resources that match the entire display name given.

ETag string

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

Namespace string

Object storage namespace associated with the customer's tenancy.

Object string

Name of the dependency object uploaded by the customer.

State string

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

bucket String

Object storage bucket where the Agent dependency is uploaded.

checksum String

The checksum associated with the dependency object returned by Object Storage.

compartmentId String

The ID of the compartment in which to list resources.

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"}

dependencyName String

Name of the dependency type. This should match the whitelisted enum of dependency names.

dependencyVersion String

Version of the Agent dependency.

description String

Description about the Agent dependency.

displayName String

A filter to return only resources that match the entire display name given.

eTag String

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

namespace String

Object storage namespace associated with the customer's tenancy.

object String

Name of the dependency object uploaded by the customer.

state String

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

bucket string

Object storage bucket where the Agent dependency is uploaded.

checksum string

The checksum associated with the dependency object returned by Object Storage.

compartmentId string

The ID of the compartment in which to list resources.

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"}

dependencyName string

Name of the dependency type. This should match the whitelisted enum of dependency names.

dependencyVersion string

Version of the Agent dependency.

description string

Description about the Agent dependency.

displayName string

A filter to return only resources that match the entire display name given.

eTag string

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

namespace string

Object storage namespace associated with the customer's tenancy.

object string

Name of the dependency object uploaded by the customer.

state string

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

bucket str

Object storage bucket where the Agent dependency is uploaded.

checksum str

The checksum associated with the dependency object returned by Object Storage.

compartment_id str

The ID of the compartment in which to list resources.

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"}

dependency_name str

Name of the dependency type. This should match the whitelisted enum of dependency names.

dependency_version str

Version of the Agent dependency.

description str

Description about the Agent dependency.

display_name str

A filter to return only resources that match the entire display name given.

e_tag str

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

namespace str

Object storage namespace associated with the customer's tenancy.

object str

Name of the dependency object uploaded by the customer.

state str

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

bucket String

Object storage bucket where the Agent dependency is uploaded.

checksum String

The checksum associated with the dependency object returned by Object Storage.

compartmentId String

The ID of the compartment in which to list resources.

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"}

dependencyName String

Name of the dependency type. This should match the whitelisted enum of dependency names.

dependencyVersion String

Version of the Agent dependency.

description String

Description about the Agent dependency.

displayName String

A filter to return only resources that match the entire display name given.

eTag String

The eTag associated with the dependency object returned by Object Storage.

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

Unique identifier that is immutable on creation.

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.

namespace String

Object storage namespace associated with the customer's tenancy.

object String

Name of the dependency object uploaded by the customer.

state String

A filter to return only resources their lifecycleState matches the given lifecycleState.

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 AgentDependency was created. An RFC3339 formatted datetime string.

GetAgentDependenciesFilter

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.