Auf dieser Seite: Erfahren Sie, wie Sie mithilfe der Begrenzungs-API von Adobe Journey Optimizer Konfigurationen für Endpunktbegrenzung erstellen, konfigurieren, bereitstellen und überwachen, die Aufrufe an externe Systeme begrenzen.
Mit der Capping-API können Sie Begrenzungskonfigurationen erstellen, konfigurieren und überwachen.
In diesem Abschnitt finden Sie allgemeine Informationen zur Verwendung der API. Eine detaillierte API-Beschreibung finden Sie in der Dokumentation zu Adobe Journey Optimizer-APIs.
Beschreibung der Begrenzungs-API und der Postman-Sammlung description
In der folgenden Tabelle sind die verfügbaren Befehle für das Begrenzungs-API aufgeführt. Ausführliche Informationen, einschließlich Anfragebeispielen, Parametern und Antwortformaten, finden Sie in der Dokumentation zu den Adobe Journey Optimizer-APIs.
{uid}/deploy{uid}/undeploy{uid}/canDeploy{uid}{uid}{uid}Bei der Erstellung oder Aktualisierung einer Konfiguration wird automatisch eine Überprüfung durchgeführt, um die Syntax und Integrität der Payload sicherzustellen.
Wenn Probleme auftreten, gibt der Vorgang Warnungen oder Fehler zurück, um Sie bei der Korrektur der Konfiguration zu unterstützen.
Darüber hinaus steht Ihnen hier – zur Unterstützung bei Ihrer Testkonfiguration – eine Postman-Sammlung zur Verfügung.
Diese Sammlung wurde eingerichtet, um die Postman-Variablensammlung freizugeben, die über Integrationen der Adobe I/O-Konsole > Testen > Für Postman herunterladen generiert wurde. Dadurch wird eine Postman-Umgebungsdatei mit den ausgewählten Integrationswerten erzeugt.
Nach dem Herunterladen und Hochladen in Postman müssen Sie drei Variablen hinzufügen: {JO_HOST}, {BASE_PATH} und {SANDBOX_NAME}.
{JO_HOST}: Journey Optimizer-Gateway-URL.{BASE_PATH}: Einstiegspunkt für die API.{SANDBOX_NAME}: der Header x-sandbox-name (z. B. „prod“), der dem Sandbox-Namen entspricht, in dem die API-Vorgänge stattfinden. Weiterführende Informationen dazu finden Sie unter Sandbox-Übersicht.
Endpunktkonfiguration
Die grundlegende Struktur einer Endpunktkonfiguration sieht wie folgt aus:
{
"url": "<endpoint URL>", //wildcards are allowed in the endpoint URL
"methods": [ "<HTTP method such as GET, POST, >, ...],
"services": {
"<service name>": { . //must be "action" or "dataSource"
"maxHttpConnections": <max connections count to the endpoint (optional)>
"rating": {
"maxCallsCount": <max calls to be performed in the period defined by period/timeUnit>,
"periodInMs": <integer value greater than 0>
}
},
...
}
}
maxHttpConnections-Wert angegeben wurde, wird der bereitgestellten Konfiguration der Standard maxHttpConnections = -1 hinzugefügt, was bedeutet, dass Journey Optimizer den Standardwert des Systems verwendet.Beispiel:
{
"url": "https://api.example.org/data/2.5/*",
"methods": [
"GET"
],
"services": {
"action": {
"rating": {
"maxCallsCount": 500,
"periodInMs": 1000
}
}
}
}
Warnung und Fehler
Wenn eine canDeploy-Methode aufgerufen wird, validiert der Prozess die Konfiguration und gibt den durch seine eindeutige Kennung identifizierten Validierungsstatus zurück:
"ok" or "error"
Mögliche Fehler sind:
- ERR_ENDPOINTCONFIG_100: capping config: missing or invalid url
- ERR_ENDPOINTCONFIG_101: capping config: malformed url
- ERR_ENDPOINTCONFIG_102: capping config: malformed url: wildchar in url not allowed in host:port
- ERR_ENDPOINTCONFIG_103: capping config: missing HTTP methods
- ERR_ENDPOINTCONFIG_104: capping config: no call rating defined
- ERR_ENDPOINTCONFIG_107: capping config: invalid max calls count (maxCallsCount)
- ERR_ENDPOINTCONFIG_108: capping config: invalid max calls count (periodInMs)
- ERR_ENDPOINTCONFIG_111: capping config: can’t create endpoint config: invalid payload
- ERR_ENDPOINTCONFIG_112: capping config: can’t create endpoint config: expecting a JSON payload
- ERR_AUTHORING_ENDPOINTCONFIG_1: invalid service name
<!--<given value>-->: must be ‘dataSource’ or ‘action’ - ERR_AUTHORING_ENDPOINTCONFIG_2: Endpunkt nicht auf der Whitelist: Bitte Admin kontaktieren
- Wenn dieser Fehler beim Versuch auftritt, eine Begrenzungsregel für eine benutzerdefinierte Aktion zu konfigurieren, stellen Sie sicher, dass Sie „action“ (nicht „dataSource„) als Service-Namen in der Payload „create“ oder „update“ festlegen. Siehe obiges Beispiel.
Die potenzielle Warnung lautet:
ERR_ENDPOINTCONFIG_106: capping config: max HTTP connections not defined: no limitation by default
Anwendungsfälle
In diesem Abschnitt werden wichtige Anwendungsfälle für die Verwaltung von Begrenzungskonfigurationen in Journey Optimizer und die zugehörigen API-Befehle aufgelistet, die zur Implementierung des jeweiligen Anwendungsfalls erforderlich sind.
Details zu den einzelnen API-Befehlen finden Sie in der API-Beschreibung und Postman-Sammlung.
Zu verwendende API-Aufrufe:
list: Ruft vorhandene Konfigurationen ab.create: Erstellt eine neue Konfiguration.candeploy: Prüft, ob die Konfiguration bereitgestellt werden kann.deploy: Stellt die Konfiguration bereit.
Zu verwendende API-Aufrufe:
list: Ruft vorhandene Konfigurationen ab.get: Ruft Details zu einer bestimmten Konfiguration ab.update: Ändert die Konfiguration.candeploy: Prüft die Eignung der Bereitstellung.deploy: Stellt die Konfiguration bereit.
Zu verwendende API-Aufrufe:
list: Ruft vorhandene Konfigurationen ab.undeploy: Hebt die Bereitstellung der Konfiguration auf.delete: Entfernt die Konfiguration.
In nur einem API-Aufruf können Sie mithilfe des Parameters forceDelete die Bereitstellung aufheben und die Konfiguration löschen.
Zu verwendende API-Aufrufe:
list: Ruft vorhandene Konfigurationen ab.delete(mit dem ParameterforceDelete): Erzwingt die Löschung einer bereitgestellten Konfiguration in einem einzigen Schritt.
| note |
|---|
| NOTE |
| Nach dem Aktualisieren einer bereits bereitgestellten Konfiguration ist eine erneute Bereitstellung erforderlich. |
Zu verwendende API-Aufrufe:
list: Ruft vorhandene Konfigurationen ab.get: Ruft Details zu einer bestimmten Konfiguration ab.update: Ändert die Konfiguration.undeploy: Hebt die Bereitstellung der Konfiguration auf, bevor Änderungen angewendet werden.candeploy: Prüft die Eignung der Bereitstellung.deploy: Stellt die aktualisierte Konfiguration bereit.
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: The Adobe Journey Optimizer Capping API lets you create, configure, deploy, and monitor endpoint capping configurations that limit calls to external systems.
Intents:
- List, create, retrieve, update, and delete endpoint capping configurations with the Capping API.
- Deploy and undeploy an endpoint capping configuration, and check with canDeploy whether an endpoint capping configuration can be deployed.
- Define an endpoint configuration with a URL, HTTP methods, a service name, and a call rating (maxCallsCount and periodInMs).
- Undeploy and delete a deployed capping configuration in one API call with the forceDelete parameter.
- Test capping configurations with the Capping API Postman collection.
Glossary:
- Endpoint capping configuration (product-specific): a configuration that limits calls to an external system, defined by an endpoint URL, HTTP methods, and services with a call rating.
- maxHttpConnections (product-specific): an optional parameter that restricts the number of connections Journey Optimizer opens to the external system.
- maxCallsCount (product-specific): the maximum number of calls to be performed in the period set in the rating of an endpoint configuration.
- forceDelete (product-specific): a parameter of the delete call that undeploys and deletes a deployed configuration in one API call.
Guardrails:
- The max value that can be set for maxHttpConnections is 400 (hard limit).
- If no maxHttpConnections value is specified, the system may open up to multiple thousands of connections depending on the dynamic scaling of the system.
- When the capping configuration is deployed and no maxHttpConnections value has been set, a default
maxHttpConnections = -1is added into the deployed configuration, and Journey Optimizer uses the default system value. - The service name in an endpoint configuration must be “action” or “dataSource”.
- periodInMs takes an integer value greater than 0.
- Wildcards are allowed in the endpoint URL.
- A capping configuration is only active after calling the deploy endpoint.
- A redeployment is required after updating an already deployed capping configuration.
Prerequisites and permissions:
- To use the Postman collection, once the Postman Environment file is downloaded and uploaded into Postman, you need to add three variables:
{JO_HOST}(the Journey Optimizer Gateway URL),{BASE_PATH}(the entry point for the API), and{SANDBOX_NAME}(the header x-sandbox-name, for example ‘prod’, corresponding to the sandbox name where the API operations take place). - The Postman Environment file is generated via Adobe I/O Console’s Integrations > Try it out > Download for Postman, with the selected integrations values.
Terminology:
- Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
- Canonical name: Capping API — variants: capping API
- Canonical name: canDeploy — variants: candeploy
FAQ:
- When does a capping configuration become active? A capping configuration is only active after calling the deploy endpoint.
- What happens when a capping configuration is created or updated? A check is automatically performed to guarantee the syntax and the integrity of the payload. If some problems occur, the operation returns warnings or errors to help you correct the configuration.
- What does canDeploy return? When the canDeploy method is called, the process validates the configuration and returns the validation status “ok” or “error”.
- What happens if maxHttpConnections is not set? The system may open up to multiple thousands of connections depending on the dynamic scaling of the system. At deployment, a default
maxHttpConnections = -1is added and Journey Optimizer uses the default system value. - Is a redeployment required after updating a deployed capping configuration? Yes. A redeployment is required after updating an already deployed configuration.
- Can I undeploy and delete a deployed capping configuration in one API call? Yes. Use the delete call with the forceDelete parameter.
- What do I do if ERR_AUTHORING_ENDPOINTCONFIG_2 appears when configuring a capping rule for a custom action? Make sure “action” (not “dataSource”) is set as the service name in the create or update payload.
Troubleshooting:
- ERR_ENDPOINTCONFIG_100:
capping config: missing or invalid url. - ERR_ENDPOINTCONFIG_101:
capping config: malformed url. - ERR_ENDPOINTCONFIG_102:
capping config: malformed url: wildchar in url not allowed in host:port. - ERR_ENDPOINTCONFIG_103:
capping config: missing HTTP methods. - ERR_ENDPOINTCONFIG_104:
capping config: no call rating defined. - ERR_ENDPOINTCONFIG_107:
capping config: invalid max calls count (maxCallsCount). - ERR_ENDPOINTCONFIG_108:
capping config: invalid max calls count (periodInMs). - ERR_ENDPOINTCONFIG_111:
capping config: can't create endpoint config: invalid payload. - ERR_ENDPOINTCONFIG_112:
capping config: can't create endpoint config: expecting a JSON payload. - ERR_AUTHORING_ENDPOINTCONFIG_1:
invalid service name ...: must be 'dataSource' or 'action'. - ERR_AUTHORING_ENDPOINTCONFIG_2:
endpoint not whitelisted: please contact your administrator. If this error appears when configuring a capping rule for a custom action, make sure “action” (not “dataSource”) is set as the service name in the create or update payload. - ERR_ENDPOINTCONFIG_106 (warning):
capping config: max HTTP connections not defined: no limitation by default.
Examples:
- Endpoint capping configuration for the action service: URL
https://api.example.org/data/2.5/*, method GET, rating with maxCallsCount 500 and periodInMs 1000.
Personas:
- developer: Can list, create, retrieve, update, delete, deploy and undeploy endpoint capping configurations with the Capping API. Can check with canDeploy whether an endpoint capping configuration can be deployed. Can undeploy and delete a deployed configuration in one API call with the forceDelete parameter. The page states that the max value that can be set for maxHttpConnections is 400. Where: “Capping API description & Postman collection”.
Onboarding:
- Level: Beginner
- First minimal step: Call list to retrieve existing capping configurations.
- Success check: When the canDeploy method is called, it returns the validation status “ok”.