1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ManagementAgent
  5. getManagementAgentDataSources
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.ManagementAgent.getManagementAgentDataSources

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides the list of Management Agent Data Sources in Oracle Cloud Infrastructure Management Agent service.

A list of Management Agent Data Sources for the given Management Agent Id.

Example Usage

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

const testManagementAgentDataSources = oci.ManagementAgent.getManagementAgentDataSources({
    managementAgentId: testManagementAgent.id,
    name: managementAgentDataSourceName,
});
Copy
import pulumi
import pulumi_oci as oci

test_management_agent_data_sources = oci.ManagementAgent.get_management_agent_data_sources(management_agent_id=test_management_agent["id"],
    name=management_agent_data_source_name)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := managementagent.GetManagementAgentDataSources(ctx, &managementagent.GetManagementAgentDataSourcesArgs{
			ManagementAgentId: testManagementAgent.Id,
			Name:              pulumi.StringRef(managementAgentDataSourceName),
		}, 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 testManagementAgentDataSources = Oci.ManagementAgent.GetManagementAgentDataSources.Invoke(new()
    {
        ManagementAgentId = testManagementAgent.Id,
        Name = managementAgentDataSourceName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ManagementAgent.ManagementAgentFunctions;
import com.pulumi.oci.ManagementAgent.inputs.GetManagementAgentDataSourcesArgs;
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 testManagementAgentDataSources = ManagementAgentFunctions.getManagementAgentDataSources(GetManagementAgentDataSourcesArgs.builder()
            .managementAgentId(testManagementAgent.id())
            .name(managementAgentDataSourceName)
            .build());

    }
}
Copy
variables:
  testManagementAgentDataSources:
    fn::invoke:
      function: oci:ManagementAgent:getManagementAgentDataSources
      arguments:
        managementAgentId: ${testManagementAgent.id}
        name: ${managementAgentDataSourceName}
Copy

Using getManagementAgentDataSources

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 getManagementAgentDataSources(args: GetManagementAgentDataSourcesArgs, opts?: InvokeOptions): Promise<GetManagementAgentDataSourcesResult>
function getManagementAgentDataSourcesOutput(args: GetManagementAgentDataSourcesOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentDataSourcesResult>
Copy
def get_management_agent_data_sources(filters: Optional[Sequence[_managementagent.GetManagementAgentDataSourcesFilter]] = None,
                                      management_agent_id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetManagementAgentDataSourcesResult
def get_management_agent_data_sources_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_managementagent.GetManagementAgentDataSourcesFilterArgs]]]] = None,
                                      management_agent_id: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentDataSourcesResult]
Copy
func GetManagementAgentDataSources(ctx *Context, args *GetManagementAgentDataSourcesArgs, opts ...InvokeOption) (*GetManagementAgentDataSourcesResult, error)
func GetManagementAgentDataSourcesOutput(ctx *Context, args *GetManagementAgentDataSourcesOutputArgs, opts ...InvokeOption) GetManagementAgentDataSourcesResultOutput
Copy

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

public static class GetManagementAgentDataSources 
{
    public static Task<GetManagementAgentDataSourcesResult> InvokeAsync(GetManagementAgentDataSourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementAgentDataSourcesResult> Invoke(GetManagementAgentDataSourcesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementAgentDataSourcesResult> getManagementAgentDataSources(GetManagementAgentDataSourcesArgs args, InvokeOptions options)
public static Output<GetManagementAgentDataSourcesResult> getManagementAgentDataSources(GetManagementAgentDataSourcesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ManagementAgent/getManagementAgentDataSources:getManagementAgentDataSources
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ManagementAgentId This property is required. string
Unique Management Agent identifier
Filters Changes to this property will trigger replacement. List<GetManagementAgentDataSourcesFilter>
Name string
Unique name of the dataSource.
ManagementAgentId This property is required. string
Unique Management Agent identifier
Filters Changes to this property will trigger replacement. []GetManagementAgentDataSourcesFilter
Name string
Unique name of the dataSource.
managementAgentId This property is required. String
Unique Management Agent identifier
filters Changes to this property will trigger replacement. List<GetDataSourcesFilter>
name String
Unique name of the dataSource.
managementAgentId This property is required. string
Unique Management Agent identifier
filters Changes to this property will trigger replacement. GetManagementAgentDataSourcesFilter[]
name string
Unique name of the dataSource.
management_agent_id This property is required. str
Unique Management Agent identifier
filters Changes to this property will trigger replacement. Sequence[managementagent.GetManagementAgentDataSourcesFilter]
name str
Unique name of the dataSource.
managementAgentId This property is required. String
Unique Management Agent identifier
filters Changes to this property will trigger replacement. List<Property Map>
name String
Unique name of the dataSource.

getManagementAgentDataSources Result

The following output properties are available:

DataSources List<GetManagementAgentDataSourcesDataSource>
The list of data_sources.
Id string
The provider-assigned unique ID for this managed resource.
ManagementAgentId string
Filters List<GetManagementAgentDataSourcesFilter>
Name string
Unique name of the DataSource.
DataSources []GetManagementAgentDataSourcesDataSource
The list of data_sources.
Id string
The provider-assigned unique ID for this managed resource.
ManagementAgentId string
Filters []GetManagementAgentDataSourcesFilter
Name string
Unique name of the DataSource.
dataSources List<GetDataSourcesDataSource>
The list of data_sources.
id String
The provider-assigned unique ID for this managed resource.
managementAgentId String
filters List<GetDataSourcesFilter>
name String
Unique name of the DataSource.
dataSources GetManagementAgentDataSourcesDataSource[]
The list of data_sources.
id string
The provider-assigned unique ID for this managed resource.
managementAgentId string
filters GetManagementAgentDataSourcesFilter[]
name string
Unique name of the DataSource.
data_sources Sequence[managementagent.GetManagementAgentDataSourcesDataSource]
The list of data_sources.
id str
The provider-assigned unique ID for this managed resource.
management_agent_id str
filters Sequence[managementagent.GetManagementAgentDataSourcesFilter]
name str
Unique name of the DataSource.
dataSources List<Property Map>
The list of data_sources.
id String
The provider-assigned unique ID for this managed resource.
managementAgentId String
filters List<Property Map>
name String
Unique name of the DataSource.

Supporting Types

GetManagementAgentDataSourcesDataSource

DataSourceKey This property is required. string
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
Type This property is required. string
The type of the DataSource.
Name string
Unique name of the dataSource.
DataSourceKey This property is required. string
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
Type This property is required. string
The type of the DataSource.
Name string
Unique name of the dataSource.
dataSourceKey This property is required. String
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
type This property is required. String
The type of the DataSource.
name String
Unique name of the dataSource.
dataSourceKey This property is required. string
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
type This property is required. string
The type of the DataSource.
name string
Unique name of the dataSource.
data_source_key This property is required. str
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
type This property is required. str
The type of the DataSource.
name str
Unique name of the dataSource.
dataSourceKey This property is required. String
Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
type This property is required. String
The type of the DataSource.
name String
Unique name of the dataSource.

GetManagementAgentDataSourcesFilter

Name This property is required. string
Unique name of the dataSource.
Values This property is required. List<string>
Regex bool
Name This property is required. string
Unique name of the dataSource.
Values This property is required. []string
Regex bool
name This property is required. String
Unique name of the dataSource.
values This property is required. List<String>
regex Boolean
name This property is required. string
Unique name of the dataSource.
values This property is required. string[]
regex boolean
name This property is required. str
Unique name of the dataSource.
values This property is required. Sequence[str]
regex bool
name This property is required. String
Unique name of the dataSource.
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.28.0 published on Thursday, Mar 27, 2025 by Pulumi