Skip to main content

ExportRtByDeepGraph

Schedules a job to export runtime model graph by providing RtId's and type as starting point. File is specified using -f argument. The file is downloaded in ZIP-format after job is finished.

Examples​

Basic usage:

octo-cli -c ExportRtByDeepGraph `
-f "./export.zip" `
-id "rtId1;rtId2;rtId3" `
-t "MyNamespace/MyType-1"

Export a data permission with its policies and granting roles:

octo-cli -c ExportRtByDeepGraph `
-f "./permission-export.zip" `
-id "rtId1" `
-t "System.Identity/DataPermission" `
-far "System.Identity/PolicyPermission:Inbound;System.Identity/GrantsPermission:Inbound"

Options​

ShortLongRequiredDescription
-f--fileyesFile to export
-id--runtime-identifiersyesA semicolon separated list of RtIds to be used as starting point.
-t--ckTypeIdyesThe construction kit type id to be used as starting point.
-far--follow-associationsnoOptional semicolon separated list of directed follow rules 'roleId:direction' the traversal applies (direction = Inbound or Outbound), e.g. 'System.Identity/PolicyPermission:Inbound;System.Identity/GrantsPermission:Inbound'. Default: hierarchical System/ParentChild traversal.

Notes​

The export runs with the data permissions of the caller: the job uses the identity and roles of the user who started it, so the file contains only what that user may read (a deep graph export also omits associations that point to entities the user may not read). A caller without identity gets 401 and no job is started.

Only the initiating subject may download the result (any other subject gets 403), and the download needs the tenant role TenantManagement - even for the initiator, otherwise the download fails with 403.

Attributes whose CK assignment declares access: Hidden are never exported (also not as a member of a record). MethodOnly values are exported, but an import refuses them (message 139), see Export and import.

Users (System.Identity/User) are exported without password and two-factor material, but since System.Identity 2.28.0 ImportRt refuses them (UserName and Email are MethodOnly). Leave them out of an export that is meant for ImportRt; see Moving Users to Another Tenant.