Resource: KeyList
A KeyList is a named list of blockchain addresses that transaction policies can reference, for example as a list of trusted destinations.
Each entry is a Key, a KeyRing, or a manually entered address. A KeyRing entry covers every Key in the KeyRing, including Keys created after the entry was added.
Entries are changed only with keyLists.addEntries and keyLists.removeEntries.
| JSON representation |
|---|
{
"name": string,
"displayName": string,
"description": string,
"entries": [
{
object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the KeyList. Format: projects/{project}/locations/{location}/instances/{instance}/keyLists/{keyList} |
displayName |
Optional. User-assigned display name for the KeyList. |
description |
Optional. User-provided description of the KeyList. |
entries[] |
Optional. The entries in the KeyList. Can be set when the KeyList is created; after that, change them with |
createTime |
Output only. The time at which the KeyList was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time at which the KeyList was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
uid |
Output only. The unique server-generated identifier of the KeyList. |
Entry
One entry in a KeyList.
| JSON representation |
|---|
{
"addTime": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"manualEntry": {
object ( |
| Fields | |
|---|---|
addTime |
Output only. The time at which the entry was added to the KeyList. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
| What the entry refers to. Exactly one must be set. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
manualEntry |
A manually entered address, typically one not managed by this instance. |
keyRing |
The resource name of a KeyRing in the same instance. Covers every Key in the KeyRing. Format: projects/{project}/locations/{location}/instances/{instance}/keyRings/{keyRing} |
key |
The resource name of a Key in the same instance. Format: projects/{project}/locations/{location}/instances/{instance}/keyRings/{keyRing}/keys/{key} |
| End of mutually exclusive fields. | |
ManualEntry
A manually entered blockchain address.
| JSON representation |
|---|
{ "address": string, "source": string, "reason": string } |
| Fields | |
|---|---|
address |
Required. The blockchain address, in the chain's usual text form (for example, a |
source |
Optional. Where the address came from, for example the name of an exchange or an internal ticket. |
reason |
Optional. Why the address is in the KeyList. |
Methods |
|
|---|---|
|
Adds entries to a KeyList and returns the updated KeyList. |
|
Creates a new KeyList in an instance. |
|
Deletes a KeyList. |
|
Gets details of a single KeyList. |
|
Lists KeyLists in an instance. |
|
Removes entries from a KeyList and returns the updated KeyList. |