1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ManagementAgent
  5. getManagementAgentDataSources
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.ManagementAgent.getManagementAgentDataSources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 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,
    });
    
    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/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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ManagementAgent/getManagementAgentDataSources:getManagementAgentDataSources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagementAgentId string
    Unique Management Agent identifier
    Filters List<GetManagementAgentDataSourcesFilter>
    Name string
    Unique name of the dataSource.
    ManagementAgentId string
    Unique Management Agent identifier
    Filters []GetManagementAgentDataSourcesFilter
    Name string
    Unique name of the dataSource.
    managementAgentId String
    Unique Management Agent identifier
    filters List<GetDataSourcesFilter>
    name String
    Unique name of the dataSource.
    managementAgentId string
    Unique Management Agent identifier
    filters GetManagementAgentDataSourcesFilter[]
    name string
    Unique name of the dataSource.
    management_agent_id str
    Unique Management Agent identifier
    filters Sequence[managementagent.GetManagementAgentDataSourcesFilter]
    name str
    Unique name of the dataSource.
    managementAgentId String
    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<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 string
    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.
    DataSourceKey string
    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.
    dataSourceKey String
    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.
    dataSourceKey string
    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_key str
    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.
    dataSourceKey String
    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

    Name string
    Unique name of the dataSource.
    Values List<string>
    Regex bool
    Name string
    Unique name of the dataSource.
    Values []string
    Regex bool
    name String
    Unique name of the dataSource.
    values List<String>
    regex Boolean
    name string
    Unique name of the dataSource.
    values string[]
    regex boolean
    name str
    Unique name of the dataSource.
    values Sequence[str]
    regex bool
    name String
    Unique name of the dataSource.
    values 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.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi