Manage resources

This pageapplies toApigee andApigee hybrid.

View Apigee Edge documentation.

Many policy types rely on resources. Resources are the files that implement the code or configuration to be executed by a policy when attached to an API proxy or shared flow. For more information, examples of resources, and a list of supported resource types, seeAbout resources.

Create resources at the API proxy, shared flow, or environment level and then access them from the policy, as described in the following sections. See alsoManage folders and files in an Apigee workspace.

Create a resource

To create a resource using Apigee in Cloud Code:

  1. In your Apigee workspace, perform one of the following actions based on the level at which you want to store the resource. For more information, seeWhere resources are stored.

    LevelStep
    API proxyPerform one of the following actions:
    • Position your cursor over one of the following folders, clickCreate Apigee resource icon, and selectCreate resource:
      • apiproxy-name proxy bundle
      • apiproxy-name/apiproxy
    • Position your cursor over theapiproxy-name/apiproxy/resources folder for the API proxy and clickCreate Apigee resource icon.
    Shared flowPerform one of the following actions:
    • Position your cursor over one of the following folders, clickCreate Apigee resource icon, and selectCreate resource:
      • sharedflow-name shared flow bundle
      • sharedflow-name/sharedflowbundle
    • Position your cursor over thesharedflow-name/sharedflowbundle/resources folder for the shared flow and clickCreate Apigee resource icon.
    EnvironmentPerform one of the following actions:
    • Position your cursor over theenv-name environment folder, clickCreate new policy icon, and selectCreate resource.
    • Position your cursor over theenv-name/resources folder for the environment and clickCreate new policy icon.

    TheCreate resource wizard opens.

  2. Select the resource type that you want to create from the list.For a description of the resource types supported, seeResource types.

    Note: You mustimport JAR files.
  3. Enter a unique name for the resource and pressEnter.Note: Don't specify the file extension. An extension will be appended automatically based on the resource type.

    The resource is added to theresources folder in theapiproxies,sharedflows, orenvironments folder in the Apigee section and opened for editing.

  4. Edit the resource file, as required, and selectFile > Save or ⌘S to save your edits.

Import a resource

To import a resource using Apigee in Cloud Code:

  1. In your Apigee workspace, perform one of the following actions based on the level at which you want to use the resource. For more information, seeWhere resources are stored.

    LevelStep
    API proxyPerform one of the following actions:
    • Position your cursor over theapiproxy-name/apiproxy folder and clickUpload Apigee resource icon.
    • Position your cursor over theapiproxy-name/apiproxy/resources folder for the API proxy and clickUpload Apigee resource icon.
    Shared flowPerform one of the following actions:
    • Position your cursor over thesharedflow-name/sharedflowbundle folder and clickUpload Apigee resource icon.
    • Position your cursor over thesharedflow-name/sharedflowbundle/resources folder for the shared flow and clickUpload Apigee resource icon.
    EnvironmentPerform one of the following actions:
    • Position your cursor over theenv-name environment folder and clickUpload Apigee resource icon.
    • Position your cursor over theenv-name/resources folder for the environment and clickUpload Apigee resource icon.

    TheImport resource wizard opens.

  2. Select the resource type that you want to import from the list.For a description of the resource types supported, seeResource types.

    Note: For JAR files, selectjavacallout jar.
  3. Navigate to the file in your local directory and clickImport.

  4. Enter a unique name for the resource and pressEnter.Note: Don't specify the file extension. An extension will be appended automatically based on the resource type.

    The resource is added to theresources folder in the Apigee Explorer and opened for editing.

Access the resource from a policy

How you access the resource from a policy depends on theresource type. For more information, refer to thePolicy reference overview. For an example of accessing the resource from a policy, seeAccessing the resource.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.