Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
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
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testAgentDependencies:
fn::invoke:
Function: oci:CloudBridge:getAgentDependencies
Arguments:
compartmentId: ${compartmentId}
agentId: ${testAgent.id}
displayName: ${agentDependencyDisplayName}
environmentId: ${testEnvironment.id}
state: ${agentDependencyState}
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:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Agent
Id string - A filter to return only resources that match the given Agent ID.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Environment
Id string - A filter to return only resources that match the given environment ID.
- Filters
List<Get
Agent Dependencies Filter> - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Agent
Id string - A filter to return only resources that match the given Agent ID.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Environment
Id string - A filter to return only resources that match the given environment ID.
- Filters
[]Get
Agent Dependencies Filter - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- agent
Id String - A filter to return only resources that match the given Agent ID.
- display
Name String - A filter to return only resources that match the entire display name given.
- environment
Id String - A filter to return only resources that match the given environment ID.
- filters
List<Get
Agent Dependencies Filter> - state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id string - The ID of the compartment in which to list resources.
- agent
Id string - A filter to return only resources that match the given Agent ID.
- display
Name string - A filter to return only resources that match the entire display name given.
- environment
Id string - A filter to return only resources that match the given environment ID.
- filters
Get
Agent Dependencies Filter[] - 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
Sequence[cloudbridge.
Get Agent Dependencies Filter] - state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- agent
Id String - A filter to return only resources that match the given Agent ID.
- display
Name String - A filter to return only resources that match the entire display name given.
- environment
Id 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:
- Agent
Dependency List<GetCollections Agent Dependencies Agent Dependency Collection> - The list of agent_dependency_collection.
- Compartment
Id string - Compartment identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Agent
Id string - Display
Name string - Display name of the Agent dependency.
- Environment
Id string - Filters
List<Get
Agent Dependencies Filter> - State string
- The current state of AgentDependency.
- Agent
Dependency []GetCollections Agent Dependencies Agent Dependency Collection - The list of agent_dependency_collection.
- Compartment
Id string - Compartment identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Agent
Id string - Display
Name string - Display name of the Agent dependency.
- Environment
Id string - Filters
[]Get
Agent Dependencies Filter - State string
- The current state of AgentDependency.
- agent
Dependency List<GetCollections Agent Dependencies Agent Dependency Collection> - The list of agent_dependency_collection.
- compartment
Id String - Compartment identifier
- id String
- The provider-assigned unique ID for this managed resource.
- agent
Id String - display
Name String - Display name of the Agent dependency.
- environment
Id String - filters
List<Get
Agent Dependencies Filter> - state String
- The current state of AgentDependency.
- agent
Dependency GetCollections Agent Dependencies Agent Dependency Collection[] - The list of agent_dependency_collection.
- compartment
Id string - Compartment identifier
- id string
- The provider-assigned unique ID for this managed resource.
- agent
Id string - display
Name string - Display name of the Agent dependency.
- environment
Id string - filters
Get
Agent Dependencies Filter[] - state string
- The current state of AgentDependency.
- agent_
dependency_ Sequence[cloudbridge.collections Get Agent Dependencies Agent Dependency Collection] - 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.
Get Agent Dependencies Filter] - state str
- The current state of AgentDependency.
- agent
Dependency List<Property Map>Collections - The list of agent_dependency_collection.
- compartment
Id String - Compartment identifier
- id String
- The provider-assigned unique ID for this managed resource.
- agent
Id String - display
Name String - Display name of the Agent dependency.
- environment
Id 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.
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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"}
- Dependency
Name string - Name of the dependency type. This should match the whitelisted enum of dependency names.
- Dependency
Version string - Version of the Agent dependency.
- Description string
- Description about the Agent dependency.
- Display
Name 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.
- 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 string
- Unique identifier that is immutable on creation.
- Lifecycle
Details 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.
- 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}}
- Time
Created 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.
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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"}
- Dependency
Name string - Name of the dependency type. This should match the whitelisted enum of dependency names.
- Dependency
Version string - Version of the Agent dependency.
- Description string
- Description about the Agent dependency.
- Display
Name 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.
- 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 string
- Unique identifier that is immutable on creation.
- Lifecycle
Details 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.
- 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}}
- Time
Created 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- 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"}
- dependency
Name String - Name of the dependency type. This should match the whitelisted enum of dependency names.
- dependency
Version String - Version of the Agent dependency.
- description String
- Description about the Agent dependency.
- display
Name String - A filter to return only resources that match the entire display name given.
- e
Tag String - The eTag associated with the dependency object returned by Object Storage.
- 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 String
- Unique identifier that is immutable on creation.
- lifecycle
Details 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.
- 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}}
- time
Created 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.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[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"}
- dependency
Name string - Name of the dependency type. This should match the whitelisted enum of dependency names.
- dependency
Version string - Version of the Agent dependency.
- description string
- Description about the Agent dependency.
- display
Name string - A filter to return only resources that match the entire display name given.
- e
Tag string - The eTag associated with the dependency object returned by Object Storage.
- {[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 string
- Unique identifier that is immutable on creation.
- lifecycle
Details 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.
- {[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}}
- time
Created 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.
- 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 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.
- 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 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.
- 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 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- 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"}
- dependency
Name String - Name of the dependency type. This should match the whitelisted enum of dependency names.
- dependency
Version String - Version of the Agent dependency.
- description String
- Description about the Agent dependency.
- display
Name String - A filter to return only resources that match the entire display name given.
- e
Tag String - The eTag associated with the dependency object returned by Object Storage.
- 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 String
- Unique identifier that is immutable on creation.
- lifecycle
Details 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.
- 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}}
- time
Created String - The time when the AgentDependency was created. An RFC3339 formatted datetime string.
GetAgentDependenciesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.