Skip to content

Commit

Permalink
Document transform batch reference field (#12664)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed Sep 29, 2021
1 parent 4b5dc72 commit c55e6b9
Showing 1 changed file with 51 additions and 19 deletions.
70 changes: 51 additions & 19 deletions website/content/api-docs/secret/transform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
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)` -
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
ignored. Instead, the aforementioned parameters should be provided within
each object in the list.
parameter is set, the 'value', 'transformation', 'ttl', 'tweak' and
'reference' parameters are ignored. Instead, the aforementioned parameters
should be provided within each object in the list.

```json
[
Expand All @@ -948,7 +953,8 @@ This endpoint encodes the provided value using a named role.
},
{
"value": "2222-2222-2222-2222",
"transformation": "ccn-masking"
"transformation": "ccn-masking",
"reference": "order#1234"
},
{
"value": "3333-3333-3333-3333",
Expand Down Expand Up @@ -1003,7 +1009,8 @@ $ curl \
},
{
"transformation": "ccn-tokenization",
"value": "1111-2222-3333-4444"
"value": "1111-2222-3333-4444",
"reference": "order#1234"
}
]
}
Expand All @@ -1029,7 +1036,8 @@ $ curl \
"encoded_value": "5682-4613-6822-8064"
},
{
"encoded_value": "Q4tYgFXHxURXf9MLekG82L51vSAQrDnpAiaB37J4VPRxoQEB3fRpwR"
"encoded_value": "Q4tYgFXHxURXf9MLekG82L51vSAQrDnpAiaB37J4VPRxoQEB3fRpwR",
"reference": "order#1234"
}
]
}
Expand Down Expand Up @@ -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
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)` -
Specifies a list of items to be decoded in a single batch. When this
parameter is set, the 'value', 'transformation' and 'tweak' parameters are
ignored. Instead, the aforementioned parameters should be provided within
each object in the list.
Specifies a list of items to be encoded in a single batch. When this
parameter is set, the 'value', 'transformation', 'tweak' and
'reference' parameters are ignored. Instead, the aforementioned parameters
should be provided within each object in the list.

```json
[
Expand Down Expand Up @@ -1114,7 +1127,8 @@ $ curl \
"batch_input": [
{
"transformation": "ccn-fpe",
"value": "5682-4613-6822-8064"
"value": "5682-4613-6822-8064",
"reference": "order#1234"
},
{
"transformation": "ccn-tokenization",
Expand All @@ -1141,7 +1155,8 @@ $ curl \
"data": {
"batch_results": [
{
"encoded_value": "1111-2222-3333-4444"
"encoded_value": "1111-2222-3333-4444",
"reference": "order#1234"
},
{
"encoded_value": "1111-2222-3333-4444"
Expand Down Expand Up @@ -1175,11 +1190,16 @@ Only valid for tokenization transformations.
may be skipped and will be inferred. If multiple transformations exist, one
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)` -
Specifies a list of items to be decoded in a single batch. When this
parameter is set, the 'value' parameter is
ignored. Instead, the aforementioned parameters should be provided within
each object in the list.
Specifies a list of items to be validated in a single batch. When this
parameter is set, the 'value', 'transformation' and
'reference' parameters are ignored. Instead, the aforementioned parameters
should be provided within each object in the list.

```json
[
Expand Down Expand Up @@ -1245,11 +1265,17 @@ transformations.
may be skipped and will be inferred. If multiple transformations exist, one
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)` -
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
each object in the list.
each object in the list. In addition, batched requests can add the 'reference'
field described above.

```json
[
Expand Down Expand Up @@ -1313,11 +1339,17 @@ Only valid for tokenization transformations.
may be skipped and will be inferred. If multiple transformations exist, one
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)` -
Specifies a list of items to be decoded in a single batch. When this
parameter is set, the 'value' parameter is
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
[
Expand Down

0 comments on commit c55e6b9

Please sign in to comment.