Skip to main content

SetNamedValues

Stores the named values to the vault.

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.NamedValueStorageOperations.SetNamedValues({
storage_type: 9 /* Enum: NamedValueType */,
namespace_name: "<namespace name>",
values: [] /* Array of NamedValue */,
required_existing_value: [] /* Array of NamedValue */,
});

Message

NameDescriptionType
storage_typeThe named value type to set.NamedValueType
namespace_nameThe namespace into which the values belong.string
valuesThe named values to set, as a NamedValueArray.NamedValue[]
required_existing_valueValues that must already exist in the vault for the operation to proceed. If the vault contains an unexpected value, an update conflict error is raised.NamedValue[]

Return type

NameDescriptionType

Example

{}