Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ManagementAgent.getManagementAgentDataSource
Explore with Pulumi AI
This data source provides details about a specific Management Agent Data Source resource in Oracle Cloud Infrastructure Management Agent service.
Get Datasource details for given Id and given Management Agent.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementAgentDataSource = oci.ManagementAgent.getManagementAgentDataSource({
dataSourceKey: managementAgentDataSourceDataSourceKey,
managementAgentId: testManagementAgent.id,
});
import pulumi
import pulumi_oci as oci
test_management_agent_data_source = oci.ManagementAgent.get_management_agent_data_source(data_source_key=management_agent_data_source_data_source_key,
management_agent_id=test_management_agent["id"])
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.GetManagementAgentDataSource(ctx, &managementagent.GetManagementAgentDataSourceArgs{
DataSourceKey: managementAgentDataSourceDataSourceKey,
ManagementAgentId: testManagementAgent.Id,
}, 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 testManagementAgentDataSource = Oci.ManagementAgent.GetManagementAgentDataSource.Invoke(new()
{
DataSourceKey = managementAgentDataSourceDataSourceKey,
ManagementAgentId = testManagementAgent.Id,
});
});
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.GetManagementAgentDataSourceArgs;
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 testManagementAgentDataSource = ManagementAgentFunctions.getManagementAgentDataSource(GetManagementAgentDataSourceArgs.builder()
.dataSourceKey(managementAgentDataSourceDataSourceKey)
.managementAgentId(testManagementAgent.id())
.build());
}
}
variables:
testManagementAgentDataSource:
fn::invoke:
Function: oci:ManagementAgent:getManagementAgentDataSource
Arguments:
dataSourceKey: ${managementAgentDataSourceDataSourceKey}
managementAgentId: ${testManagementAgent.id}
Using getManagementAgentDataSource
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 getManagementAgentDataSource(args: GetManagementAgentDataSourceArgs, opts?: InvokeOptions): Promise<GetManagementAgentDataSourceResult>
function getManagementAgentDataSourceOutput(args: GetManagementAgentDataSourceOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentDataSourceResult>
def get_management_agent_data_source(data_source_key: Optional[str] = None,
management_agent_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementAgentDataSourceResult
def get_management_agent_data_source_output(data_source_key: Optional[pulumi.Input[str]] = None,
management_agent_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentDataSourceResult]
func GetManagementAgentDataSource(ctx *Context, args *GetManagementAgentDataSourceArgs, opts ...InvokeOption) (*GetManagementAgentDataSourceResult, error)
func GetManagementAgentDataSourceOutput(ctx *Context, args *GetManagementAgentDataSourceOutputArgs, opts ...InvokeOption) GetManagementAgentDataSourceResultOutput
> Note: This function is named GetManagementAgentDataSource
in the Go SDK.
public static class GetManagementAgentDataSource
{
public static Task<GetManagementAgentDataSourceResult> InvokeAsync(GetManagementAgentDataSourceArgs args, InvokeOptions? opts = null)
public static Output<GetManagementAgentDataSourceResult> Invoke(GetManagementAgentDataSourceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagementAgentDataSourceResult> getManagementAgentDataSource(GetManagementAgentDataSourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ManagementAgent/getManagementAgentDataSource:getManagementAgentDataSource
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Source stringKey - Data source type and name identifier.
- Management
Agent stringId - Unique Management Agent identifier
- Data
Source stringKey - Data source type and name identifier.
- Management
Agent stringId - Unique Management Agent identifier
- data
Source StringKey - Data source type and name identifier.
- management
Agent StringId - Unique Management Agent identifier
- data
Source stringKey - Data source type and name identifier.
- management
Agent stringId - Unique Management Agent identifier
- data_
source_ strkey - Data source type and name identifier.
- management_
agent_ strid - Unique Management Agent identifier
- data
Source StringKey - Data source type and name identifier.
- management
Agent StringId - Unique Management Agent identifier
getManagementAgentDataSource Result
The following output properties are available:
- Allow
Metrics string - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- Compartment
Id string - Compartment owning this DataSource.
- Connection
Timeout int - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- Data
Source stringKey - Id string
- Is
Daemon boolSet - If the Kubernetes cluster type is Daemon set then this will be set to true.
- Management
Agent stringId - Metric
Dimensions List<GetManagement Agent Data Source Metric Dimension> - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- Name string
- Unique name of the DataSource.
- Namespace string
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- Proxy
Url string - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- Read
Data intLimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- Read
Data intLimit In Kilobytes - Read
Timeout int - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- Resource
Group string - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- Schedule
Mins int - Number in minutes. The scraping occurs at the specified interval.
- State string
- State of the DataSource.
- Time
Created string - The time the DataSource was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the DataSource data was last received. An RFC3339 formatted datetime string
- Type string
- The type of the DataSource.
- Url string
- The url through which the Prometheus Exporter publishes its metrics. (http only)
- Allow
Metrics string - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- Compartment
Id string - Compartment owning this DataSource.
- Connection
Timeout int - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- Data
Source stringKey - Id string
- Is
Daemon boolSet - If the Kubernetes cluster type is Daemon set then this will be set to true.
- Management
Agent stringId - Metric
Dimensions []GetManagement Agent Data Source Metric Dimension - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- Name string
- Unique name of the DataSource.
- Namespace string
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- Proxy
Url string - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- Read
Data intLimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- Read
Data intLimit In Kilobytes - Read
Timeout int - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- Resource
Group string - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- Schedule
Mins int - Number in minutes. The scraping occurs at the specified interval.
- State string
- State of the DataSource.
- Time
Created string - The time the DataSource was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the DataSource data was last received. An RFC3339 formatted datetime string
- Type string
- The type of the DataSource.
- Url string
- The url through which the Prometheus Exporter publishes its metrics. (http only)
- allow
Metrics String - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- compartment
Id String - Compartment owning this DataSource.
- connection
Timeout Integer - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- data
Source StringKey - id String
- is
Daemon BooleanSet - If the Kubernetes cluster type is Daemon set then this will be set to true.
- management
Agent StringId - metric
Dimensions List<GetData Source Metric Dimension> - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- name String
- Unique name of the DataSource.
- namespace String
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- proxy
Url String - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- read
Data IntegerLimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- read
Data IntegerLimit In Kilobytes - read
Timeout Integer - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- resource
Group String - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- schedule
Mins Integer - Number in minutes. The scraping occurs at the specified interval.
- state String
- State of the DataSource.
- time
Created String - The time the DataSource was created. An RFC3339 formatted datetime string
- time
Updated String - The time the DataSource data was last received. An RFC3339 formatted datetime string
- type String
- The type of the DataSource.
- url String
- The url through which the Prometheus Exporter publishes its metrics. (http only)
- allow
Metrics string - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- compartment
Id string - Compartment owning this DataSource.
- connection
Timeout number - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- data
Source stringKey - id string
- is
Daemon booleanSet - If the Kubernetes cluster type is Daemon set then this will be set to true.
- management
Agent stringId - metric
Dimensions GetManagement Agent Data Source Metric Dimension[] - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- name string
- Unique name of the DataSource.
- namespace string
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- proxy
Url string - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- read
Data numberLimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- read
Data numberLimit In Kilobytes - read
Timeout number - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- resource
Group string - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- schedule
Mins number - Number in minutes. The scraping occurs at the specified interval.
- state string
- State of the DataSource.
- time
Created string - The time the DataSource was created. An RFC3339 formatted datetime string
- time
Updated string - The time the DataSource data was last received. An RFC3339 formatted datetime string
- type string
- The type of the DataSource.
- url string
- The url through which the Prometheus Exporter publishes its metrics. (http only)
- allow_
metrics str - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- compartment_
id str - Compartment owning this DataSource.
- connection_
timeout int - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- data_
source_ strkey - id str
- is_
daemon_ boolset - If the Kubernetes cluster type is Daemon set then this will be set to true.
- management_
agent_ strid - metric_
dimensions Sequence[managementagent.Get Management Agent Data Source Metric Dimension] - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- name str
- Unique name of the DataSource.
- namespace str
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- proxy_
url str - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- read_
data_ intlimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- read_
data_ intlimit_ in_ kilobytes - read_
timeout int - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- resource_
group str - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- schedule_
mins int - Number in minutes. The scraping occurs at the specified interval.
- state str
- State of the DataSource.
- time_
created str - The time the DataSource was created. An RFC3339 formatted datetime string
- time_
updated str - The time the DataSource data was last received. An RFC3339 formatted datetime string
- type str
- The type of the DataSource.
- url str
- The url through which the Prometheus Exporter publishes its metrics. (http only)
- allow
Metrics String - Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
- compartment
Id String - Compartment owning this DataSource.
- connection
Timeout Number - Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
- data
Source StringKey - id String
- is
Daemon BooleanSet - If the Kubernetes cluster type is Daemon set then this will be set to true.
- management
Agent StringId - metric
Dimensions List<Property Map> - The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
- name String
- Unique name of the DataSource.
- namespace String
- The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
- proxy
Url String - The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
- read
Data NumberLimit - Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
- read
Data NumberLimit In Kilobytes - read
Timeout Number - Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
- resource
Group String - Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
- schedule
Mins Number - Number in minutes. The scraping occurs at the specified interval.
- state String
- State of the DataSource.
- time
Created String - The time the DataSource was created. An RFC3339 formatted datetime string
- time
Updated String - The time the DataSource data was last received. An RFC3339 formatted datetime string
- type String
- The type of the DataSource.
- url String
- The url through which the Prometheus Exporter publishes its metrics. (http only)
Supporting Types
GetManagementAgentDataSourceMetricDimension
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.