Get anonymizersv1.0.0 · JSON Schema
Returns the names of the built-in anonymization operators supported by Presidio Anonymizer.
1. List Built-In Anonymizer Operators
An internal diagnostic or configuration check queries the Presidio Anonymizer sidecar (GET /anonymizers) to verify supported transformation operators.
Payload details
- Response body: JSON array of built-in anonymizer operator names (
string[]).
Example response
["replace", "redact", "mask", "hash", "encrypt", "keep"]Using this example
Returns 200 OK with a JSON array of supported anonymizer operator names.
using BookWorm.Chassis.Utilities.Configurations;using BookWorm.Constants.Aspire;using Refit;
public interface IPresidioAnonymizerMetadata{ [Get("/anonymizers")] Task<string[]> GetAnonymizersAsync(CancellationToken cancellationToken = default);}
// DI registration following BookWorm.Chassis PresidioExtensions patternbuilder.Services .AddRefitGeneratedClient<IPresidioAnonymizerMetadata>( settings, Components.Presidio.Anonymizer ) .ConfigureHttpClient(client => client.BaseAddress = new(anonymizerConnectionString)) .ConfigurePrimaryHttpMessageHandler(() => new SocketsHttpHandler { PooledConnectionLifetime = TimeSpan.FromMinutes(5) } );
// Typed invocationstring[] operators = await anonymizerMetadata.GetAnonymizersAsync(cancellationToken);1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "GetAnonymizersResponse",
4 "description": "Built-in anonymization operator names supported by Presidio Anonymizer.",
5 "type": "array",
6 "items": { "type": "string" }
7}
8