Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.Apm.getApmDomains
Explore with Pulumi AI
This data source provides the list of Apm Domains in Oracle Cloud Infrastructure Apm service.
Lists all APM domains for the specified tenant compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testApmDomains = oci.Apm.getApmDomains({
compartmentId: compartmentId,
displayName: apmDomainDisplayName,
state: apmDomainState,
});
import pulumi
import pulumi_oci as oci
test_apm_domains = oci.Apm.get_apm_domains(compartment_id=compartment_id,
display_name=apm_domain_display_name,
state=apm_domain_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/apm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apm.GetApmDomains(ctx, &apm.GetApmDomainsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(apmDomainDisplayName),
State: pulumi.StringRef(apmDomainState),
}, 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 testApmDomains = Oci.Apm.GetApmDomains.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = apmDomainDisplayName,
State = apmDomainState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Apm.ApmFunctions;
import com.pulumi.oci.Apm.inputs.GetApmDomainsArgs;
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 testApmDomains = ApmFunctions.getApmDomains(GetApmDomainsArgs.builder()
.compartmentId(compartmentId)
.displayName(apmDomainDisplayName)
.state(apmDomainState)
.build());
}
}
variables:
testApmDomains:
fn::invoke:
function: oci:Apm:getApmDomains
arguments:
compartmentId: ${compartmentId}
displayName: ${apmDomainDisplayName}
state: ${apmDomainState}
Using getApmDomains
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 getApmDomains(args: GetApmDomainsArgs, opts?: InvokeOptions): Promise<GetApmDomainsResult>
function getApmDomainsOutput(args: GetApmDomainsOutputArgs, opts?: InvokeOptions): Output<GetApmDomainsResult>
def get_apm_domains(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_apm.GetApmDomainsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApmDomainsResult
def get_apm_domains_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_apm.GetApmDomainsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApmDomainsResult]
func GetApmDomains(ctx *Context, args *GetApmDomainsArgs, opts ...InvokeOption) (*GetApmDomainsResult, error)
func GetApmDomainsOutput(ctx *Context, args *GetApmDomainsOutputArgs, opts ...InvokeOption) GetApmDomainsResultOutput
> Note: This function is named GetApmDomains
in the Go SDK.
public static class GetApmDomains
{
public static Task<GetApmDomainsResult> InvokeAsync(GetApmDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetApmDomainsResult> Invoke(GetApmDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApmDomainsResult> getApmDomains(GetApmDomainsArgs args, InvokeOptions options)
public static Output<GetApmDomainsResult> getApmDomains(GetApmDomainsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Apm/getApmDomains:getApmDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
Changes to this property will trigger replacement.
Apm Domains Filter> - State string
- A filter to return only resources that match the given life-cycle state.
- Compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
Changes to this property will trigger replacement.
Apm Domains Filter - State string
- A filter to return only resources that match the given life-cycle state.
- compartment
Id This property is required. String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Domains Filter> - state String
- A filter to return only resources that match the given life-cycle state.
- compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Apm Domains Filter[] - state string
- A filter to return only resources that match the given life-cycle state.
- compartment_
id This property is required. str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Get Apm Domains Filter] - state str
- A filter to return only resources that match the given life-cycle state.
- compartment
Id This property is required. String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
- state String
- A filter to return only resources that match the given life-cycle state.
getApmDomains Result
The following output properties are available:
- Apm
Domains List<GetApm Domains Apm Domain> - The list of apm_domains.
- Compartment
Id string - The OCID of the compartment corresponding to the APM domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Display name of the APM domain, which can be updated.
- Filters
List<Get
Apm Domains Filter> - State string
- The current lifecycle state of the APM domain.
- Apm
Domains []GetApm Domains Apm Domain - The list of apm_domains.
- Compartment
Id string - The OCID of the compartment corresponding to the APM domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Display name of the APM domain, which can be updated.
- Filters
[]Get
Apm Domains Filter - State string
- The current lifecycle state of the APM domain.
- apm
Domains List<GetDomains Domain> - The list of apm_domains.
- compartment
Id String - The OCID of the compartment corresponding to the APM domain.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Display name of the APM domain, which can be updated.
- filters
List<Get
Domains Filter> - state String
- The current lifecycle state of the APM domain.
- apm
Domains GetApm Domains Apm Domain[] - The list of apm_domains.
- compartment
Id string - The OCID of the compartment corresponding to the APM domain.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - Display name of the APM domain, which can be updated.
- filters
Get
Apm Domains Filter[] - state string
- The current lifecycle state of the APM domain.
- apm_
domains Sequence[apm.Get Apm Domains Apm Domain] - The list of apm_domains.
- compartment_
id str - The OCID of the compartment corresponding to the APM domain.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - Display name of the APM domain, which can be updated.
- filters
Sequence[apm.
Get Apm Domains Filter] - state str
- The current lifecycle state of the APM domain.
- apm
Domains List<Property Map> - The list of apm_domains.
- compartment
Id String - The OCID of the compartment corresponding to the APM domain.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Display name of the APM domain, which can be updated.
- filters List<Property Map>
- state String
- The current lifecycle state of the APM domain.
Supporting Types
GetApmDomainsApmDomain
- Compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- Data
Upload Endpoint This property is required. string - The endpoint where the APM agents upload their observations and metrics.
This property is required. Dictionary<string, string>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description
This property is required. string - Description of the APM domain.
- Display
Name This property is required. string - A filter to return only resources that match the entire display name given.
This property is required. Dictionary<string, string>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id
This property is required. string - Unique identifier that is immutable on creation.
- Is
Free Tier This property is required. bool - Indicates if this is an Always Free resource.
- State
This property is required. string - A filter to return only resources that match the given life-cycle state.
- Time
Created This property is required. string - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated This property is required. string - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- Compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- Data
Upload Endpoint This property is required. string - The endpoint where the APM agents upload their observations and metrics.
This property is required. map[string]string- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description
This property is required. string - Description of the APM domain.
- Display
Name This property is required. string - A filter to return only resources that match the entire display name given.
This property is required. map[string]string- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id
This property is required. string - Unique identifier that is immutable on creation.
- Is
Free Tier This property is required. bool - Indicates if this is an Always Free resource.
- State
This property is required. string - A filter to return only resources that match the given life-cycle state.
- Time
Created This property is required. string - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated This property is required. string - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment
Id This property is required. String - The ID of the compartment in which to list resources.
- data
Upload Endpoint This property is required. String - The endpoint where the APM agents upload their observations and metrics.
This property is required. Map<String,String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description
This property is required. String - Description of the APM domain.
- display
Name This property is required. String - A filter to return only resources that match the entire display name given.
This property is required. Map<String,String>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. String - Unique identifier that is immutable on creation.
- is
Free Tier This property is required. Boolean - Indicates if this is an Always Free resource.
- state
This property is required. String - A filter to return only resources that match the given life-cycle state.
- time
Created This property is required. String - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated This property is required. String - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment
Id This property is required. string - The ID of the compartment in which to list resources.
- data
Upload Endpoint This property is required. string - The endpoint where the APM agents upload their observations and metrics.
This property is required. {[key: string]: string}- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description
This property is required. string - Description of the APM domain.
- display
Name This property is required. string - A filter to return only resources that match the entire display name given.
This property is required. {[key: string]: string}- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. string - Unique identifier that is immutable on creation.
- is
Free Tier This property is required. boolean - Indicates if this is an Always Free resource.
- state
This property is required. string - A filter to return only resources that match the given life-cycle state.
- time
Created This property is required. string - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated This property is required. string - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment_
id This property is required. str - The ID of the compartment in which to list resources.
- data_
upload_ endpoint This property is required. str - The endpoint where the APM agents upload their observations and metrics.
This property is required. Mapping[str, str]- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description
This property is required. str - Description of the APM domain.
- display_
name This property is required. str - A filter to return only resources that match the entire display name given.
This property is required. Mapping[str, str]- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. str - Unique identifier that is immutable on creation.
- is_
free_ tier This property is required. bool - Indicates if this is an Always Free resource.
- state
This property is required. str - A filter to return only resources that match the given life-cycle state.
- time_
created This property is required. str - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time_
updated This property is required. str - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment
Id This property is required. String - The ID of the compartment in which to list resources.
- data
Upload Endpoint This property is required. String - The endpoint where the APM agents upload their observations and metrics.
This property is required. Map<String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description
This property is required. String - Description of the APM domain.
- display
Name This property is required. String - A filter to return only resources that match the entire display name given.
This property is required. Map<String>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. String - Unique identifier that is immutable on creation.
- is
Free Tier This property is required. Boolean - Indicates if this is an Always Free resource.
- state
This property is required. String - A filter to return only resources that match the given life-cycle state.
- time
Created This property is required. String - The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated This property is required. String - The time the APM domain was updated, expressed in RFC 3339 timestamp format.
GetApmDomainsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.