dynatrace.WebAppIpAddressExclusion
Explore with Pulumi AI
Configuration overlaps with dynatrace_web_application.
This resource requires the API token scopes Read settings (
settings.read
) and Write settings (settings.write
)
Dynatrace Documentation
Exclude IP addresses, browsers, bots, and spiders from monitoring for web applications - https://docs.dynatrace.com/docs/shortlink/rum-exclude-bots
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:rum.web.ipaddress-exclusion
)
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const _name_ = new dynatrace.WebAppIpAddressExclusion("#name#", {
applicationId: "APPLICATION-1234567890000000",
ipAddressExclusionInclude: false,
ipExclusionList: {
ipExclusions: [
{
ip: "192.168.1.5",
},
{
ip: "10.0.0.1",
ipTo: "10.0.0.5",
},
],
},
});
import pulumi
import pulumiverse_dynatrace as dynatrace
_name_ = dynatrace.WebAppIpAddressExclusion("#name#",
application_id="APPLICATION-1234567890000000",
ip_address_exclusion_include=False,
ip_exclusion_list={
"ip_exclusions": [
{
"ip": "192.168.1.5",
},
{
"ip": "10.0.0.1",
"ip_to": "10.0.0.5",
},
],
})
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.NewWebAppIpAddressExclusion(ctx, "#name#", &dynatrace.WebAppIpAddressExclusionArgs{
ApplicationId: pulumi.String("APPLICATION-1234567890000000"),
IpAddressExclusionInclude: pulumi.Bool(false),
IpExclusionList: &dynatrace.WebAppIpAddressExclusionIpExclusionListArgs{
IpExclusions: dynatrace.WebAppIpAddressExclusionIpExclusionListIpExclusionArray{
&dynatrace.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs{
Ip: pulumi.String("192.168.1.5"),
},
&dynatrace.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs{
Ip: pulumi.String("10.0.0.1"),
IpTo: pulumi.String("10.0.0.5"),
},
},
},
})
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.WebAppIpAddressExclusion("#name#", new()
{
ApplicationId = "APPLICATION-1234567890000000",
IpAddressExclusionInclude = false,
IpExclusionList = new Dynatrace.Inputs.WebAppIpAddressExclusionIpExclusionListArgs
{
IpExclusions = new[]
{
new Dynatrace.Inputs.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs
{
Ip = "192.168.1.5",
},
new Dynatrace.Inputs.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs
{
Ip = "10.0.0.1",
IpTo = "10.0.0.5",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.WebAppIpAddressExclusion;
import com.pulumi.dynatrace.WebAppIpAddressExclusionArgs;
import com.pulumi.dynatrace.inputs.WebAppIpAddressExclusionIpExclusionListArgs;
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 WebAppIpAddressExclusion("#name#", WebAppIpAddressExclusionArgs.builder()
.applicationId("APPLICATION-1234567890000000")
.ipAddressExclusionInclude(false)
.ipExclusionList(WebAppIpAddressExclusionIpExclusionListArgs.builder()
.ipExclusions(
WebAppIpAddressExclusionIpExclusionListIpExclusionArgs.builder()
.ip("192.168.1.5")
.build(),
WebAppIpAddressExclusionIpExclusionListIpExclusionArgs.builder()
.ip("10.0.0.1")
.ipTo("10.0.0.5")
.build())
.build())
.build());
}
}
resources:
'#name#':
type: dynatrace:WebAppIpAddressExclusion
properties:
applicationId: APPLICATION-1234567890000000
ipAddressExclusionInclude: false
ipExclusionList:
ipExclusions:
- ip: 192.168.1.5
- ip: 10.0.0.1
ipTo: 10.0.0.5
Create WebAppIpAddressExclusion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebAppIpAddressExclusion(name: string, args: WebAppIpAddressExclusionArgs, opts?: CustomResourceOptions);
@overload
def WebAppIpAddressExclusion(resource_name: str,
args: WebAppIpAddressExclusionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebAppIpAddressExclusion(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
ip_address_exclusion_include: Optional[bool] = None,
ip_exclusion_list: Optional[WebAppIpAddressExclusionIpExclusionListArgs] = None)
func NewWebAppIpAddressExclusion(ctx *Context, name string, args WebAppIpAddressExclusionArgs, opts ...ResourceOption) (*WebAppIpAddressExclusion, error)
public WebAppIpAddressExclusion(string name, WebAppIpAddressExclusionArgs args, CustomResourceOptions? opts = null)
public WebAppIpAddressExclusion(String name, WebAppIpAddressExclusionArgs args)
public WebAppIpAddressExclusion(String name, WebAppIpAddressExclusionArgs args, CustomResourceOptions options)
type: dynatrace:WebAppIpAddressExclusion
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 WebAppIpAddressExclusionArgs
- 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 WebAppIpAddressExclusionArgs
- 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 WebAppIpAddressExclusionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebAppIpAddressExclusionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebAppIpAddressExclusionArgs
- 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 webAppIpAddressExclusionResource = new Dynatrace.WebAppIpAddressExclusion("webAppIpAddressExclusionResource", new()
{
ApplicationId = "string",
IpAddressExclusionInclude = false,
IpExclusionList = new Dynatrace.Inputs.WebAppIpAddressExclusionIpExclusionListArgs
{
IpExclusions = new[]
{
new Dynatrace.Inputs.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs
{
Ip = "string",
IpTo = "string",
},
},
},
});
example, err := dynatrace.NewWebAppIpAddressExclusion(ctx, "webAppIpAddressExclusionResource", &dynatrace.WebAppIpAddressExclusionArgs{
ApplicationId: pulumi.String("string"),
IpAddressExclusionInclude: pulumi.Bool(false),
IpExclusionList: &dynatrace.WebAppIpAddressExclusionIpExclusionListArgs{
IpExclusions: dynatrace.WebAppIpAddressExclusionIpExclusionListIpExclusionArray{
&dynatrace.WebAppIpAddressExclusionIpExclusionListIpExclusionArgs{
Ip: pulumi.String("string"),
IpTo: pulumi.String("string"),
},
},
},
})
var webAppIpAddressExclusionResource = new WebAppIpAddressExclusion("webAppIpAddressExclusionResource", WebAppIpAddressExclusionArgs.builder()
.applicationId("string")
.ipAddressExclusionInclude(false)
.ipExclusionList(WebAppIpAddressExclusionIpExclusionListArgs.builder()
.ipExclusions(WebAppIpAddressExclusionIpExclusionListIpExclusionArgs.builder()
.ip("string")
.ipTo("string")
.build())
.build())
.build());
web_app_ip_address_exclusion_resource = dynatrace.WebAppIpAddressExclusion("webAppIpAddressExclusionResource",
application_id="string",
ip_address_exclusion_include=False,
ip_exclusion_list={
"ip_exclusions": [{
"ip": "string",
"ip_to": "string",
}],
})
const webAppIpAddressExclusionResource = new dynatrace.WebAppIpAddressExclusion("webAppIpAddressExclusionResource", {
applicationId: "string",
ipAddressExclusionInclude: false,
ipExclusionList: {
ipExclusions: [{
ip: "string",
ipTo: "string",
}],
},
});
type: dynatrace:WebAppIpAddressExclusion
properties:
applicationId: string
ipAddressExclusionInclude: false
ipExclusionList:
ipExclusions:
- ip: string
ipTo: string
WebAppIpAddressExclusion 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 WebAppIpAddressExclusion resource accepts the following input properties:
- Application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Ip
Address boolExclusion Include - These are the only IP addresses that should be monitored
- Ip
Exclusion Pulumiverse.List Dynatrace. Inputs. Web App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- Application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Ip
Address boolExclusion Include - These are the only IP addresses that should be monitored
- Ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List Args - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address BooleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address booleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip_
address_ boolexclusion_ include - These are the only IP addresses that should be monitored
- ip_
exclusion_ Weblist App Ip Address Exclusion Ip Exclusion List Args - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address BooleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion Property MapList - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
Outputs
All input properties are implicitly available as output properties. Additionally, the WebAppIpAddressExclusion 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 WebAppIpAddressExclusion Resource
Get an existing WebAppIpAddressExclusion 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?: WebAppIpAddressExclusionState, opts?: CustomResourceOptions): WebAppIpAddressExclusion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
ip_address_exclusion_include: Optional[bool] = None,
ip_exclusion_list: Optional[WebAppIpAddressExclusionIpExclusionListArgs] = None) -> WebAppIpAddressExclusion
func GetWebAppIpAddressExclusion(ctx *Context, name string, id IDInput, state *WebAppIpAddressExclusionState, opts ...ResourceOption) (*WebAppIpAddressExclusion, error)
public static WebAppIpAddressExclusion Get(string name, Input<string> id, WebAppIpAddressExclusionState? state, CustomResourceOptions? opts = null)
public static WebAppIpAddressExclusion get(String name, Output<String> id, WebAppIpAddressExclusionState state, CustomResourceOptions options)
resources: _: type: dynatrace:WebAppIpAddressExclusion 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.
- Application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Ip
Address boolExclusion Include - These are the only IP addresses that should be monitored
- Ip
Exclusion Pulumiverse.List Dynatrace. Inputs. Web App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- Application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Ip
Address boolExclusion Include - These are the only IP addresses that should be monitored
- Ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List Args - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address BooleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address booleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion WebList App Ip Address Exclusion Ip Exclusion List - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip_
address_ boolexclusion_ include - These are the only IP addresses that should be monitored
- ip_
exclusion_ Weblist App Ip Address Exclusion Ip Exclusion List Args - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
- application
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- ip
Address BooleanExclusion Include - These are the only IP addresses that should be monitored
- ip
Exclusion Property MapList - Examples: - 84.112.10.5 - fe80::10a1:c6b2:5f68:785d
Supporting Types
WebAppIpAddressExclusionIpExclusionList, WebAppIpAddressExclusionIpExclusionListArgs
WebAppIpAddressExclusionIpExclusionListIpExclusion, WebAppIpAddressExclusionIpExclusionListIpExclusionArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.