Environment management API - PUT IP allowlist configuration

Preview Latest Dynatrace

Creates an IP allowlist configuration for a specific environment.

The request produces an application/json payload.

GET

https://api.dynatrace.com/env/v1/accounts/environments/{environmentUuid}/ip-allowlist

Authentication

To execute this request, you need the Allow read access for environment resources (account-env-read) scope assigned to your token. To learn how to obtain and use it, see Authentication.

Parameters

ParameterTypeDescriptionInRequired
accountUuidstring-pathrequired
environmentUuidstring-pathrequired
bodyIpConfigDto

The body of the request. Contains the key and serialized value for setting a ip config for a specific tenant on a specific cluster.

bodyrequired

Request body objects

The IpConfigDto object

ElementTypeDescriptionRequired
enabledboolean

If enabled the ip config allow list gets applied.

required
allowlistAllowlistItem[]

Contains a list of valid IP addresses in CIDR format which are allowed. If enabled it must not be empty.

optional

The AllowlistItem object

ElementTypeDescriptionRequired
namestring

The name of the list.

required
ipRangestring

One ip address or the range of ip addresses. Supports the CIDR format.

required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"enabled": true,
"allowlist": [
{
"name": "Some IP-range",
"ipRange": "10.0.0.0/32"
}
]
}

Response

Response codes

CodeDescription
201

Success. The IP configuration has been successfully set.