oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.Apm.getApmDomains

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testApmDomains = Oci.Apm.GetApmDomains.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Apm_domain_display_name,
        State = @var.Apm_domain_state,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			DisplayName:   pulumi.StringRef(_var.Apm_domain_display_name),
			State:         pulumi.StringRef(_var.Apm_domain_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .displayName(var_.apm_domain_display_name())
            .state(var_.apm_domain_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_apm_domains = oci.Apm.get_apm_domains(compartment_id=var["compartment_id"],
    display_name=var["apm_domain_display_name"],
    state=var["apm_domain_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testApmDomains = oci.Apm.getApmDomains({
    compartmentId: _var.compartment_id,
    displayName: _var.apm_domain_display_name,
    state: _var.apm_domain_state,
});
variables:
  testApmDomains:
    fn::invoke:
      Function: oci:Apm:getApmDomains
      Arguments:
        compartmentId: ${var.compartment_id}
        displayName: ${var.apm_domain_display_name}
        state: ${var.apm_domain_state}

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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Apm/getApmDomains:getApmDomains
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

DisplayName string

A filter to return only resources that match the entire display name given.

Filters List<GetApmDomainsFilter>
State string

A filter to return only resources that match the given life-cycle state.

CompartmentId string

The ID of the compartment in which to list resources.

DisplayName string

A filter to return only resources that match the entire display name given.

Filters []GetApmDomainsFilter
State string

A filter to return only resources that match the given life-cycle state.

compartmentId String

The ID of the compartment in which to list resources.

displayName String

A filter to return only resources that match the entire display name given.

filters List<GetDomainsFilter>
state String

A filter to return only resources that match the given life-cycle state.

compartmentId string

The ID of the compartment in which to list resources.

displayName string

A filter to return only resources that match the entire display name given.

filters GetApmDomainsFilter[]
state string

A filter to return only resources that match the given life-cycle state.

compartment_id 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 GetApmDomainsFilter]
state str

A filter to return only resources that match the given life-cycle state.

compartmentId String

The ID of the compartment in which to list resources.

displayName String

A filter to return only resources that match the entire display name given.

filters List<Property Map>
state String

A filter to return only resources that match the given life-cycle state.

getApmDomains Result

The following output properties are available:

ApmDomains List<GetApmDomainsApmDomain>

The list of apm_domains.

CompartmentId string

The OCID of the compartment corresponding to the APM domain.

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

Display name of the APM domain, which can be updated.

Filters List<GetApmDomainsFilter>
State string

The current lifecycle state of the APM domain.

ApmDomains []GetApmDomainsApmDomain

The list of apm_domains.

CompartmentId string

The OCID of the compartment corresponding to the APM domain.

Id string

The provider-assigned unique ID for this managed resource.

DisplayName string

Display name of the APM domain, which can be updated.

Filters []GetApmDomainsFilter
State string

The current lifecycle state of the APM domain.

apmDomains List<GetDomainsDomain>

The list of apm_domains.

compartmentId String

The OCID of the compartment corresponding to the APM domain.

id String

The provider-assigned unique ID for this managed resource.

displayName String

Display name of the APM domain, which can be updated.

filters List<GetDomainsFilter>
state String

The current lifecycle state of the APM domain.

apmDomains GetApmDomainsApmDomain[]

The list of apm_domains.

compartmentId string

The OCID of the compartment corresponding to the APM domain.

id string

The provider-assigned unique ID for this managed resource.

displayName string

Display name of the APM domain, which can be updated.

filters GetApmDomainsFilter[]
state string

The current lifecycle state of the APM domain.

apm_domains GetApmDomainsApmDomain]

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 GetApmDomainsFilter]
state str

The current lifecycle state of the APM domain.

apmDomains List<Property Map>

The list of apm_domains.

compartmentId String

The OCID of the compartment corresponding to the APM domain.

id String

The provider-assigned unique ID for this managed resource.

displayName 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

CompartmentId string

The ID of the compartment in which to list resources.

DataUploadEndpoint string

The endpoint where the APM agents upload their observations and metrics.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Description of the APM domain.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique identifier that is immutable on creation.

IsFreeTier bool

Indicates if this is an Always Free resource.

State string

A filter to return only resources that match the given life-cycle state.

TimeCreated string

The time the APM domain was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

CompartmentId string

The ID of the compartment in which to list resources.

DataUploadEndpoint string

The endpoint where the APM agents upload their observations and metrics.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Description of the APM domain.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique identifier that is immutable on creation.

IsFreeTier bool

Indicates if this is an Always Free resource.

State string

A filter to return only resources that match the given life-cycle state.

TimeCreated string

The time the APM domain was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

compartmentId String

The ID of the compartment in which to list resources.

dataUploadEndpoint String

The endpoint where the APM agents upload their observations and metrics.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Description of the APM domain.

displayName String

A filter to return only resources that match the entire display name given.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique identifier that is immutable on creation.

isFreeTier Boolean

Indicates if this is an Always Free resource.

state String

A filter to return only resources that match the given life-cycle state.

timeCreated String

The time the APM domain was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

compartmentId string

The ID of the compartment in which to list resources.

dataUploadEndpoint string

The endpoint where the APM agents upload their observations and metrics.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

Description of the APM domain.

displayName string

A filter to return only resources that match the entire display name given.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id string

Unique identifier that is immutable on creation.

isFreeTier boolean

Indicates if this is an Always Free resource.

state string

A filter to return only resources that match the given life-cycle state.

timeCreated string

The time the APM domain was created, expressed in RFC 3339 timestamp format.

timeUpdated string

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

compartment_id str

The ID of the compartment in which to list resources.

data_upload_endpoint str

The endpoint where the APM agents upload their observations and metrics.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

Description of the APM domain.

display_name str

A filter to return only resources that match the entire display name given.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id str

Unique identifier that is immutable on creation.

is_free_tier bool

Indicates if this is an Always Free resource.

state str

A filter to return only resources that match the given life-cycle state.

time_created str

The time the APM domain was created, expressed in RFC 3339 timestamp format.

time_updated str

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

compartmentId String

The ID of the compartment in which to list resources.

dataUploadEndpoint String

The endpoint where the APM agents upload their observations and metrics.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Description of the APM domain.

displayName String

A filter to return only resources that match the entire display name given.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique identifier that is immutable on creation.

isFreeTier Boolean

Indicates if this is an Always Free resource.

state String

A filter to return only resources that match the given life-cycle state.

timeCreated String

The time the APM domain was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The time the APM domain was updated, expressed in RFC 3339 timestamp format.

GetApmDomainsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
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.