dynatrace.EndpointDetectionRulesOptin
Explore with Pulumi AI
This resource requires the API token scopes Read settings (
settings.read
) and Write settings (settings.write
)
Dynatrace Documentation
Customize endpoint detection in Service Detection v2 - https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/service-detection-v2/endpoint-detection-v2
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:endpoint-detection-rules-opt-in
)
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const _name_ = new dynatrace.EndpointDetectionRulesOptin("#name#", {enabled: true});
import pulumi
import pulumiverse_dynatrace as dynatrace
_name_ = dynatrace.EndpointDetectionRulesOptin("#name#", enabled=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dynatrace.NewEndpointDetectionRulesOptin(ctx, "#name#", &dynatrace.EndpointDetectionRulesOptinArgs{
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var _name_ = new Dynatrace.EndpointDetectionRulesOptin("#name#", new()
{
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.EndpointDetectionRulesOptin;
import com.pulumi.dynatrace.EndpointDetectionRulesOptinArgs;
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 _name_ = new EndpointDetectionRulesOptin("#name#", EndpointDetectionRulesOptinArgs.builder()
.enabled(true)
.build());
}
}
resources:
'#name#':
type: dynatrace:EndpointDetectionRulesOptin
properties:
enabled: true
Create EndpointDetectionRulesOptin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointDetectionRulesOptin(name: string, args: EndpointDetectionRulesOptinArgs, opts?: CustomResourceOptions);
@overload
def EndpointDetectionRulesOptin(resource_name: str,
args: EndpointDetectionRulesOptinArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointDetectionRulesOptin(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None)
func NewEndpointDetectionRulesOptin(ctx *Context, name string, args EndpointDetectionRulesOptinArgs, opts ...ResourceOption) (*EndpointDetectionRulesOptin, error)
public EndpointDetectionRulesOptin(string name, EndpointDetectionRulesOptinArgs args, CustomResourceOptions? opts = null)
public EndpointDetectionRulesOptin(String name, EndpointDetectionRulesOptinArgs args)
public EndpointDetectionRulesOptin(String name, EndpointDetectionRulesOptinArgs args, CustomResourceOptions options)
type: dynatrace:EndpointDetectionRulesOptin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointDetectionRulesOptinArgs
- 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 EndpointDetectionRulesOptinArgs
- 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 EndpointDetectionRulesOptinArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointDetectionRulesOptinArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointDetectionRulesOptinArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var endpointDetectionRulesOptinResource = new Dynatrace.EndpointDetectionRulesOptin("endpointDetectionRulesOptinResource", new()
{
Enabled = false,
});
example, err := dynatrace.NewEndpointDetectionRulesOptin(ctx, "endpointDetectionRulesOptinResource", &dynatrace.EndpointDetectionRulesOptinArgs{
Enabled: pulumi.Bool(false),
})
var endpointDetectionRulesOptinResource = new EndpointDetectionRulesOptin("endpointDetectionRulesOptinResource", EndpointDetectionRulesOptinArgs.builder()
.enabled(false)
.build());
endpoint_detection_rules_optin_resource = dynatrace.EndpointDetectionRulesOptin("endpointDetectionRulesOptinResource", enabled=False)
const endpointDetectionRulesOptinResource = new dynatrace.EndpointDetectionRulesOptin("endpointDetectionRulesOptinResource", {enabled: false});
type: dynatrace:EndpointDetectionRulesOptin
properties:
enabled: false
EndpointDetectionRulesOptin Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EndpointDetectionRulesOptin resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true
) or disabled (false
)
- Enabled bool
- This setting is enabled (
true
) or disabled (false
)
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
)
- enabled boolean
- This setting is enabled (
true
) or disabled (false
)
- enabled bool
- This setting is enabled (
true
) or disabled (false
)
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
)
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointDetectionRulesOptin resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EndpointDetectionRulesOptin Resource
Get an existing EndpointDetectionRulesOptin 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?: EndpointDetectionRulesOptinState, opts?: CustomResourceOptions): EndpointDetectionRulesOptin
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None) -> EndpointDetectionRulesOptin
func GetEndpointDetectionRulesOptin(ctx *Context, name string, id IDInput, state *EndpointDetectionRulesOptinState, opts ...ResourceOption) (*EndpointDetectionRulesOptin, error)
public static EndpointDetectionRulesOptin Get(string name, Input<string> id, EndpointDetectionRulesOptinState? state, CustomResourceOptions? opts = null)
public static EndpointDetectionRulesOptin get(String name, Output<String> id, EndpointDetectionRulesOptinState state, CustomResourceOptions options)
resources: _: type: dynatrace:EndpointDetectionRulesOptin get: id: ${id}
- 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.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
)
- Enabled bool
- This setting is enabled (
true
) or disabled (false
)
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
)
- enabled boolean
- This setting is enabled (
true
) or disabled (false
)
- enabled bool
- This setting is enabled (
true
) or disabled (false
)
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
)
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.