Deprecated
This API endpoint is deprecated. Use the Map IP addresses to locations schema instead.
Updates the configuration of mapping between IP addresses and geographic regions.
The request consumes an application/json payload.
| PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/geographicRegions/ipAddressMappings |
| PUT | Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/geographicRegions/ipAddressMappings |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Ip | The JSON body of the request. Contains the configuration of the IP address mapping. | body | Optional |
IpAddressMappings objectConfiguration of the IP address mappings to geographic locations.
| Element | Type | Description | Required |
|---|---|---|---|
| ipAddressMappingRules | Ip | A list of IP address mapping rules. Rules are evaluated from top to bottom; the first matching rule applies. | Optional |
IpAddressMappingRule objectConfiguration of the IP address mapping to the geographic location.
| Element | Type | Description | Required |
|---|---|---|---|
| ipAddressMappingLocation | Ip | The location for an IP address mapping. | Required |
| ipAddressRange | Ip | The IP address or the IP address range to be mapped to the location. | Required |
IpAddressMappingLocation objectThe location for an IP address mapping.
| Element | Type | Description | Required |
|---|---|---|---|
| city | string | The city name of the location. | Optional |
| countryCode | string | The country code of the location. To fetch the list of available country codes, use the GET all countries request. | Required |
| latitude | number | The latitude of the location in | Optional |
| longitude | number | The longitude of the location in | Optional |
| regionCode | string | The region code of the location. To fetch the list of available region codes, use the GET regions of the country request. | Optional |
IpAddressRange objectThe IP address or the IP address range to be mapped to the location.
| Element | Type | Description | Required |
|---|---|---|---|
| address | string | The IP address to be mapped. For an IP address range, this is the from address. | Required |
| addressTo | string | The to address of the IP address range. | Optional |
| subnetMask | integer | The subnet mask of the IP address range. | Optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"ipAddressMappingRules": [{"ipAddressMappingLocation": {"city": "string","countryCode": "string","latitude": 1,"longitude": 1,"regionCode": "string"},"ipAddressRange": {"address": "string","addressTo": "string","subnetMask": 1}}]}
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. The configuration has been updated. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/geographicRegions/ipAddressMappings/validator |
| POST | Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/geographicRegions/ipAddressMappings/validator |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. The submitted configuration is valid. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}