API Management Architecture
Prerequisites
- The API Management - Design First and the API Policy Manager features must be enabled. Contact SnapLogic Support to subscribe to the feature.
- This API Management - Design First feature supports the Open API Specification (OAS) 2.0.
- You should have a good understanding of the SnapLogic Manager and the SnapLogic expression language.
API Manager - Design First Workflow
When you import or reference an API specification to the new /apim space, a new API asset is created. The new API comprises a Pipeline that is the scaffolding for the API and the Task used to call it. You can then create versions, add API policies, set permissions, and modify the underlying SnapLogic assets to build the business logic for your API.
Create New API from existing Pipelines and Tasks
You can also create an API in the API Manager Console by referencing existing Projects in Manager. This functionality enables you, as a Pipeline designer, to complete your Pipeline building activity first. The advantage of this approach is taking advantage of your existing SnapLogic infrastructure. You can segment the design and testing activities as you build Pipelines and creates Triggered Tasks from them individually testing and vetting them for production. Once your Pipeline assets are production ready, you can create APIs in the API creation dialog windows.
Limitations
Limitations
Orgs with APIM should not use Enhanced Encryption for the following reasons:
Orgs with Enhanced Encryption do not support subscriptions on the Developer Portal.
Org admins who rotate keys for their Groundplexes must also reconfigure all API policies as well for them to work.
Only one instance of an API policy type is applicable at each level in the hierarchy.
API Manager does not support Scheduled Tasks. When you open a Task in an API version, you
do not have the option to change the Run Policy to Scheduled.
In Designer, when you open a Pipeline in an API version, the Snaplex
picker in the Edit Pipeline dialog window only
show the Snaplex instances from the global
shared
folder. If a Snaplex is in a project or Project Spaceshared
folder, then it does not display in the APIM Snaplex picker.In Designer,
if you open the Snap dialog window
from a Pipeline in the API Management -
/apim
space,
the asset or account selectors display only the assets from the global shared folder, in addition to those in the current version.
You can change
the Snaplex for an unpublished API
version. To do so, go to API Manager, choose the API, go to the Versions tab, choose the version, click Edit Details, and choose from the Server dropdown. Note: This field is disabled if the API version is published or if the Snaplex is down.
Server Configuration
You cannot use the Cloud URL to run the Triggered Tasks in your API Versions.
When you generate a specification using version OAS 3.0 in an API proxy that has a valid endpoint, the generated specification does not list a server.
Prerequisites
The API Manager feature requires a load balancer.
Cloudplexes need a Cloudplex FeedMaster node and a load balancer for the API Policy Manager to work.
Contact support@snaplogic.com to provision the Cloudplex FeedMaster node and the load balancer as needed.
When the load balancer becomes available, your Org admin must update the Load Balancer
URL in
the Snaplex
Refer to this page for more information: Updating a Snaplex See Also
Settings. Learn how: Updating a Snaplex
You must use the load balancer URL in your Triggered and Ultra Task endpoints.
The API Management feature must be enabled for your Org. Contact SnapLogic Support to subscribe to this feature.
API Management Architecture
The following diagram illustrates the components of API Management Architecture.
The Design-First Workflow
You can create a new API in the /apim
space of the API Manager and import or reference an API specification that defines the API. The new API comprises a Pipeline that is the scaffolding for the API and the Task used to call it. You can then create versions, add API policies, and modify the underlying SnapLogic assets to build the business logic for your API.
The following video demonstrates the workflow:
Learn more: Creating the API using Design First
The Pipeline-First Workflow
You can also create an API in the API Manager by referencing existing Projects in Manager. This allows you to design, build, and test your Pipeline first, thereby taking advantage of your existing SnapLogic infrastructure. As you build Pipelines and create Triggered Tasks from them, you vet them for production individually and concurrently. When your Pipeline and Tasks are production-ready, you can create APIs in the API Manager.
The following video demonstrates the workflow:
Learn more: Creating the API from Existing Project Assets
Known Issues
When you generate a specification using version OAS 3.0 in an API proxy that has a valid endpoint, the generated specification does not list a server.
Workaround: Edit the specification to include the server field and list the Snaplex manually.