oci.Apm.ApmDomain
Explore with Pulumi AI
This resource provides the Apm Domain resource in Oracle Cloud Infrastructure Apm service.
Creates a new APM domain.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testApmDomain = new Oci.Apm.ApmDomain("testApmDomain", new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Apm_domain_display_name,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = @var.Apm_domain_description,
FreeformTags =
{
{ "bar-key", "value" },
},
IsFreeTier = @var.Apm_domain_is_free_tier,
});
});
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.NewApmDomain(ctx, "testApmDomain", &Apm.ApmDomainArgs{
CompartmentId: pulumi.Any(_var.Compartment_id),
DisplayName: pulumi.Any(_var.Apm_domain_display_name),
DefinedTags: pulumi.AnyMap{
"foo-namespace.bar-key": pulumi.Any("value"),
},
Description: pulumi.Any(_var.Apm_domain_description),
FreeformTags: pulumi.AnyMap{
"bar-key": pulumi.Any("value"),
},
IsFreeTier: pulumi.Any(_var.Apm_domain_is_free_tier),
})
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.ApmDomain;
import com.pulumi.oci.Apm.ApmDomainArgs;
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) {
var testApmDomain = new ApmDomain("testApmDomain", ApmDomainArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.apm_domain_display_name())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(var_.apm_domain_description())
.freeformTags(Map.of("bar-key", "value"))
.isFreeTier(var_.apm_domain_is_free_tier())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_apm_domain = oci.apm.ApmDomain("testApmDomain",
compartment_id=var["compartment_id"],
display_name=var["apm_domain_display_name"],
defined_tags={
"foo-namespace.bar-key": "value",
},
description=var["apm_domain_description"],
freeform_tags={
"bar-key": "value",
},
is_free_tier=var["apm_domain_is_free_tier"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testApmDomain = new oci.apm.ApmDomain("testApmDomain", {
compartmentId: _var.compartment_id,
displayName: _var.apm_domain_display_name,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: _var.apm_domain_description,
freeformTags: {
"bar-key": "value",
},
isFreeTier: _var.apm_domain_is_free_tier,
});
resources:
testApmDomain:
type: oci:Apm:ApmDomain
properties:
#Required
compartmentId: ${var.compartment_id}
displayName: ${var.apm_domain_display_name}
#Optional
definedTags:
foo-namespace.bar-key: value
description: ${var.apm_domain_description}
freeformTags:
bar-key: value
isFreeTier: ${var.apm_domain_is_free_tier}
Create ApmDomain Resource
new ApmDomain(name: string, args: ApmDomainArgs, opts?: CustomResourceOptions);
@overload
def ApmDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_free_tier: Optional[bool] = None)
@overload
def ApmDomain(resource_name: str,
args: ApmDomainArgs,
opts: Optional[ResourceOptions] = None)
func NewApmDomain(ctx *Context, name string, args ApmDomainArgs, opts ...ResourceOption) (*ApmDomain, error)
public ApmDomain(string name, ApmDomainArgs args, CustomResourceOptions? opts = null)
public ApmDomain(String name, ApmDomainArgs args)
public ApmDomain(String name, ApmDomainArgs args, CustomResourceOptions options)
type: oci:Apm:ApmDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApmDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApmDomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApmDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApmDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApmDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApmDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ApmDomain resource accepts the following input properties:
- Compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- Display
Name string (Updatable) Display name of the APM domain.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
(Updatable) Description of the APM domain.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Free boolTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- Display
Name string (Updatable) Display name of the APM domain.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
(Updatable) Description of the APM domain.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Free boolTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String (Updatable) The OCID of the compartment corresponding to the APM domain.
- display
Name String (Updatable) Display name of the APM domain.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
(Updatable) Description of the APM domain.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free BooleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- display
Name string (Updatable) Display name of the APM domain.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
(Updatable) Description of the APM domain.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free booleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str (Updatable) The OCID of the compartment corresponding to the APM domain.
- display_
name str (Updatable) Display name of the APM domain.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
(Updatable) Description of the APM domain.
- Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
free_ booltier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String (Updatable) The OCID of the compartment corresponding to the APM domain.
- display
Name String (Updatable) Display name of the APM domain.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
(Updatable) Description of the APM domain.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free BooleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the ApmDomain resource produces the following output properties:
- Data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- Id string
The provider-assigned unique ID for this managed resource.
- State string
The current lifecycle state of the APM domain.
- Time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- Data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- Id string
The provider-assigned unique ID for this managed resource.
- State string
The current lifecycle state of the APM domain.
- Time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- data
Upload StringEndpoint The endpoint where the APM agents upload their observations and metrics.
- id String
The provider-assigned unique ID for this managed resource.
- state String
The current lifecycle state of the APM domain.
- time
Created String The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated String The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- id string
The provider-assigned unique ID for this managed resource.
- state string
The current lifecycle state of the APM domain.
- time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- data_
upload_ strendpoint The endpoint where the APM agents upload their observations and metrics.
- id str
The provider-assigned unique ID for this managed resource.
- state str
The current lifecycle state of the APM domain.
- 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.
- data
Upload StringEndpoint The endpoint where the APM agents upload their observations and metrics.
- id String
The provider-assigned unique ID for this managed resource.
- state String
The current lifecycle state of the APM domain.
- time
Created String The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated String The time the APM domain was updated, expressed in RFC 3339 timestamp format.
Look up Existing ApmDomain Resource
Get an existing ApmDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApmDomainState, opts?: CustomResourceOptions): ApmDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
data_upload_endpoint: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_free_tier: Optional[bool] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ApmDomain
func GetApmDomain(ctx *Context, name string, id IDInput, state *ApmDomainState, opts ...ResourceOption) (*ApmDomain, error)
public static ApmDomain Get(string name, Input<string> id, ApmDomainState? state, CustomResourceOptions? opts = null)
public static ApmDomain get(String name, Output<String> id, ApmDomainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- Data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
(Updatable) Description of the APM domain.
- Display
Name string (Updatable) Display name of the APM domain.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Free boolTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
The current lifecycle state of the APM domain.
- Time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- Compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- Data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
(Updatable) Description of the APM domain.
- Display
Name string (Updatable) Display name of the APM domain.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Free boolTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
The current lifecycle state of the APM domain.
- Time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- Time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment
Id String (Updatable) The OCID of the compartment corresponding to the APM domain.
- data
Upload StringEndpoint The endpoint where the APM agents upload their observations and metrics.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
(Updatable) Description of the APM domain.
- display
Name String (Updatable) Display name of the APM domain.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free BooleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
The current lifecycle state of the APM domain.
- time
Created String The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated String The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment
Id string (Updatable) The OCID of the compartment corresponding to the APM domain.
- data
Upload stringEndpoint The endpoint where the APM agents upload their observations and metrics.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
(Updatable) Description of the APM domain.
- display
Name string (Updatable) Display name of the APM domain.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free booleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
The current lifecycle state of the APM domain.
- time
Created string The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated string The time the APM domain was updated, expressed in RFC 3339 timestamp format.
- compartment_
id str (Updatable) The OCID of the compartment corresponding to the APM domain.
- data_
upload_ strendpoint The endpoint where the APM agents upload their observations and metrics.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
(Updatable) Description of the APM domain.
- display_
name str (Updatable) Display name of the APM domain.
- Mapping[str, Any]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
free_ booltier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
The current lifecycle state of the APM domain.
- 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.
- compartment
Id String (Updatable) The OCID of the compartment corresponding to the APM domain.
- data
Upload StringEndpoint The endpoint where the APM agents upload their observations and metrics.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
(Updatable) Description of the APM domain.
- display
Name String (Updatable) Display name of the APM domain.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Free BooleanTier Indicates whether this is an "Always Free" resource. The default value is false.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
The current lifecycle state of the APM domain.
- time
Created String The time the APM domain was created, expressed in RFC 3339 timestamp format.
- time
Updated String The time the APM domain was updated, expressed in RFC 3339 timestamp format.
Import
ApmDomains can be imported using the id
, e.g.
$ pulumi import oci:Apm/apmDomain:ApmDomain test_apm_domain "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.