resource import command

The resource import command imports resources from another installation of AS4 Microservice.

Usage notes

Use this command to import resources that you exported from another installation of AS4 Microservice by using the resource export command.

Environment

  • Windows 2008
  • Linux®

Authorization

Administrative user

Syntax

execute resource import <path_to_file>.xml [<--resource | -r "type1.resource1id type2.resource2_id"> | <--type | -t "type1 type2">] <--wait time | -w time>

Option descriptions

<path_to_file>.xml
The path to the file that contains the resource that you are importing.
type#.resource#id
Identifies a resource by using the type and ID information from the resource list command. You can use either --resource or -r with type#.resource#id.
type1 type2
Identifies a type by using the type information from the resource list command. You can use either --type or -t with type1 type2.
--wait and -w
enable you to wait a prescribed period of time for the result of the import operation. When this time is exceeded, you can retrieve the status and report with the resource status and resource retrieve commands. If --wait or -w is not used, the default value is 60 seconds. The parameters --wait and -w have the same usage.

Examples

Example: Importing resources from a particular file.
This command imports all resources from the file resource_export001a.xml:
execute resource import C:\B2BAC_resources\resource_export001a.xml
Submitting the import process with job ID: f065e40e-8ded-4598-ba29-249ca747d6fc
Time                           Type                 Status               Job ID

11/26/13 2:14 PM               IMPORT               SUCCESS              f065e40e-8ded-4598-ba29-249ca747d6fc