import_all
Import the JSON definitions provided in the request body into the requested server repository on the selected server. The ApiImportAll method uses "merge" semantics. In particular, all valid JSON definitions provided in the request body will be imported.
This includes server settings, task settings, endpoints, and other definitions.
Items that existed in the target server before the import and have no new JSON definition in the request body will not be modified and will not be removed. This means that ApiImportAll provides no way of removing old definitions that are no longer needed.
Required User Role: See Required Enterprise Manager permissions.
Syntax
def import_all(
self,
payload,
server
)
Parameters
Parameter | Type | Description |
---|---|---|
payload |
string |
A JSON document to import. |
server | string | The name of the server to import to. |
Return values
N/A
Errors
Error | Message | Description |
---|---|---|
AEM_METHOD_NOT_SUPPORTED_VERSION |
AemImportAll is only supported on Replicate 5.2 or above. |
The method requires Replicate 5.2 or above. |
AEM_IMPORT_NO_PERMISSION_ON_TASK |
Failed to import all tasks to replication server {server} as the logged in user does not have permission to add tasks. |
Stream cannot be imported because the user does not have the permissions to add tasks. |
AEM_IMPORT_NO_PERMISSION_ON_ENDPOINT |
Failed to import all tasks to replication server {server} as the logged in user does not have permission to add endpoints. |
Stream cannot be imported because the user does not have the permissions to add endpoints. |
AEM_IMPORT_CONTENT_EMPTY |
Failed to import all tasks to replication server {server} as the JSON file is empty. |
Stream cannot be imported because it contains no content. |
AEM_IMPORT_INVALID_CONTENT |
Failed to import all tasks to replication server {server} as the JSON file contains invalid content. |
Stream cannot be imported because it contains invalid content. |