Lockbox API, gRPC: PayloadService.Get
Статья создана
Обновлена 26 ноября 2024 г.
Returns the payload of the specified secret.
To get the list of all available secrets, make a SecretService.List request.
gRPC request
rpc Get (GetPayloadRequest) returns (Payload)
GetPayloadRequest
{
"secret_id": "string",
"version_id": "string"
}
Field |
Description |
secret_id |
string Required field. ID of the secret. |
version_id |
string Optional ID of the version. |
Payload
{
"version_id": "string",
"entries": [
{
"key": "string",
// Includes only one of the fields `text_value`, `binary_value`
"text_value": "string",
"binary_value": "bytes"
// end of the list of possible fields
}
]
}
A payload.
Field |
Description |
version_id |
string ID of the version that the payload belongs to. |
entries[] |
Payload entries. |
Entry
Field |
Description |
key |
string Non-confidential key of the entry. |
text_value |
string Text value. Includes only one of the fields Confidential value of the entry. |
binary_value |
bytes Binary value. Includes only one of the fields Confidential value of the entry. |