IRPCNamedValueStorage.SetNamedValues

View as Markdown

Vault API / standard write session idempotent returns metadata structure version

Creates or replaces the given named values in one namespace, optionally only if the current values are as expected.

ServiceNamed value storage MFiles.IRPCNamedValueStorage
gRPC method/MFiles.IRPCNamedValueStorage/SetNamedValues
HTTP (mf-http-grpc)POST /grpc/v1/set-named-values
RequestSetNamedValuesRequest
ResponseSetNamedValuesResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Request: SetNamedValuesRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
storage_typeNamedValueTypeThe storage type to write. See the table in the service overview.Values: NAMED_VALUE_TYPE_UNINITIALIZED (0), NAMED_VALUE_TYPE_PROPERTY_AUTOMATIC_NUMBERING (1), NAMED_VALUE_TYPE_VAULT_SHARED_VARIABLE (2), NAMED_VALUE_TYPE_METADATA_CONFIGURATION_VALUE (3), NAMED_VALUE_TYPE_USER_CONFIGURATION_VALUE (4), NAMED_VALUE_TYPE_REGISTRY_VALUE (5), NAMED_VALUE_TYPE_FOLDER_CONFIGURATION_VALUE (6), NAMED_VALUE_TYPE_ADMIN_CONFIGURATION_VALUE (7), NAMED_VALUE_TYPE_SYSTEM_CONFIGURATION_VALUE (8), NAMED_VALUE_TYPE_USER_SPECIFIC_VALUE (9).
namespace_namestringThe namespace, at most 100 characters.
values[]repeated NamedValueThe values to create or replace. Keys are at most 100 characters.
values[].keystringThe name of the value.
values[].valueTypedValueThe value as a serialized bytearray.
values[].value.is_null_valueboolTrue if the value is empty. data is then unset.
values[].value.typeDatatypeThe data type of the value.
values[].value.dataTypedValueUnionThe value, in the member that matches type. Unset for an empty value.
required_existing_value[]repeated NamedValueOptional. Values that must be current before the write, typically the values you read with GetNamedValues. A key with an empty value means "must not exist". On a mismatch the call fails with 0x800403F9 and nothing is written.
required_existing_value[].keystringThe name of the value.
required_existing_value[].valueTypedValueThe value as a serialized bytearray.
required_existing_value[].value.is_null_valueboolTrue if the value is empty. data is then unset.
required_existing_value[].value.typeDatatypeThe data type of the value.
required_existing_value[].value.dataTypedValueUnionThe value, in the member that matches type. Unset for an empty value.

Response: SetNamedValuesResponse

No fields.