1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Logging
  5. getUnifiedAgentConfigurations
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Logging.getUnifiedAgentConfigurations

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Unified Agent Configurations in Oracle Cloud Infrastructure Logging service.

Lists all unified agent configurations in the specified compartment.

Example Usage

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

const testUnifiedAgentConfigurations = oci.Logging.getUnifiedAgentConfigurations({
    compartmentId: compartmentId,
    displayName: unifiedAgentConfigurationDisplayName,
    groupId: testGroup.id,
    isCompartmentIdInSubtree: unifiedAgentConfigurationIsCompartmentIdInSubtree,
    logId: testLog.id,
    state: unifiedAgentConfigurationState,
});
Copy
import pulumi
import pulumi_oci as oci

test_unified_agent_configurations = oci.Logging.get_unified_agent_configurations(compartment_id=compartment_id,
    display_name=unified_agent_configuration_display_name,
    group_id=test_group["id"],
    is_compartment_id_in_subtree=unified_agent_configuration_is_compartment_id_in_subtree,
    log_id=test_log["id"],
    state=unified_agent_configuration_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/logging"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := logging.GetUnifiedAgentConfigurations(ctx, &logging.GetUnifiedAgentConfigurationsArgs{
			CompartmentId:            compartmentId,
			DisplayName:              pulumi.StringRef(unifiedAgentConfigurationDisplayName),
			GroupId:                  pulumi.StringRef(testGroup.Id),
			IsCompartmentIdInSubtree: pulumi.BoolRef(unifiedAgentConfigurationIsCompartmentIdInSubtree),
			LogId:                    pulumi.StringRef(testLog.Id),
			State:                    pulumi.StringRef(unifiedAgentConfigurationState),
		}, 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 testUnifiedAgentConfigurations = Oci.Logging.GetUnifiedAgentConfigurations.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = unifiedAgentConfigurationDisplayName,
        GroupId = testGroup.Id,
        IsCompartmentIdInSubtree = unifiedAgentConfigurationIsCompartmentIdInSubtree,
        LogId = testLog.Id,
        State = unifiedAgentConfigurationState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Logging.LoggingFunctions;
import com.pulumi.oci.Logging.inputs.GetUnifiedAgentConfigurationsArgs;
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 testUnifiedAgentConfigurations = LoggingFunctions.getUnifiedAgentConfigurations(GetUnifiedAgentConfigurationsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(unifiedAgentConfigurationDisplayName)
            .groupId(testGroup.id())
            .isCompartmentIdInSubtree(unifiedAgentConfigurationIsCompartmentIdInSubtree)
            .logId(testLog.id())
            .state(unifiedAgentConfigurationState)
            .build());

    }
}
Copy
variables:
  testUnifiedAgentConfigurations:
    fn::invoke:
      function: oci:Logging:getUnifiedAgentConfigurations
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${unifiedAgentConfigurationDisplayName}
        groupId: ${testGroup.id}
        isCompartmentIdInSubtree: ${unifiedAgentConfigurationIsCompartmentIdInSubtree}
        logId: ${testLog.id}
        state: ${unifiedAgentConfigurationState}
Copy

Using getUnifiedAgentConfigurations

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 getUnifiedAgentConfigurations(args: GetUnifiedAgentConfigurationsArgs, opts?: InvokeOptions): Promise<GetUnifiedAgentConfigurationsResult>
function getUnifiedAgentConfigurationsOutput(args: GetUnifiedAgentConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetUnifiedAgentConfigurationsResult>
Copy
def get_unified_agent_configurations(compartment_id: Optional[str] = None,
                                     display_name: Optional[str] = None,
                                     filters: Optional[Sequence[_logging.GetUnifiedAgentConfigurationsFilter]] = None,
                                     group_id: Optional[str] = None,
                                     is_compartment_id_in_subtree: Optional[bool] = None,
                                     log_id: Optional[str] = None,
                                     state: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetUnifiedAgentConfigurationsResult
def get_unified_agent_configurations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                     display_name: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_logging.GetUnifiedAgentConfigurationsFilterArgs]]]] = None,
                                     group_id: Optional[pulumi.Input[str]] = None,
                                     is_compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                     log_id: Optional[pulumi.Input[str]] = None,
                                     state: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetUnifiedAgentConfigurationsResult]
Copy
func GetUnifiedAgentConfigurations(ctx *Context, args *GetUnifiedAgentConfigurationsArgs, opts ...InvokeOption) (*GetUnifiedAgentConfigurationsResult, error)
func GetUnifiedAgentConfigurationsOutput(ctx *Context, args *GetUnifiedAgentConfigurationsOutputArgs, opts ...InvokeOption) GetUnifiedAgentConfigurationsResultOutput
Copy

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

public static class GetUnifiedAgentConfigurations 
{
    public static Task<GetUnifiedAgentConfigurationsResult> InvokeAsync(GetUnifiedAgentConfigurationsArgs args, InvokeOptions? opts = null)
    public static Output<GetUnifiedAgentConfigurationsResult> Invoke(GetUnifiedAgentConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUnifiedAgentConfigurationsResult> getUnifiedAgentConfigurations(GetUnifiedAgentConfigurationsArgs args, InvokeOptions options)
public static Output<GetUnifiedAgentConfigurationsResult> getUnifiedAgentConfigurations(GetUnifiedAgentConfigurationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Logging/getUnifiedAgentConfigurations:getUnifiedAgentConfigurations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
DisplayName string
Resource name.
Filters Changes to this property will trigger replacement. List<GetUnifiedAgentConfigurationsFilter>
GroupId string
The OCID of a group or a dynamic group.
IsCompartmentIdInSubtree bool
Specifies whether or not nested compartments should be traversed. Defaults to false.
LogId string
Custom log OCID to list resources with the log as destination.
State string
Lifecycle state of the log object
CompartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
DisplayName string
Resource name.
Filters Changes to this property will trigger replacement. []GetUnifiedAgentConfigurationsFilter
GroupId string
The OCID of a group or a dynamic group.
IsCompartmentIdInSubtree bool
Specifies whether or not nested compartments should be traversed. Defaults to false.
LogId string
Custom log OCID to list resources with the log as destination.
State string
Lifecycle state of the log object
compartmentId This property is required. String
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
displayName String
Resource name.
filters Changes to this property will trigger replacement. List<GetUnifiedAgentConfigurationsFilter>
groupId String
The OCID of a group or a dynamic group.
isCompartmentIdInSubtree Boolean
Specifies whether or not nested compartments should be traversed. Defaults to false.
logId String
Custom log OCID to list resources with the log as destination.
state String
Lifecycle state of the log object
compartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
displayName string
Resource name.
filters Changes to this property will trigger replacement. GetUnifiedAgentConfigurationsFilter[]
groupId string
The OCID of a group or a dynamic group.
isCompartmentIdInSubtree boolean
Specifies whether or not nested compartments should be traversed. Defaults to false.
logId string
Custom log OCID to list resources with the log as destination.
state string
Lifecycle state of the log object
compartment_id This property is required. str
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
display_name str
Resource name.
filters Changes to this property will trigger replacement. Sequence[logging.GetUnifiedAgentConfigurationsFilter]
group_id str
The OCID of a group or a dynamic group.
is_compartment_id_in_subtree bool
Specifies whether or not nested compartments should be traversed. Defaults to false.
log_id str
Custom log OCID to list resources with the log as destination.
state str
Lifecycle state of the log object
compartmentId This property is required. String
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
displayName String
Resource name.
filters Changes to this property will trigger replacement. List<Property Map>
groupId String
The OCID of a group or a dynamic group.
isCompartmentIdInSubtree Boolean
Specifies whether or not nested compartments should be traversed. Defaults to false.
logId String
Custom log OCID to list resources with the log as destination.
state String
Lifecycle state of the log object

getUnifiedAgentConfigurations Result

The following output properties are available:

CompartmentId string
The OCID of the compartment that the resource belongs to.
Id string
The provider-assigned unique ID for this managed resource.
UnifiedAgentConfigurationCollections List<GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection>
The list of unified_agent_configuration_collection.
DisplayName string
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
Filters List<GetUnifiedAgentConfigurationsFilter>
GroupId string
IsCompartmentIdInSubtree bool
LogId string
State string
The pipeline state.
CompartmentId string
The OCID of the compartment that the resource belongs to.
Id string
The provider-assigned unique ID for this managed resource.
UnifiedAgentConfigurationCollections []GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection
The list of unified_agent_configuration_collection.
DisplayName string
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
Filters []GetUnifiedAgentConfigurationsFilter
GroupId string
IsCompartmentIdInSubtree bool
LogId string
State string
The pipeline state.
compartmentId String
The OCID of the compartment that the resource belongs to.
id String
The provider-assigned unique ID for this managed resource.
unifiedAgentConfigurationCollections List<GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection>
The list of unified_agent_configuration_collection.
displayName String
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
filters List<GetUnifiedAgentConfigurationsFilter>
groupId String
isCompartmentIdInSubtree Boolean
logId String
state String
The pipeline state.
compartmentId string
The OCID of the compartment that the resource belongs to.
id string
The provider-assigned unique ID for this managed resource.
unifiedAgentConfigurationCollections GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection[]
The list of unified_agent_configuration_collection.
displayName string
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
filters GetUnifiedAgentConfigurationsFilter[]
groupId string
isCompartmentIdInSubtree boolean
logId string
state string
The pipeline state.
compartment_id str
The OCID of the compartment that the resource belongs to.
id str
The provider-assigned unique ID for this managed resource.
unified_agent_configuration_collections Sequence[logging.GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection]
The list of unified_agent_configuration_collection.
display_name str
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
filters Sequence[logging.GetUnifiedAgentConfigurationsFilter]
group_id str
is_compartment_id_in_subtree bool
log_id str
state str
The pipeline state.
compartmentId String
The OCID of the compartment that the resource belongs to.
id String
The provider-assigned unique ID for this managed resource.
unifiedAgentConfigurationCollections List<Property Map>
The list of unified_agent_configuration_collection.
displayName String
The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
filters List<Property Map>
groupId String
isCompartmentIdInSubtree Boolean
logId String
state String
The pipeline state.

Supporting Types

GetUnifiedAgentConfigurationsFilter

Name This property is required. string
The name key to tag this Grok pattern.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name key to tag this Grok pattern.
Values This property is required. []string
Regex bool
name This property is required. String
The name key to tag this Grok pattern.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name key to tag this Grok pattern.
values This property is required. string[]
regex boolean
name This property is required. str
The name key to tag this Grok pattern.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name key to tag this Grok pattern.
values This property is required. List<String>
regex Boolean

GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollection

items This property is required. List<Property Map>

GetUnifiedAgentConfigurationsUnifiedAgentConfigurationCollectionItem

CompartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
ConfigurationState This property is required. string
State of unified agent service configuration.
ConfigurationType This property is required. string
Type of Unified Agent service configuration.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description This property is required. string
Description for this resource.
DisplayName This property is required. string
Resource name.
FreeformTags This property is required. Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The OCID of the resource.
IsEnabled This property is required. bool
Whether or not this resource is currently enabled.
State This property is required. string
Lifecycle state of the log object
TimeCreated This property is required. string
Time the resource was created.
TimeLastModified This property is required. string
Time the resource was last modified.
CompartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
ConfigurationState This property is required. string
State of unified agent service configuration.
ConfigurationType This property is required. string
Type of Unified Agent service configuration.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description This property is required. string
Description for this resource.
DisplayName This property is required. string
Resource name.
FreeformTags This property is required. map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The OCID of the resource.
IsEnabled This property is required. bool
Whether or not this resource is currently enabled.
State This property is required. string
Lifecycle state of the log object
TimeCreated This property is required. string
Time the resource was created.
TimeLastModified This property is required. string
Time the resource was last modified.
compartmentId This property is required. String
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
configurationState This property is required. String
State of unified agent service configuration.
configurationType This property is required. String
Type of Unified Agent service configuration.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. String
Description for this resource.
displayName This property is required. String
Resource name.
freeformTags This property is required. Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The OCID of the resource.
isEnabled This property is required. Boolean
Whether or not this resource is currently enabled.
state This property is required. String
Lifecycle state of the log object
timeCreated This property is required. String
Time the resource was created.
timeLastModified This property is required. String
Time the resource was last modified.
compartmentId This property is required. string
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
configurationState This property is required. string
State of unified agent service configuration.
configurationType This property is required. string
Type of Unified Agent service configuration.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. string
Description for this resource.
displayName This property is required. string
Resource name.
freeformTags This property is required. {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. string
The OCID of the resource.
isEnabled This property is required. boolean
Whether or not this resource is currently enabled.
state This property is required. string
Lifecycle state of the log object
timeCreated This property is required. string
Time the resource was created.
timeLastModified This property is required. string
Time the resource was last modified.
compartment_id This property is required. str
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
configuration_state This property is required. str
State of unified agent service configuration.
configuration_type This property is required. str
Type of Unified Agent service configuration.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. str
Description for this resource.
display_name This property is required. str
Resource name.
freeform_tags This property is required. Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. str
The OCID of the resource.
is_enabled This property is required. bool
Whether or not this resource is currently enabled.
state This property is required. str
Lifecycle state of the log object
time_created This property is required. str
Time the resource was created.
time_last_modified This property is required. str
Time the resource was last modified.
compartmentId This property is required. String
Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
configurationState This property is required. String
State of unified agent service configuration.
configurationType This property is required. String
Type of Unified Agent service configuration.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. String
Description for this resource.
displayName This property is required. String
Resource name.
freeformTags This property is required. Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The OCID of the resource.
isEnabled This property is required. Boolean
Whether or not this resource is currently enabled.
state This property is required. String
Lifecycle state of the log object
timeCreated This property is required. String
Time the resource was created.
timeLastModified This property is required. String
Time the resource was last modified.

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.30.0 published on Monday, Apr 14, 2025 by Pulumi