Nav

To Add an Asset to Exchange

  1. In Exchange, click New.

    Note: If this button is grayed out, in Anypoint Platform, click Access Management > Roles, and ensure your username is a member of Exchange Contributors or Exchange Administrators.

  2. In Creating An Asset:

    • Name — Specify the asset’s name.

    • Asset Type — Specify an OAS, WSDL, or Custom asset type. For information on each choice, click ex2-icon-info.

    • File Upload — You can upload these file types:

      • OAS — OAS specifications must be named index.json or index.yaml, and must be compressed into a .zip file.

      • WSDL — Upload a .wsdl or .zip file.

      • Custom — (Optional) Text file content appears in the description. All other file types upload, but no indication appears in the description. Users can only know what was uploaded if they click Download to copy the file to their computer. If you upload non-text files, list the files so users know files are available to download.

    • Advanced:

      • GroupId — Unique group ID value that identifies the path between business groups and sub business groups. This value is populated automatically. An example value is:
        4254bad4-fad2-acc4-abcd-fee-d00ff0014.business-group.sub-business-group

      • AssetId — When you complete the name, AssetId auto completes with same string - you can edit the ID and set a different string.

      • Version — Current asset’s version. This is a string value that must be in the format: major.minor.patch, such as 1.2.3.

All fields are required except File Upload for a Custom asset type.

To Create Assets for a Connector, Example, or Template

  1. In Anypoint Studio 6.2.5, when you create your Mule project (File > New > Mule Project), click Use Maven in the create project menu. If Maven is not configured in Studio, use the prompts to locate the Maven folder and click Test Maven Configuration. If Maven is not on your computer, first download it from the Apache Maven Project and after installing test the configuration.

  2. Create the connector, example, or template.

  3. Right-click the project name in Package Explorer and click Anypoint Platform > Publish to Exchange.

  4. Studio prompts you for your Anypoint Platform username and password, or click Configure to specify an external identity provider such as OAuth and the organization’s domain.

  5. In the Publish to Exchange menu:

    1. Specify the Project Type, which can be an app, example, or template.

    2. If needed, specify an alternate name for the asset you are creating. Note: If an asset of the same name and version in your organization already exists in Exchange, the publish fails.

  6. After setting all fields as required, click Finish.

  7. You can then view the asset in Anypoint Exchange.

To Create an Asset for a RAML

To add a RAML specification, see To Upload an Existing RAML File to Exchange. See also raml.org.

Note: If you are importing a zip file, all the files must be at root level in the folder. Files nested in sub folders can’t be imported.

To Complete Adding an Asset in Exchange

After creating an asset, Exchange moves control to the content portal.

  • To change the name of the asset, click the pencil icon ex2-edit-pencil-icon.

    Type a new name, and press the Return or Enter key on your keyboard to store the name.

  • To add a description to your asset, click Edit ex2-edit-pencil-icon. See To Use the Editor.

  • To share your asset with another person in your organization, click Share and see To Share an Asset.

  • To download your asset, click Download and see To Download an Asset.

  • To change the version of your asset, click Add New Version and see To Add a New Version.

  • To add tags, click + Add A Tag and see To Add Tags.

To Add Assets Using Business Groups

Anypoint Platform supports multiple business groups that you can use in Exchange. Any asset you add to a business group is available to other groups in your organization if you give permission for users to access the asset. However you cannot add assets between organizations or between business groups in different organizations.

To view business groups, click your organization name in the Exchange task bar. You can click other business groups in your organization to access each.

To add a business group, use Access Management > Organization. Click the plus sign next to a business group name to add a new business group.

To Increment the Version Number in Exchange

After creating or importing your asset to Exchange, you can increment the version number by clicking Add new version.

The Creating An Asset menu opens.

Important:

  • If this is not a Custom asset, upload a new file for a new version.

  • A new version requires a new description.

  • If the new version doesn’t display, refresh the browser page.

To Delete an Asset

  1. Click the Settings icon at the upper right:

    ex2-delete-asset

  2. Click Delete Asset.

  3. In the prompt to be sure you want to delete, click Delete Asset. You can click Keep to exit the delete prompt and keep the asset.

Important:

  • Only the Asset Administrator or Exchange Administrator roles can delete an asset in the first 24 hours after its creation.

  • The delete action checks for any assets that are dependent on the asset being deleted and displays a warning to prevent assets from being deleted unless all the dependencies are removed.