Manage resources Stay organized with collections Save and categorize content based on your preferences.
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:
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.
Level Step API proxy Perform one of the following actions: - Position your cursor over one of the following folders, click
, and selectCreate resource:apiproxy-nameproxy bundleapiproxy-name/apiproxy
- Position your cursor over the
apiproxy-name/apiproxy/resourcesfolder for the API proxy and click
.
Shared flow Perform one of the following actions: - Position your cursor over one of the following folders, click
, and selectCreate resource:sharedflow-nameshared flow bundlesharedflow-name/sharedflowbundle
- Position your cursor over the
sharedflow-name/sharedflowbundle/resourcesfolder for the shared flow and click
.
Environment Perform one of the following actions: - Position your cursor over the
env-nameenvironment folder, click
, and selectCreate resource. - Position your cursor over the
env-name/resourcesfolder for the environment and click
.
TheCreate resource wizard opens.
- Position your cursor over one of the following folders, click
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.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 the
resourcesfolder in theapiproxies,sharedflows, orenvironmentsfolder in the Apigee section and opened for editing.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:
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.
Level Step API proxy Perform one of the following actions: - Position your cursor over the
apiproxy-name/apiproxyfolder and click
. - Position your cursor over the
apiproxy-name/apiproxy/resourcesfolder for the API proxy and click
.
Shared flow Perform one of the following actions: - Position your cursor over the
sharedflow-name/sharedflowbundlefolder and click
. - Position your cursor over the
sharedflow-name/sharedflowbundle/resourcesfolder for the shared flow and click
.
Environment Perform one of the following actions: - Position your cursor over the
env-nameenvironment folder and click
. - Position your cursor over the
env-name/resourcesfolder for the environment and click
.
TheImport resource wizard opens.
- Position your cursor over the
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.Navigate to the file in your local directory and clickImport.
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 the
resourcesfolder 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.