mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-21 18:51:41 +01:00
Document transform batch reference field (#12664)
This commit is contained in:
parent
4b5dc72ce3
commit
c55e6b936d
@ -934,11 +934,16 @@ This endpoint encodes the provided value using a named role.
|
|||||||
transformations with `supplied` as the tweak source. The tweak must be a
|
transformations with `supplied` as the tweak source. The tweak must be a
|
||||||
7-byte value that is then base64 encoded.
|
7-byte value that is then base64 encoded.
|
||||||
|
|
||||||
|
- `reference` `(string: "")` -
|
||||||
|
Only valid on batch requests using 'batch_input' below. A user supplied
|
||||||
|
string that will be present on the corresponding item in the batch
|
||||||
|
response, to assist in correlating inputs with outputs.
|
||||||
|
|
||||||
- `batch_input` `(array<object>: nil)` -
|
- `batch_input` `(array<object>: nil)` -
|
||||||
Specifies a list of items to be encoded in a single batch. When this
|
Specifies a list of items to be encoded in a single batch. When this
|
||||||
parameter is set, the 'value', 'transformation', 'ttl' and 'tweak' parameters are
|
parameter is set, the 'value', 'transformation', 'ttl', 'tweak' and
|
||||||
ignored. Instead, the aforementioned parameters should be provided within
|
'reference' parameters are ignored. Instead, the aforementioned parameters
|
||||||
each object in the list.
|
should be provided within each object in the list.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
@ -948,7 +953,8 @@ This endpoint encodes the provided value using a named role.
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "2222-2222-2222-2222",
|
"value": "2222-2222-2222-2222",
|
||||||
"transformation": "ccn-masking"
|
"transformation": "ccn-masking",
|
||||||
|
"reference": "order#1234"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "3333-3333-3333-3333",
|
"value": "3333-3333-3333-3333",
|
||||||
@ -1003,7 +1009,8 @@ $ curl \
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"transformation": "ccn-tokenization",
|
"transformation": "ccn-tokenization",
|
||||||
"value": "1111-2222-3333-4444"
|
"value": "1111-2222-3333-4444",
|
||||||
|
"reference": "order#1234"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1029,7 +1036,8 @@ $ curl \
|
|||||||
"encoded_value": "5682-4613-6822-8064"
|
"encoded_value": "5682-4613-6822-8064"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"encoded_value": "Q4tYgFXHxURXf9MLekG82L51vSAQrDnpAiaB37J4VPRxoQEB3fRpwR"
|
"encoded_value": "Q4tYgFXHxURXf9MLekG82L51vSAQrDnpAiaB37J4VPRxoQEB3fRpwR",
|
||||||
|
"reference": "order#1234"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1063,11 +1071,16 @@ This endpoint decodes the provided value using a named role.
|
|||||||
applicable for FPE transformations with `supplied` or `generated` as the tweak
|
applicable for FPE transformations with `supplied` or `generated` as the tweak
|
||||||
source. The tweak must be a 7-byte value that is then base64 encoded.
|
source. The tweak must be a 7-byte value that is then base64 encoded.
|
||||||
|
|
||||||
|
- `reference` `(string: "")` -
|
||||||
|
Only valid on batch requests using 'batch_input' below. A user supplied
|
||||||
|
string that will be present on the corresponding item in the batch
|
||||||
|
response, to assist in correlating inputs with outputs.
|
||||||
|
|
||||||
- `batch_input` `(array<object>: nil)` -
|
- `batch_input` `(array<object>: nil)` -
|
||||||
Specifies a list of items to be decoded in a single batch. When this
|
Specifies a list of items to be encoded in a single batch. When this
|
||||||
parameter is set, the 'value', 'transformation' and 'tweak' parameters are
|
parameter is set, the 'value', 'transformation', 'tweak' and
|
||||||
ignored. Instead, the aforementioned parameters should be provided within
|
'reference' parameters are ignored. Instead, the aforementioned parameters
|
||||||
each object in the list.
|
should be provided within each object in the list.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
@ -1114,7 +1127,8 @@ $ curl \
|
|||||||
"batch_input": [
|
"batch_input": [
|
||||||
{
|
{
|
||||||
"transformation": "ccn-fpe",
|
"transformation": "ccn-fpe",
|
||||||
"value": "5682-4613-6822-8064"
|
"value": "5682-4613-6822-8064",
|
||||||
|
"reference": "order#1234"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"transformation": "ccn-tokenization",
|
"transformation": "ccn-tokenization",
|
||||||
@ -1141,7 +1155,8 @@ $ curl \
|
|||||||
"data": {
|
"data": {
|
||||||
"batch_results": [
|
"batch_results": [
|
||||||
{
|
{
|
||||||
"encoded_value": "1111-2222-3333-4444"
|
"encoded_value": "1111-2222-3333-4444",
|
||||||
|
"reference": "order#1234"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"encoded_value": "1111-2222-3333-4444"
|
"encoded_value": "1111-2222-3333-4444"
|
||||||
@ -1175,11 +1190,16 @@ Only valid for tokenization transformations.
|
|||||||
may be skipped and will be inferred. If multiple transformations exist, one
|
may be skipped and will be inferred. If multiple transformations exist, one
|
||||||
must be specified.
|
must be specified.
|
||||||
|
|
||||||
|
- `reference` `(string: "")` -
|
||||||
|
Only valid on batch requests using 'batch_input' below. A user supplied
|
||||||
|
string that will be present on the corresponding item in the batch
|
||||||
|
response, to assist in correlating inputs with outputs.
|
||||||
|
|
||||||
- `batch_input` `(array<object>: nil)` -
|
- `batch_input` `(array<object>: nil)` -
|
||||||
Specifies a list of items to be decoded in a single batch. When this
|
Specifies a list of items to be validated in a single batch. When this
|
||||||
parameter is set, the 'value' parameter is
|
parameter is set, the 'value', 'transformation' and
|
||||||
ignored. Instead, the aforementioned parameters should be provided within
|
'reference' parameters are ignored. Instead, the aforementioned parameters
|
||||||
each object in the list.
|
should be provided within each object in the list.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
@ -1245,11 +1265,17 @@ transformations.
|
|||||||
may be skipped and will be inferred. If multiple transformations exist, one
|
may be skipped and will be inferred. If multiple transformations exist, one
|
||||||
must be specified.
|
must be specified.
|
||||||
|
|
||||||
|
- `reference` `(string: "")` -
|
||||||
|
Only valid on batch requests using 'batch_input' below. A user supplied
|
||||||
|
string that will be present on the corresponding item in the batch
|
||||||
|
response, to assist in correlating inputs with outputs.
|
||||||
|
|
||||||
- `batch_input` `(array<object>: nil)` -
|
- `batch_input` `(array<object>: nil)` -
|
||||||
Specifies a list of items to be decoded in a single batch. When this
|
Specifies a list of items to be decoded in a single batch. When this
|
||||||
parameter is set, the 'value' parameter is
|
parameter is set, the 'value', 'transformation', and 'reference' parameters are
|
||||||
ignored. Instead, the aforementioned parameters should be provided within
|
ignored. Instead, the aforementioned parameters should be provided within
|
||||||
each object in the list.
|
each object in the list. In addition, batched requests can add the 'reference'
|
||||||
|
field described above.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
@ -1313,11 +1339,17 @@ Only valid for tokenization transformations.
|
|||||||
may be skipped and will be inferred. If multiple transformations exist, one
|
may be skipped and will be inferred. If multiple transformations exist, one
|
||||||
must be specified.
|
must be specified.
|
||||||
|
|
||||||
|
- `reference` `(string: "")` -
|
||||||
|
Only valid on batch requests using 'batch_input' below. A user supplied
|
||||||
|
string that will be present on the corresponding item in the batch
|
||||||
|
response, to assist in correlating inputs with outputs.
|
||||||
|
|
||||||
- `batch_input` `(array<object>: nil)` -
|
- `batch_input` `(array<object>: nil)` -
|
||||||
Specifies a list of items to be decoded in a single batch. When this
|
Specifies a list of items to be decoded in a single batch. When this
|
||||||
parameter is set, the 'value' parameter is
|
parameter is set, the 'value' parameter is
|
||||||
ignored. Instead, the aforementioned parameters should be provided within
|
ignored. Instead, the aforementioned parameters should be provided within
|
||||||
each object in the list.
|
each object in the list. In addition, batched requests can add the 'reference'
|
||||||
|
field described above.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user