1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. getAgentDependencies
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.CloudBridge.getAgentDependencies

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAgentDependencies = oci.CloudBridge.getAgentDependencies({
    compartmentId: compartmentId,
    agentId: testAgent.id,
    displayName: agentDependencyDisplayName,
    environmentId: testEnvironment.id,
    state: agentDependencyState,
});
Copy
import pulumi
import pulumi_oci as oci

test_agent_dependencies = oci.CloudBridge.get_agent_dependencies(compartment_id=compartment_id,
    agent_id=test_agent["id"],
    display_name=agent_dependency_display_name,
    environment_id=test_environment["id"],
    state=agent_dependency_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: compartmentId,
			AgentId:       pulumi.StringRef(testAgent.Id),
			DisplayName:   pulumi.StringRef(agentDependencyDisplayName),
			EnvironmentId: pulumi.StringRef(testEnvironment.Id),
			State:         pulumi.StringRef(agentDependencyState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 = compartmentId,
        AgentId = testAgent.Id,
        DisplayName = agentDependencyDisplayName,
        EnvironmentId = testEnvironment.Id,
        State = agentDependencyState,
    });

});
Copy
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(compartmentId)
            .agentId(testAgent.id())
            .displayName(agentDependencyDisplayName)
            .environmentId(testEnvironment.id())
            .state(agentDependencyState)
            .build());

    }
}
Copy
variables:
  testAgentDependencies:
    fn::invoke:
      function: oci:CloudBridge:getAgentDependencies
      arguments:
        compartmentId: ${compartmentId}
        agentId: ${testAgent.id}
        displayName: ${agentDependencyDisplayName}
        environmentId: ${testEnvironment.id}
        state: ${agentDependencyState}
Copy

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>
Copy
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]
Copy
func GetAgentDependencies(ctx *Context, args *GetAgentDependenciesArgs, opts ...InvokeOption) (*GetAgentDependenciesResult, error)
func GetAgentDependenciesOutput(ctx *Context, args *GetAgentDependenciesOutputArgs, opts ...InvokeOption) GetAgentDependenciesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAgentDependenciesResult> getAgentDependencies(GetAgentDependenciesArgs args, InvokeOptions options)
public static Output<GetAgentDependenciesResult> getAgentDependencies(GetAgentDependenciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:CloudBridge/getAgentDependencies:getAgentDependencies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. 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 Changes to this property will trigger replacement. List<GetAgentDependenciesFilter>
State string
A filter to return only resources their lifecycleState matches the given lifecycleState.
CompartmentId This property is required. 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 Changes to this property will trigger replacement. []GetAgentDependenciesFilter
State string
A filter to return only resources their lifecycleState matches the given lifecycleState.
compartmentId This property is required. 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 Changes to this property will trigger replacement. List<GetAgentDependenciesFilter>
state String
A filter to return only resources their lifecycleState matches the given lifecycleState.
compartmentId This property is required. 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 Changes to this property will trigger replacement. GetAgentDependenciesFilter[]
state string
A filter to return only resources their lifecycleState matches the given lifecycleState.
compartment_id This property is required. 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 Changes to this property will trigger replacement. Sequence[cloudbridge.GetAgentDependenciesFilter]
state str
A filter to return only resources their lifecycleState matches the given lifecycleState.
compartmentId This property is required. 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 Changes to this property will trigger replacement. 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 Sequence[cloudbridge.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 Sequence[cloudbridge.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

items This property is required. List<Property Map>

GetAgentDependenciesAgentDependencyCollectionItem

Bucket This property is required. string
Object storage bucket where the Agent dependency is uploaded.
Checksum This property is required. string
The checksum associated with the dependency object returned by Object Storage.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. Dictionary<string, string>
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 This property is required. string
Name of the dependency type. This should match the whitelisted enum of dependency names.
DependencyVersion This property is required. string
Version of the Agent dependency.
Description This property is required. string
Description about the Agent dependency.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given.
ETag This property is required. string
The eTag associated with the dependency object returned by Object Storage.
FreeformTags This property is required. Dictionary<string, string>
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 This property is required. string
Unique identifier that is immutable on creation.
LifecycleDetails This property is required. 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 This property is required. string
Object storage namespace associated with the customer's tenancy.
Object This property is required. string
Name of the dependency object uploaded by the customer.
State This property is required. string
A filter to return only resources their lifecycleState matches the given lifecycleState.
SystemTags This property is required. Dictionary<string, string>
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 This property is required. string
The time when the AgentDependency was created. An RFC3339 formatted datetime string.
Bucket This property is required. string
Object storage bucket where the Agent dependency is uploaded.
Checksum This property is required. string
The checksum associated with the dependency object returned by Object Storage.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. map[string]string
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 This property is required. string
Name of the dependency type. This should match the whitelisted enum of dependency names.
DependencyVersion This property is required. string
Version of the Agent dependency.
Description This property is required. string
Description about the Agent dependency.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given.
ETag This property is required. string
The eTag associated with the dependency object returned by Object Storage.
FreeformTags This property is required. map[string]string
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 This property is required. string
Unique identifier that is immutable on creation.
LifecycleDetails This property is required. 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 This property is required. string
Object storage namespace associated with the customer's tenancy.
Object This property is required. string
Name of the dependency object uploaded by the customer.
State This property is required. string
A filter to return only resources their lifecycleState matches the given lifecycleState.
SystemTags This property is required. map[string]string
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 This property is required. string
The time when the AgentDependency was created. An RFC3339 formatted datetime string.
bucket This property is required. String
Object storage bucket where the Agent dependency is uploaded.
checksum This property is required. String
The checksum associated with the dependency object returned by Object Storage.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String,String>
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 This property is required. String
Name of the dependency type. This should match the whitelisted enum of dependency names.
dependencyVersion This property is required. String
Version of the Agent dependency.
description This property is required. String
Description about the Agent dependency.
displayName This property is required. String
A filter to return only resources that match the entire display name given.
eTag This property is required. String
The eTag associated with the dependency object returned by Object Storage.
freeformTags This property is required. Map<String,String>
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 This property is required. String
Unique identifier that is immutable on creation.
lifecycleDetails This property is required. 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 This property is required. String
Object storage namespace associated with the customer's tenancy.
object This property is required. String
Name of the dependency object uploaded by the customer.
state This property is required. String
A filter to return only resources their lifecycleState matches the given lifecycleState.
systemTags This property is required. Map<String,String>
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 This property is required. String
The time when the AgentDependency was created. An RFC3339 formatted datetime string.
bucket This property is required. string
Object storage bucket where the Agent dependency is uploaded.
checksum This property is required. string
The checksum associated with the dependency object returned by Object Storage.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
definedTags This property is required. {[key: string]: string}
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 This property is required. string
Name of the dependency type. This should match the whitelisted enum of dependency names.
dependencyVersion This property is required. string
Version of the Agent dependency.
description This property is required. string
Description about the Agent dependency.
displayName This property is required. string
A filter to return only resources that match the entire display name given.
eTag This property is required. string
The eTag associated with the dependency object returned by Object Storage.
freeformTags This property is required. {[key: string]: string}
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 This property is required. string
Unique identifier that is immutable on creation.
lifecycleDetails This property is required. 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 This property is required. string
Object storage namespace associated with the customer's tenancy.
object This property is required. string
Name of the dependency object uploaded by the customer.
state This property is required. string
A filter to return only resources their lifecycleState matches the given lifecycleState.
systemTags This property is required. {[key: string]: string}
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 This property is required. string
The time when the AgentDependency was created. An RFC3339 formatted datetime string.
bucket This property is required. str
Object storage bucket where the Agent dependency is uploaded.
checksum This property is required. str
The checksum associated with the dependency object returned by Object Storage.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
defined_tags This property is required. Mapping[str, str]
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 This property is required. str
Name of the dependency type. This should match the whitelisted enum of dependency names.
dependency_version This property is required. str
Version of the Agent dependency.
description This property is required. str
Description about the Agent dependency.
display_name This property is required. str
A filter to return only resources that match the entire display name given.
e_tag This property is required. str
The eTag associated with the dependency object returned by Object Storage.
freeform_tags This property is required. Mapping[str, str]
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 This property is required. str
Unique identifier that is immutable on creation.
lifecycle_details This property is required. 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 This property is required. str
Object storage namespace associated with the customer's tenancy.
object This property is required. str
Name of the dependency object uploaded by the customer.
state This property is required. str
A filter to return only resources their lifecycleState matches the given lifecycleState.
system_tags This property is required. Mapping[str, str]
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 This property is required. str
The time when the AgentDependency was created. An RFC3339 formatted datetime string.
bucket This property is required. String
Object storage bucket where the Agent dependency is uploaded.
checksum This property is required. String
The checksum associated with the dependency object returned by Object Storage.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String>
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 This property is required. String
Name of the dependency type. This should match the whitelisted enum of dependency names.
dependencyVersion This property is required. String
Version of the Agent dependency.
description This property is required. String
Description about the Agent dependency.
displayName This property is required. String
A filter to return only resources that match the entire display name given.
eTag This property is required. String
The eTag associated with the dependency object returned by Object Storage.
freeformTags This property is required. Map<String>
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 This property is required. String
Unique identifier that is immutable on creation.
lifecycleDetails This property is required. 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 This property is required. String
Object storage namespace associated with the customer's tenancy.
object This property is required. String
Name of the dependency object uploaded by the customer.
state This property is required. String
A filter to return only resources their lifecycleState matches the given lifecycleState.
systemTags This property is required. Map<String>
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 This property is required. String
The time when the AgentDependency was created. An RFC3339 formatted datetime string.

GetAgentDependenciesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi