Skip to main content Skip to complementary content

ExportTask

Export definitions from the selected task on the selected server. The definitions always include task settings, tables/table patterns (include/exclude), table settings and global transformations. The endpoint definition is only exported along with the task definition if with endpoints=true is set.

Required User Role: See Required Enterprise Manager permissions.

Syntax

public string ExportTask(

string server,

string task,

bool withendpoints = false

);

Parameters

Parameters
Parameter Type Description
server string The name of the server on which the task is defined.
task string The task to be exported.

withendpoints

bool

Whether or not to export the endpoint definitions as well.

Return values

Exported task JSON file as a string

Errors

Error responses
Error Message Description

AEM_METHOD_NOT_SUPPORTED_VERSION

AemExportTask is only supported on Replicate 5.5 or above.

AemExportTask is only supported on Replicate 5.5 or above.

AEM_EXPORT_TASK_NO_PERMISSION_ON_ENDPOINT

Failed to export task {task} from Replicate server {server} as the logged in user does not have permission to access one or both of the task's endpoints.

Export all cannot be carried out because the user does not have permissions on one or more endpoints.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!