Utiliser l’API de limitation

Sur cette page : découvrez comment utiliser l’API Throttling pour créer, déployer et surveiller les configurations de limitation qui limitent le nombre d’événements envoyés par seconde par Adobe Journey Optimizer à des points d’entrée externes.

L’API de limitation vous permet de créer, de configurer et de surveiller vos configurations de limitation, afin de limiter le nombre d’événements envoyés par seconde.

Cette section fournit des informations générales sur l’utilisation de l’API. Consultez la description détaillée de l’API dans la Documentation des API Adobe Journey Optimizer.

À lire impérativement

  • Une configuration par organisation : une seule configuration est actuellement autorisée par organisation. Une configuration doit être définie sur un sandbox de production (indiqué par x-sandbox-name dans les en-têtes).

  • Application au niveau de l’organisation : une configuration s’applique au niveau de l’organisation.

  • Gestion de la limite de l’API : lorsque la limite définie dans l’API est atteinte, les événements suivants sont mis en file d’attente pendant 6 heures au maximum. Cette valeur ne peut pas être modifiée. Les événements toujours en file d’attente après 6 heures sont ignorés et signalés avec un statut actionExecutionError de timedout. En cas de forte accumulation, un événement peut rester non lu par la file d’attente pendant environ 24 heures, après quoi l’infrastructure de file d’attente sous-jacente le supprime directement, sans générer d’événement d’étape.

  • Paramètre maxHttpConnections : le paramètre maxHttpConnections est un paramètre facultatif disponible dans l’API Capping uniquement pour vous permettre de limiter le nombre de connexions que Journey Optimizer ouvrira au système externe. En savoir plus l’utilisation de l’API Capping

    Si vous souhaitez limiter le nombre de connexions, mais également restreindre ces appels externes, vous pouvez configurer deux configurations, l’une de restriction et l’autre de limitation, sur le même point d’entrée. Les deux configurations peuvent coexister pour un point d’entrée. Pour définir « maxHttpConnections » pour un point d’entrée restreint, utilisez l’API Throttling pour définir le seuil de restriction et l’API Capping pour définir « maxHttpConnections ». Lors de l’appel de l’API Capping, vous pouvez définir le seuil de limitation sur un paramètre supérieur au seuil de limitation afin que la règle de limitation ne soit jamais appliquée.

Description de l’API de throttling et collection Postman description

Le tableau ci-dessous répertorie les commandes disponibles pour l’API de throttling. Des informations détaillées, notamment des exemples de requête, des paramètres et des formats de réponse, sont disponibles dans la documentation des API Adobe Journey Optimizer.

Méthode
Chemin
Description
POST
list/throttlingConfigs
Obtenir la liste des configurations de limitation du débit
POST
/throttlingConfigs
Création d’une configuration de limitation
POST
/throttlingConfigs/{uid}/deploy
Déploiement d’une configuration de limitation
POST
/throttlingConfigs/{uid}/undeploy
Annulation du déploiement d’une configuration de limitation
POST
/throttlingConfigs/{uid}/canDeploy
Vérification de la possibilité de déployer une configuration de limitation ou non
PUT
/throttlingConfigs/{uid}
Mise à jour d’une configuration de limitation
GET
/throttlingConfigs/{uid}
Récupération d’une configuration de limitation
DELETE
/throttlingConfigs/{uid}
Suppression d’une configuration de limitation

En outre, une collection Postman est disponible ici pour vous aider lors de la configuration de test.

Elle a été créée pour partager la collection de variables Postman générée dans Intégrations de la console Adobe I/O > Essayer > Télécharger pour Postman, qui génère un fichier d’environnement Postman contenant les valeurs d’intégration sélectionnées.

Une fois le téléchargement puis le chargement effectués dans Postman, vous devez ajouter trois variables : {JO_HOST}, {BASE_PATH} et {SANDBOX_NAME}.

  • {JO_HOST} : URL de passerelle Journey Optimizer
  • {BASE_PATH} : point d’entrée pour l’API.
  • {SANDBOX_NAME} : l’en-tête x-sandbox-name (par exemple, « prod ») correspondant au nom sandbox dans lequel les opérations d’API auront lieu. Pour plus d’informations, consultez la Présentation des sandbox.

Configuration de limitation  configuration

Vous trouverez ci-dessous la structure d’une configuration de limitation. Les attributs name et description sont facultatifs.

{
    "name": "<given name - free text>",
    "description": "<given description - free text>",
    "urlPattern": "<endpoint URL - wildcards are allowed>",
    "methods": [ "<HTTP method such as GET, POST, PUT>" ],
    "maxThroughput": <max call throughput>
}

Exemple :

{
  "name": "throttling-config-external",
  "description": "example of throttling config for an external endpoint",
  "urlPattern": "https://api.example.org/data/2.5/*",
  "methods": ["POST", "PUT"],
  "maxThroughput": 4000
}
IMPORTANT
La configuration n’est active qu’après avoir appelé le point d’entrée deploy.

L’option de limitation s’applique uniquement lorsque l’URL de requête correspond au urlPattern déployé. Comme les caractères génériques ne sont pas autorisés dans la partie hôte du modèle (voir ERR_THROTTLING_CONFIG_105 ci-dessous), une configuration est liée à son hôte de point d’entrée. Si un point d’entrée d’action personnalisé change d’hôte, vérifiez que le urlPattern actif correspond toujours à la nouvelle URL, puis mettez à jour et redéployez la configuration si nécessaire. La limite standard reste une configuration par organisation : si une migration nécessite de couvrir à la fois le précédent et le nouvel hôte, contactez l’assistance clientèle d’Adobe.

Erreurs

Lors de la création ou de la mise à jour d’une configuration, le processus valide la configuration donnée et renvoie le statut de validation identifié par son ID unique :

"ok" or "error"
IMPORTANT
Les attributs maxThroughput, urlPattern et methods sont obligatoires.
La valeur de maxThroughput doit être comprise entre 200 et 5 000.

Lors de la création, suppression ou déploiement d’une configuration de limitation, les erreurs suivantes peuvent se produire :

  • ERR_THROTTLING_CONFIG_100 - Configuration de limitation : <mandatory attribute> est obligatoire.
  • ERR_THROTTLING_CONFIG_101 - Configuration de limitation : maxThroughput est obligatoire et doit être supérieur ou égal à 200 et inférieur ou égal à 5 000.
  • ERR_THROTTLING_CONFIG_104 - Configuration de limitation : modèle d’URL incorrect
  • ERR_THROTTLING_CONFIG_105 - Configuration de limitation : la partie hôte du modèle d’URL contient des caractères génériques non autorisés.
  • ERR_THROTTLING_CONFIG_106 - Configuration de limitation : payload non valide
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR: 1456 - « Impossible de supprimer une configuration de limitation déployée. Annulez le déploiement avant de la supprimer. »
  • THROTTLING_CONFIG_DELETE_ERROR : 1457 - « Impossible de supprimer la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_DEPLOY_ERROR: 1458 - « Impossible de déployer la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_UNDEPLOY_ERROR: 1459 - « Impossible d’annuler le déploiement de la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_GET_ERROR: 1460 - « Impossible d’obtenir la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR: 1461, - « Impossible de mettre à jour la configuration de limitation : la version d’exécution n’est pas active. »
  • THROTTLING_CONFIG_UPDATE_ERROR: 1462 - « Impossible de mettre à jour la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR: 1463 - « Opération non autorisée sur la configuration de limitation : il ne s’agit pas d’une sandbox de production. »
  • THROTTLING_CONFIG_CREATE_ERROR: 1464 - « Impossible de créer la configuration de limitation en raison d’une erreur inattendue. »
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR: 1465 - « Impossible de créer la configuration de limitation : une seule configuration est autorisée par organisation. »
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR: 14466 - « Impossible de déployer la configuration de limitation : elle est déjà déployée. »
  • THROTTLING_CONFIG_NOT_FOUND_ERROR: 14467 - « Configuration de limitation introuvable. »
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR: 14468 - « Impossible d’annuler le déploiement de la configuration de limitation : elle n’a pas encore été déployée. »

Exemples d’erreurs

Lors de la création d’une configuration sur une sandbox hors production :

{
    "status": 400,
    "error": "{\"code\":1463,\"family\":\"INPUT_OUTPUT_ERROR\",\"message\":\"Operation not allowed on throttling config: non prod sandbox\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.service.authoring.restapis.v1_0.ThrottlingConfigService:384\",\"schema\":\"throttlingConfigs$ui-tests\"}",
    "requestId": "5sgnAYXs8mpswwjAFEIaAU2faQYbtyHc"
}

Si la sandbox donnée n’existe pas :

{
    "status": 500,
    "error": "{\"code\":4000,\"family\":\"INTERNAL_ERROR\",\"message\":\"INTERNAL ERROR\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.common.exceptions.ApiErrorException:43\"}",
    "requestId": "04ZJ4e5ki4bYs3lfO17a7hovRGewjvdK"
}

Lors de la création d’une autre configuration :

{
    "status": 400,
    "error": "{\"code\":1465,\"family\":\"INPUT_OUTPUT_ERROR\",\"message\":\"Can't create throttling config: only one config allowed per org\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.service.authoring.restapis.v1_0.ThrottlingConfigService:108\",\"schema\":\"throttlingConfigs$prod\"}",
    "requestId": "A7ezT8JhOQT4WIAf1Fv7K2wCDA8281qM"
}

Cycle de vie de la configuration au niveau de l’exécution config

Lorsque le déploiement d’une configuration est annulé, celle-ci est marquée comme inactive au niveau de l’exécution et le traitement des événements en attente se poursuit pendant 24 heures. Elle est ensuite supprimée du service d’exécution.

Une fois le déploiement d’une configuration annulé, il est possible de la mettre à jour et de la redéployer. Cette opération crée une nouvelle configuration d’exécution qui sera prise en compte lors de l’exécution des prochaines actions.

Lors de la mise à jour d’une configuration déjà déployée, les nouvelles valeurs sont prises en compte immédiatement. Les ressources système sous-jacentes sont automatiquement adaptées. Cette approche est optimale par rapport au dédéploiement, puis au redéploiement de la configuration.

Exemples de réponses responses

Création - POST

{
    "canDeploy": {
        "validationStatus": "ok"
    },
    "createdElement": {
        "name": "throttling-config-external",
        "description": "example of throttling config for an external endpoint",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "PUT",
            "POST"
        ],
        "maxThroughput": 4000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T10:48:16.099647Z"
        },
        "state": "created",
        "authoringFormatVersion": "1.0"
    },
    "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "uri": "/voyager/apis/throttlingConfigs/043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "resStatus": "created"
}

Mise à jour - PUT

{
    "updatedElement": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z"
        },
        "state": "updated",
        "authoringFormatVersion": "1.0",
        "hasBeenDeployed": false
    },
    "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "uri": "/voyager/apis/throttlingConfigs/043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "resStatus": "updated",
    "canDeploy": {
        "validationStatus": "ok"
    }
}

Lecture (après mise à jour) - GET

{
    "result": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z"
        },
        "state": "updated",
        "authoringFormatVersion": "1.0",
        "hasBeenDeployed": false
    }
}

Lecture (après déploiement) - GET

{
    "result": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "authoringFormatVersion": "1.0",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "version": "1.0",
        "state": "deployed",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z",
            "lastDeployedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastDeployedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastDeployedAt": "2023-03-22T11:46:07.532648Z"
        },
        "hasBeenDeployed": true
    }
}

Cas d’utilisation uc

Cette section aborde les principaux cas d’utilisation de la gestion des configurations de limitation dans Journey Optimizer ainsi que les commandes API associées requises pour mettre en œuvre le cas d’utilisation.

Des détails sur chaque commande d’API sont disponibles dans la description de l’API et collection Postman.

Créer et déployer une configuration de limitation

Appels API à utiliser :

  1. list : récupère les configurations existantes.
  2. create : crée une configuration.
  3. candeploy : vérifie que la configuration peut être déployée.
  4. deploy : déploie la configuration.
Mettre à jour et déployer une configuration de limitation (pas encore déployée)

Appels API à utiliser :

  1. list : récupère les configurations existantes.
  2. get : récupère les détails d’une configuration spécifique.
  3. update : modifie la configuration.
  4. candeploy : vérifie l’éligibilité du déploiement.
  5. deploy : déploie la configuration.
Annuler le déploiement et supprimer une configuration de limitation déployée

Appels API à utiliser :

  1. list : récupère les configurations existantes.
  2. undeploy : annule le déploiement de la configuration.
  3. delete : supprime la configuration.
Supprimer une configuration de limitation déployée

En un seul appel API, vous pouvez annuler le déploiement et supprimer la configuration à l’aide du paramètre forceDelete.

Appels API à utiliser :

  1. list : récupère les configurations existantes.
  2. delete(avec le paramètre forceDelete) : force la suppression d’une configuration déployée en une seule étape.
Mettre à jour une configuration de limitation déployée
note
NOTE
Il n’est pas nécessaire d’annuler le déploiement de la configuration avant la mise à jour.

Appels API à utiliser :

  1. list : récupère les configurations existantes.
  2. get : récupère les détails d’une configuration spécifique.
  3. update : modifie la configuration.
AI Knowledge Reference

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 Throttling API lets you create, configure, deploy and monitor a throttling configuration that limits the number of events Adobe Journey Optimizer sends per second to external endpoints.

Intents:

  • Create, retrieve, update, deploy, undeploy and delete a throttling configuration with the commands of the Throttling API.
  • Check whether a throttling configuration can be deployed with the canDeploy command.
  • Set up the Throttling API Postman collection with the {JO_HOST}, {BASE_PATH} and {SANDBOX_NAME} variables.
  • Restrict the number of connections to an external system while also throttling the external calls, with one throttling configuration and one capping configuration on the same endpoint.
  • Interpret the validation status and the error codes returned when creating, updating, deleting or deploying a throttling configuration.

Glossary:

  • Throttling configuration (product-specific): The object that the Throttling API creates and deploys to limit the number of events sent per second. It has the attributes name, description, urlPattern, methods and maxThroughput.
  • urlPattern (product-specific): The endpoint URL of a throttling configuration. Wildcards are allowed. Throttling applies only when the request URL matches the deployed urlPattern.
  • methods (product-specific): The HTTP methods of a throttling configuration, such as GET, POST, PUT.
  • maxThroughput (product-specific): The max call throughput of a throttling configuration.
  • maxHttpConnections (product-specific): An optional parameter, available in the Capping API only, that restricts the number of connections Journey Optimizer opens to the external system.
  • Validation status (product-specific): The status returned when a throttling configuration is created or updated, identified by its Unique ID: ok or error.
  • forceDelete (product-specific): A parameter of the delete command that undeploys and deletes a deployed throttling configuration in only one API call.
  • {JO_HOST}: The Journey Optimizer Gateway URL, a variable of the Postman collection.
  • {BASE_PATH}: The entry point for the API, a variable of the Postman collection.
  • {SANDBOX_NAME}: The header x-sandbox-name (for example, prod) corresponding to the sandbox name where the API operations take place, a variable of the Postman collection.

Guardrails:

  • Only one throttling configuration is currently allowed per organization. If a migration requires both the previous and the new host of an endpoint to be covered at the same time, contact Adobe Customer Care.
  • A throttling configuration must be defined on a production sandbox, given through x-sandbox-name in the headers.
  • A throttling configuration is applied at organization level.
  • A throttling configuration is active only after calling the deploy endpoint.
  • The attributes maxThroughput, urlPattern and methods are mandatory. The name and description attributes are optional.
  • The maxThroughput value of a throttling configuration must be in the 200-5000 range (hard limit).
  • Wildcards are not allowed in the host part of the urlPattern, so a throttling configuration is tied to its endpoint host.
  • When the limit set in the Throttling API is reached, further events are queued for up to 6 hours. This value cannot be modified. Events still queued after 6 hours are dropped and reported with an actionExecutionError status of timedout.
  • Under sustained heavy backlog, an event can remain unread by the queue for around 24 hours, at which point the underlying queue infrastructure removes it directly, without generating a step event.

Terminology:

  • Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
  • Canonical name: throttling configuration — variants: throttling config, configuration
  • Do not confuse: “Throttling API” ≠ “Capping API”

FAQ:

  • When does a throttling configuration become active? Only after calling the deploy endpoint.
  • What happens to events when the throttling limit is reached? Further events are queued for up to 6 hours. Events still queued after 6 hours are dropped and reported with an actionExecutionError status of timedout.
  • Is it required to undeploy a deployed throttling configuration before updating it? No. When a configuration already deployed is updated, the new values are taken into account immediately and the underlying system resources are automatically adapted. This is optimal compared to undeploying then redeploying the configuration.
  • What happens when a throttling configuration is undeployed? It is marked as inactive at runtime level, pending events continue to be processed during 24 hours, and it is then deleted in the runtime service. After it has been undeployed, it is possible to update and redeploy it, which creates a new runtime configuration that is considered in the upcoming actions execution.
  • What should be checked when a custom action endpoint changes host? Verify that the active urlPattern still matches the new URL, then update and redeploy the throttling configuration if needed.
  • How can a deployed throttling configuration be deleted in one API call? Use the delete command with the forceDelete parameter, which undeploys and deletes the configuration.
  • How can maxHttpConnections be set for a throttled endpoint? Use the Throttling API to set the throttling threshold and the Capping API to set maxHttpConnections. Both configurations can co-exist for one endpoint. When calling the Capping API, you can set the capping threshold to something higher than the throttling threshold so the capping rule effectively never comes into play.

Troubleshooting:

  • ERR_THROTTLING_CONFIG_100: throttling config: <mandatory attribute> required.
  • ERR_THROTTLING_CONFIG_101: throttling config: maxThroughput is required and must be greater than or equal to 200 and less than or equal to 5,000.
  • ERR_THROTTLING_CONFIG_104: throttling config: malformed url pattern.
  • ERR_THROTTLING_CONFIG_105: throttling config: wildcards not allowed in host part of the url pattern.
  • ERR_THROTTLING_CONFIG_106: throttling config: invalid payload.
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR: 1456: Can't delete a deployed throttling config. Undeploy it before deleting it.
  • THROTTLING_CONFIG_DELETE_ERROR: 1457: Can't delete throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_DEPLOY_ERROR: 1458: Can't deploy throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_UNDEPLOY_ERROR: 1459: Can't undeploy throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_GET_ERROR: 1460: Can't get throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR: 1461: Can't update throttling config: runtime version is not active.
  • THROTTLING_CONFIG_UPDATE_ERROR: 1462: Can't update throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR: 1463: Operation not allowed on throttling config: non prod sandbox. Returned with status 400 when trying to create a throttling configuration on a non-prod sandbox.
  • THROTTLING_CONFIG_CREATE_ERROR: 1464: Can't create throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR: 1465: Can't create throttling config: only one config allowed per org. Returned with status 400 when trying to create another throttling configuration.
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR: 14466: Can't deploy throttling config: already deployed.
  • THROTTLING_CONFIG_NOT_FOUND_ERROR: 14467: throttling config not found.
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR: 14468: Can't undeploy throttling config: not deployed yet.
  • Code 4000, family INTERNAL_ERROR, message INTERNAL ERROR: returned with status 500 when the given sandbox does not exist.

Examples:

  • Throttling configuration for an external endpoint: name throttling-config-external, urlPattern https://api.example.org/data/2.5/*, methods ["POST", "PUT"], maxThroughput 4000.
  • Creation and deployment of a new throttling configuration uses the API calls list, create, candeploy and deploy.
  • Update and deployment of a throttling configuration not yet deployed uses the API calls list, get, update, candeploy and deploy.
  • Undeployment and deletion of a deployed throttling configuration uses the API calls list, undeploy and delete.
  • Update of a throttling configuration already deployed uses the API calls list, get and update.

Related pages:

Personas:

  • developer: Can list, create, deploy, undeploy, update, retrieve and delete a throttling configuration with the Throttling API commands. Can check if a configuration can be deployed with the canDeploy command. Can define a configuration with the mandatory urlPattern, methods and maxThroughput attributes and the optional name and description attributes. Can undeploy and delete a deployed configuration in only one API call with the forceDelete parameter. Can set up the Postman collection with the {JO_HOST}, {BASE_PATH} and {SANDBOX_NAME} variables. The page states that the maxThroughput value must be in 200-5000 range. Where: “Throttling API description & Postman collection”.

Onboarding:

  • Level: Beginner
  • First minimal step: Retrieve existing throttling configurations with the list API call.
  • Success check: A GET on the configuration after deployment returns a state of deployed and hasBeenDeployed set to true.
recommendation-more-help
journey-optimizer-help