Prompts or full JSON bodies may be submitted to the selected Model Armor resource
Source references: 4The command gives `--text`, `--json`, or standard input to a Model Armor resource identified by project, location, and template. The supplied material does not state retention, logging, region, or which identity receives access.
If the input contains secrets, personal data, internal instructions, or customer content, that data may enter the configured Google service project and its logging or governance boundary.
When the command is run with `--text`, `--json`, or stdin, that content is processed by the Model Armor template named by `--template`. Confidential, personal, or account data could therefore be exposed to that Google Cloud resource and its logging or retention controls; the supplied source does not specify region, retention, or who can access it. Before sending sensitive input, the user can require those details and restrict the permitted template project and input types.
|------|----------|---------|-------------|| `--template` | ✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) || `--text` | — | — | Text content to sanitize || `--json` | — | — | Full JSON request body (overrides --text) |Show 3 other places
```bashgws modelarmor +sanitize-prompt --template projects/P/locations/L/templates/T --text 'user input'echo 'prompt' | gws modelarmor +sanitize-prompt --template ...```- If neither --text nor --json is given, reads from stdin.- For outbound safety, use +sanitize-response instead.```bashgws modelarmor +sanitize-prompt --template <NAME>```