IRPCObjectOperations.MigrateObject

View as Markdown

Vault API / core write session or assertion returns metadata structure version

Migrates a promoted object. Requires full control of the vault; used by migration tools.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/MigrateObject
HTTP (mf-http-grpc)POST /grpc/v1/migrate-object
RequestMigrateObjectRequest
ResponseMigrateObjectResponse
Book and levelVault API, core
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Request: MigrateObjectRequest

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

FieldTypeDescription
paramsMigrateObjectParamsParameters.
params.obj_idObjIDThe object to migrate.
params.obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
params.obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
params.set_properties[]repeated PropertyValueThe properties to add/replace.
params.set_properties[].property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
params.set_properties[].valueTypedValueThe value. Its type must match the data type of the property definition.
params.source_object_policyMigrationSourceObjectPolicySpecifies what is done to the source object after the migration.Values: MIGRATION_SOURCE_OBJECT_POLICY_UNSPECIFIED (0), MIGRATION_SOURCE_OBJECT_POLICY_KEEP (1), MIGRATION_SOURCE_OBJECT_POLICY_DELETE (2), MIGRATION_SOURCE_OBJECT_POLICY_DESTROY (3).

Response: MigrateObjectResponse

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

FieldTypeDescription
object_infoMigratedObjectInfoResults.
object_info.object_infoExtObjectInfoExtended object information.
object_info.object_info.is_visibleboolTrue if any version of the object is visible to the caller.
object_info.object_info.object_infoObjectLevelInfoObject-level information, if is_visible is true.
object_info.object_info.is_latest_version_visibleboolTrue if the latest version of the object is visible to the caller.
object_info.object_info.latest_versionObjectVersionExWPThe latest version of the object with its properties and ACL, if is_latest_version_visible is true. Some methods (for example UndoCheckout) return it without property values.
object_info.object_info.original_obj_verObjVerThe object version the request named, as sent. The version part may be unset.
object_info.is_migration_source_object_policy_fulfilledboolTrue if the source object policy has been fulfilled after the migration.
object_info.error_codeint32Holds an error code if IsMigrationSourceObjectPolicyFulfilled = false.