Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Management
Agent stringId - Unique Management Agent identifier
- Filters
List<Get
Management Agent Data Sources Filter> - Name string
- Unique name of the dataSource.
- Management
Agent stringId - Unique Management Agent identifier
- Filters
[]Get
Management Agent Data Sources Filter - Name string
- Unique name of the dataSource.
- management
Agent StringId - Unique Management Agent identifier
- filters
List<Get
Data Sources Filter> - name String
- Unique name of the dataSource.
- management
Agent stringId - Unique Management Agent identifier
- filters
Get
Management Agent Data Sources Filter[] - name string
- Unique name of the dataSource.
- management_
agent_ strid - Unique Management Agent identifier
- filters
Sequence[managementagent.
Get Management Agent Data Sources Filter] - name str
- Unique name of the dataSource.
- management
Agent StringId - Unique Management Agent identifier
- filters List<Property Map>
- name String
- Unique name of the dataSource.
getManagementAgentDataSources Result
The following output properties are available:
- Data
Sources List<GetManagement Agent Data Sources Data Source> - The list of data_sources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent stringId - Filters
List<Get
Management Agent Data Sources Filter> - Name string
- Unique name of the DataSource.
- Data
Sources []GetManagement Agent Data Sources Data Source - The list of data_sources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent stringId - Filters
[]Get
Management Agent Data Sources Filter - Name string
- Unique name of the DataSource.
- data
Sources List<GetData Sources Data Source> - The list of data_sources.
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent StringId - filters
List<Get
Data Sources Filter> - name String
- Unique name of the DataSource.
- data
Sources GetManagement Agent Data Sources Data Source[] - The list of data_sources.
- id string
- The provider-assigned unique ID for this managed resource.
- management
Agent stringId - filters
Get
Management Agent Data Sources Filter[] - name string
- Unique name of the DataSource.
- data_
sources Sequence[managementagent.Get Management 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[managementagent.
Get Management Agent Data Sources Filter] - name str
- Unique name of the DataSource.
- data
Sources List<Property Map> - The list of data_sources.
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent StringId - filters List<Property Map>
- name String
- Unique name of the DataSource.
Supporting Types
GetManagementAgentDataSourcesDataSource
- Data
Source 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 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 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 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.
- data
Source 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
oci
Terraform Provider.