Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ManagementAgent.getManagementAgentDataSources
Explore with Pulumi AI
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testManagementAgentDataSources:
    fn::invoke:
      function: oci:ManagementAgent:getManagementAgentDataSources
      arguments:
        managementAgentId: ${testManagementAgent.id}
        name: ${managementAgentDataSourceName}
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>def get_management_agent_data_sources(filters: Optional[Sequence[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[GetManagementAgentDataSourcesFilterArgs]]]] = None,
                                      management_agent_id: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentDataSourcesResult]func GetManagementAgentDataSources(ctx *Context, args *GetManagementAgentDataSourcesArgs, opts ...InvokeOption) (*GetManagementAgentDataSourcesResult, error)
func GetManagementAgentDataSourcesOutput(ctx *Context, args *GetManagementAgentDataSourcesOutputArgs, opts ...InvokeOption) GetManagementAgentDataSourcesResultOutput> 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)
}public static CompletableFuture<GetManagementAgentDataSourcesResult> getManagementAgentDataSources(GetManagementAgentDataSourcesArgs args, InvokeOptions options)
public static Output<GetManagementAgentDataSourcesResult> getManagementAgentDataSources(GetManagementAgentDataSourcesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ManagementAgent/getManagementAgentDataSources:getManagementAgentDataSources
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagementAgent stringId 
- Unique Management Agent identifier
- Filters
List<GetManagement Agent Data Sources Filter> 
- Name string
- Unique name of the dataSource.
- ManagementAgent stringId 
- Unique Management Agent identifier
- Filters
[]GetManagement Agent Data Sources Filter 
- Name string
- Unique name of the dataSource.
- managementAgent StringId 
- Unique Management Agent identifier
- filters
List<GetData Sources Filter> 
- name String
- Unique name of the dataSource.
- managementAgent stringId 
- Unique Management Agent identifier
- filters
GetManagement Agent Data Sources Filter[] 
- name string
- Unique name of the dataSource.
- management_agent_ strid 
- Unique Management Agent identifier
- filters
Sequence[GetManagement Agent Data Sources Filter] 
- name str
- Unique name of the dataSource.
- managementAgent StringId 
- Unique Management Agent identifier
- filters List<Property Map>
- name String
- Unique name of the dataSource.
getManagementAgentDataSources Result
The following output properties are available:
- DataSources List<GetManagement Agent Data Sources Data Source> 
- The list of data_sources.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent stringId 
- Filters
List<GetManagement Agent Data Sources Filter> 
- Name string
- Unique name of the DataSource.
- DataSources []GetManagement Agent Data Sources Data Source 
- The list of data_sources.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent stringId 
- Filters
[]GetManagement Agent Data Sources Filter 
- Name string
- Unique name of the DataSource.
- dataSources List<GetData Sources Data Source> 
- The list of data_sources.
- id String
- The provider-assigned unique ID for this managed resource.
- managementAgent StringId 
- filters
List<GetData Sources Filter> 
- name String
- Unique name of the DataSource.
- dataSources GetManagement Agent Data Sources Data Source[] 
- The list of data_sources.
- id string
- The provider-assigned unique ID for this managed resource.
- managementAgent stringId 
- filters
GetManagement Agent Data Sources Filter[] 
- name string
- Unique name of the DataSource.
- data_sources Sequence[GetManagement Agent Data Sources Data Source] 
- The list of data_sources.
- id str
- The provider-assigned unique ID for this managed resource.
- management_agent_ strid 
- filters
Sequence[GetManagement Agent Data Sources Filter] 
- 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.
- managementAgent StringId 
- filters List<Property Map>
- name String
- Unique name of the DataSource.
Supporting Types
GetManagementAgentDataSourcesDataSource      
- DataSource stringKey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- Type string
- The type of the DataSource.
- Name string
- Unique name of the dataSource.
- DataSource stringKey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- Type string
- The type of the DataSource.
- Name string
- Unique name of the dataSource.
- dataSource StringKey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- type String
- The type of the DataSource.
- name String
- Unique name of the dataSource.
- dataSource stringKey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- type string
- The type of the DataSource.
- name string
- Unique name of the dataSource.
- data_source_ strkey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- type str
- The type of the DataSource.
- name str
- Unique name of the dataSource.
- dataSource StringKey 
- Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.
- type String
- The type of the DataSource.
- name String
- Unique name of the dataSource.
GetManagementAgentDataSourcesFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.