Trabalhar com a API de limitação

Nesta página: saiba como usar a API de Limitação para criar, implantar e monitorar configurações de limitação que limitam o número de eventos que o Adobe Journey Optimizer envia por segundo para pontos de extremidade externos.

A API de limitação ajuda a criar, configurar e monitorar as configurações de limitação para limitar o número de eventos enviados por segundo.

Esta seção fornece informações globais sobre como trabalhar com a API. Uma descrição detalhada da API está disponível na documentação das APIs do Adobe Journey Optimizer.

Leitura obrigatória

  • Uma configuração por organização: No momento, apenas uma configuração é permitida por organização. Uma configuração deve ser definida em uma sandbox de produção (fornecida por meio de x-sandbox-name nos cabeçalhos).

  • Aplicativo de nível da organização: uma configuração é aplicada no nível da organização.

  • Tratamento de limite de API: quando o limite definido na API é atingido, mais eventos são enfileirados por até 6 horas. Este valor não pode ser modificado. Eventos ainda enfileirados após 6 horas são descartados e relatados com um status actionExecutionError de timedout. Sob um backlog pesado sustentado, um evento pode permanecer não lido pela fila por cerca de 24 horas, momento em que a infraestrutura de fila subjacente o remove diretamente, sem gerar um evento de etapa.

  • Parâmetro maxHttpConnections: O parâmetro maxHttpConnections é um parâmetro opcional disponível na API Capping, que permite restringir apenas o número de conexões que o Journey Optimizer abrirá com o sistema externo. Saiba como trabalhar com a API de Limite

    Se você quiser restringir o número de conexões, mas também limitar essas chamadas externas, poderá definir duas configurações, uma limitação e uma limitação, no mesmo endpoint. Ambas as configurações podem coexistir para um endpoint. Para definir “maxHttpConnections” para um ponto de extremidade limitado, use a API de limitação para definir o limite de limitação e a API de limitação para definir “maxHttpConnections”. Ao chamar a API de limitação, você pode definir o limite de limitação para algo mais alto que o limite de limitação, de modo que a regra de limitação nunca entre em vigor.

Descrição da API de limitação e coleção do Postman description

A tabela abaixo lista os comandos disponíveis para a API de limitação. Informações detalhadas, incluindo amostras de solicitações, parâmetros e formatos de resposta estão disponíveis na documentação das APIs do Adobe Journey Optimizer.

Método
Caminho
Descrição
POST
list/throttlingConfigs
Obter uma lista das configurações de limitação
POST
/throttlingConfigs
Criar uma configuração de limitação
POST
/throttlingConfigs/{uid}/deploy
Implantar uma configuração de limitação
POST
/throttlingConfigs/{uid}/undeploy
Desimplantar uma configuração de limitação
POST
/throttlingConfigs/{uid}/canDeploy
Verificar se uma configuração de limitação pode ser implantada ou não
PUT
/throttlingConfigs/{uid}
Atualizar uma configuração de limitação
GET
/throttlingConfigs/{uid}
Recuperar uma configuração de limitação
DELETE
/throttlingConfigs/{uid}
Excluir uma configuração de limitação

Além disso, uma coleção do Postman está disponível aqui para ajudá-lo na configuração de teste.

Esta coleção foi configurada para compartilhar a coleção de Variáveis Postman gerada por meio das Integrações do Console Adobe I/O > Experimente > Baixar para Postman, que gera um arquivo de Ambiente Postman com os valores de integrações selecionados.

Após o download e o upload para o Postman, é necessário adicionar três variáveis: {JO_HOST},{BASE_PATH} e {SANDBOX_NAME}.

  • {JO_HOST} : Journey Optimizer URL do Gateway.
  • {BASE_PATH} : ponto de entrada da API.
  • {SANDBOX_NAME} : o cabeçalho x-sandbox-name (por exemplo, “prod”) correspondente ao nome da sandbox na qual as operações da API ocorrerão. Consulte a visão geral das sandboxes para obter mais informações.

Configuração de limitação  configuration

Esta é a estrutura de uma configuração de limitação. Os atributos name e description são opcionais.

{
    "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>
}

Exemplo:

{
  "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
A configuração só estará ativa depois de chamar o ponto de extremidade deploy.

A limitação se aplica somente quando a URL da solicitação corresponde ao urlPattern implantado. Como não são permitidos curingas na parte do host do padrão (consulte ERR_THROTTLING_CONFIG_105 abaixo), uma configuração está vinculada ao host do ponto de extremidade. Se um ponto de extremidade de ação personalizada alterar o host, verifique se o urlPattern ativo ainda corresponde à nova URL, atualize e reimplante a configuração, se necessário. O limite padrão permanece uma configuração por organização: se uma migração exigir que o host anterior e o novo sejam abordados ao mesmo tempo, entre em contato com o Atendimento ao cliente da Adobe.

Erros

Ao criar ou atualizar uma configuração, o processo valida a configuração fornecida e retorna o status de validação, identificado por seu identificador exclusivo, como:

"ok" or "error"
IMPORTANT
Os atributos maxThroughput, urlPattern e methods são obrigatórios.
O valor de maxThroughput deve estar entre 200 a 5000.

Ao criar, excluir ou implantar a configuração de limitação, os seguintes erros podem ocorrer:

  • ERR_THROTTLING_CONFIG_100: configuração de limitação: o <mandatory attribute> é obrigatório
  • ERR_THROTTLING_CONFIG_101: configuração de limitação: o atributo maxThroughput é obrigatório e deve ser maior ou igual a 200 e menor ou igual a 5.000
  • ERR_THROTTLING_CONFIG_104: configuração de limitação: o atributo urlPattern está malformado
  • ERR_THROTTLING_CONFIG_105: configuração de limitação: curingas não são permitidos na parte do host do urlPattern
  • ERR_THROTTLING_CONFIG_106: configuração de limitação: conteúdo inválido
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR: 1456: “Não é possível excluir uma configuração de limitação implantada. Desimplante a configuração antes de excluí-la”
  • THROTTLING_CONFIG_DELETE_ERROR: 1457: “Não é possível excluir a configuração de limitação: ocorreu um erro inesperado”
  • THROTTLING_CONFIG_DEPLOY_ERROR: 1458: “Não é possível implantar a configuração de limitação: ocorreu um erro inesperado”
  • THROTTLING_CONFIG_UNDEPLOY_ERROR: 1459: “Não é possível desimplantar a configuração de limitação: ocorreu um erro inesperado”
  • THROTTLING_CONFIG_GET_ERROR: 1460: “Não é possível obter a configuração de limitação: ocorreu erro inesperado”
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR: 1461: “Não é possível atualizar a configuração de limitação: a versão do tempo de execução não está ativa”
  • THROTTLING_CONFIG_UPDATE_ERROR: 1462: “Não é possível atualizar a configuração de limitação: ocorreu um erro inesperado”
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR: 1463: “Operação não permitida na configuração de limitação: sandbox de não produção”
  • THROTTLING_CONFIG_CREATE_ERROR: 1464: “Não é possível criar a configuração de limitação: ocorreu um erro inesperado”
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR: 1465: “Não é possível criar a configuração de limitação: somente uma configuração é permitida por organização”
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR: 14466: “Não é possível implantar a configuração de limitação: a configuração já foi implantada”
  • THROTTLING_CONFIG_NOT_FOUND_ERROR: 14467: “Configuração de limitação não encontrada”
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR: 14468: “Não é possível desimplantar a configuração de limitação: a configuração ainda não foi implantada”

Exemplos de erros

Ao tentar criar uma configuração em uma sandbox de não produção:

{
    "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"
}

Caso a sandbox fornecida não exista:

{
    "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"
}

Ao tentar criar outra configuração:

{
    "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"
}

Ciclo de vida da configuração no nível do tempo de execução config

Quando uma configuração é desimplantada, ela é marcada como inativa no nível do tempo de execução e os eventos pendentes continuam a ser processados durante 24 horas. Em seguida, ela é excluída no serviço do tempo de execução.

Após desimplantar uma configuração, é possível atualizá-la e reimplantá-la. Isso criará uma nova configuração de tempo de execução que será considerada na execução das ações futuras.

Ao atualizar uma configuração já implantada, os novos valores são considerados imediatamente. Os recursos do sistema subjacente são adaptados automaticamente. Isso é ideal em comparação ao cancelamento da implantação e à reimplantação da configuração.

Exemplos de respostas responses

Criação - 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"
}

Atualizar - 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"
    }
}

Ler (após a atualização) - 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
    }
}

Ler (após a implantação) - 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
    }
}

Casos de uso uc

Esta seção lista casos de uso importantes para gerenciar configurações de limitação no Journey Optimizer e os comandos de API associados necessários para implementar o caso de uso.

Detalhes sobre cada comando de API estão disponíveis na descrição da API e coleção do Postman.

Criação e implantação de uma nova configuração de limitação

Chamadas de API a serem usadas:

  1. list - Recupera as configurações existentes.
  2. create - Cria uma nova configuração.
  3. candeploy - Verifica se a configuração pode ser implantada.
  4. deploy - Implanta a configuração.
Atualizar e implantar uma configuração de limitação (ainda não implantada)

Chamadas de API a serem usadas:

  1. list - Recupera as configurações existentes.
  2. get - Obtém detalhes de uma configuração específica.
  3. update - Modifica a configuração.
  4. candeploy - Verifica a qualificação da implantação.
  5. deploy - Implanta a configuração.
Desimplantar e excluir uma configuração de limitação implantada

Chamadas de API a serem usadas:

  1. list - Recupera as configurações existentes.
  2. undeploy - Desimplanta a configuração.
  3. delete - Remove a configuração.
Excluir uma configuração de limitação implantada

Em apenas uma chamada de API, você pode desimplantar e excluir a configuração usando o parâmetro forceDelete.

Chamadas de API a serem usadas:

  1. list - Recupera as configurações existentes.
  2. delete(com parâmetro forceDelete) - Força a exclusão de uma configuração implantada em uma única etapa.
Atualizar uma configuração de limitação já implantada
note
NOTE
Não é necessário desimplantar a configuração antes de atualizar.

Chamadas de API a serem usadas:

  1. list - Recupera as configurações existentes.
  2. get - Obtém detalhes de uma configuração específica.
  3. update - Modifica a configuração.
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