Search
K
Links

IP Address (IPAddressGenerator)

The IP Address generator generates a random string that is formatted as an IP address.
The IP Address generator does not support linking. It can be self-consistent or consistent with another column. You cannot configure differential privacy.
The metadata object is populated from the RatioMetadata object. The ratio field specifies, as a decimal value, the percentage of values to format as IPV4. The remaining values are formatted as IPV6.
{
"presetId": "string",
"generatorId": "IPAddressGenerator",
"schema": "string",
"table": "string",
"column": "string",
"dataType": "string" //MongoDB only
"metadata": {
"ratio": numeric,
"isConsistent": boolean,
"consistencyColumn": "string"
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}

Example replacement

In the following example replacement for the IP Address generator, 90% of the generated addresses are IPV4. Consistency is disabled.
{
"name": "ip",
"table": "servers",
"schema": "public",
"links": [
{
"presetId": "IPAddressGenerator",
"generatorId": "IPAddressGenerator",
"schema": "public",
"table": "servers",
"column": "ip",
"metadata": {
"ratio": 0.9,
"isConsistent": false
}
}
]
}