Throttling API の使用

このページ: Throttling API を使用して、Adobe Journey Optimizer から外部エンドポイントに送信されるイベントの 1 秒あたりの数を制限するスロットル設定を作成、デプロイ、監視する方法について説明します。

Throttling API を使用すると、スロットル設定を作成、設定および監視して、1 秒あたりに送信されるイベントの数を制限できます。

この節では、API の使用方法に関する全体的な情報を示します。 API について詳しくは、Adobe Journey Optimizer API ドキュメントを参照してください。

必読

  • 1 つの組織につき 1 つの設定:​現在、1 つの組織につき 1 つの設定のみを使用できます。 設定は、(ヘッダーの x-sandbox-name を通じて指定される)実稼動サンドボックスで定義する必要があります。

  • 組織レベルのアプリケーション:​設定は、組織レベルで適用されます。

  • API 制限の処理: API で設定された上限に達すると、それ以降のイベントは最大 6 時間キューに入れられます。 この値は変更できません。 6時間後にキューに入れられたイベントは削除され、actionExecutionError ステータスがtimedoutで報告されます。 大量のバックログが継続的に発生すると、イベントはキューによって約24時間未読のままになる可能性があります。その時点で、ステップイベントを生成することなく、そのイベントの基礎となるキューインフラストラクチャによって直接削除されます。

  • maxHttpConnectionsパラメーター:maxHttpConnections パラメーターは、Capping API でのみ使用できるオプションパラメーターであり、Journey Optimizer が外部システムに対して開く接続の数をキャップできます。 Capping API の使用方法の詳細情報

    接続数をキャップするが、外部呼び出しもスロットルする場合は、同じエンドポイントで、1 つのスロットリングと 1 つのキャップの 2 つの設定を指定できます。 1 つのエンドポイントに対して、両方の設定を共存させることができます。 スロットリングされたエンドポイントに対して「maxHttpConnections」を設定するには、Throttling API を使用してスロットリングしきい値を設定し、Capping API を使用して「maxHttpConnections」を設定します。 Capping API を呼び出す際に、キャップしきい値をスロットリングしきい値よりも高い値に設定して、キャップルールが実質的に適用されないようにすることができます。

スロットル API の説明とPostman コレクション description

次の表に、スロットル API で使用できるコマンドを示します。 リクエストサンプル、パラメーター、応答形式などの情報について詳しくは、Adobe Journey Optimizer API ドキュメントを参照してください。

メソッド
パス
説明
POST
list/throttlingConfigs
スロットル設定のリストを取得します
POST
/throttlingConfigs
スロットル設定を作成します
POST
/throttlingConfigs/{uid}/deploy
スロットル設定をデプロイします
POST
/throttlingConfigs/{uid}/undeploy
スロットル設定のデプロイを解除します
POST
/throttlingConfigs/{uid}/canDeploy
スロットル設定をデプロイできるかどうかを確認します
PUT
/throttlingConfigs/{uid}
スロットル設定を更新します
GET
/throttlingConfigs/{uid}
スロットル設定を取得します
DELETE
/throttlingConfigs/{uid}
スロットル設定を削除します

また、テスト設定に役立つ Postman コレクションについて詳しくは、こちらを参照してください。

このコレクションは、Adobe I/O コンソールの統合/試す/Postman 用にダウンロード​経由で生成された Postman 変数コレクションを共有するように設定されています。これにより、選択した統合値を含む Postman 環境ファイルが生成されます。

ダウンロードして Postman にアップロードしたら、{JO_HOST}、{BASE_PATH} および {SANDBOX_NAME} の 3 つの変数を追加する必要があります。

  • {JO_HOST}:Journey Optimizerゲートウェイ URL。
  • {BASE_PATH}:API のエントリポイント。
  • {SANDBOX_NAME}:API 操作が行われるサンドボックス名に対応するヘッダー x-sandbox-name(例えば、「prod」)。 詳しくは、サンドボックスの概要を参照してください。

スロットル設定  configuration

スロットル設定の構造は次のとおりです。 name 属性と description 属性はオプションです。

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

例:

{
  "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
設定は、デプロイ​エンドポイントを呼び出した後にのみアクティブになります。

スロットルは、リクエスト URLがデプロイされたurlPatternと一致する場合にのみ適用されます。 ワイルドカードはパターンのホスト部分では許可されていないため(以下のERR_THROTTLING_CONFIG_105を参照)、設定はそのエンドポイントホストに関連付けられます。 カスタムアクションエンドポイントがホストを変更した場合、アクティブなurlPatternがまだ新しいURLと一致することを確認し、必要に応じて設定を更新して再デプロイします。 標準制限は、組織ごとに1つの構成のままです。移行で以前のホストと新しいホストの両方を同時にカバーする必要がある場合は、Adobe カスタマーケアにお問い合わせください。

エラー

設定を作成または更新する際に、プロセスは指定された設定を検証し、設定の一意の ID で識別される検証ステータス(次のいずれか)を返します。

"ok" or "error"
IMPORTANT
属性 maxThroughput、urlPattern および methods は必須です。
maxThroughput 値は 200~5000 の範囲で設定する必要があります。

スロットル設定を作成、削除、またはデプロイする際に、次のエラーが発生する可能性があります。

  • ERR_THROTTLING_CONFIG_100:スロットル設定 : <mandatory attribute> は必須です
  • ERR_THROTTLING_CONFIG_101:config: maxThroughput のスロットルは必須で、200 以上 5,000 以下にする必要があります
  • ERR_THROTTLING_CONFIG_104:スロットル設定 : 不正な URL パターンです
  • ERR_THROTTLING_CONFIG_105:スロットル設定 : URL パターンのホスト部分ではワイルドカードは使用できません
  • ERR_THROTTLING_CONFIG_106:スロットル設定 : 無効なペイロードです
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR : 1456、「デプロイ済みのスロットル設定は削除できません。 デプロイを解除してから削除します」
  • THROTTLING_CONFIG_DELETE_ERROR : 1457、「スロットル設定を削除できません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_DEPLOY_ERROR : 1458、「スロットル設定をデプロイできません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_UNDEPLOY_ERROR : 1459、「スロットル設定のデプロイを解除できません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_GET_ERROR : 1460、「スロットル設定を取得できません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR : 1461、「スロットル設定を更新できません : ランタイムバージョンがアクティブではありません」
  • THROTTLING_CONFIG_UPDATE_ERROR : 1462、「スロットル設定を更新できません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR : 1463、「スロットル設定に対する操作が許可されていません : 実稼動以外のサンドボックスです」
  • THROTTLING_CONFIG_CREATE_ERROR : 1464、「スロットル設定を作成できません : 予期しないエラーが発生しました」
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR : 1465、「スロットル設定を作成できません : 1 組織あたり 1 つの設定のみ許可されます」
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR : 14466、「スロットル設定をデプロイできません : 既にデプロイされています」
  • THROTTLING_CONFIG_NOT_FOUND_ERROR : 14467、「スロットル設定が見つかりません」
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR : 14468、「スロットル設定のデプロイを解除できません : まだデプロイされていません」

エラーの例

実稼動以外のサンドボックスで設定を作成しようとした場合:

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

指定されたサンドボックスが存在しない場合:

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

別の設定を作成しようとした場合:

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

ランタイムレベルでの設定のライフサイクル config

設定のデプロイを解除すると、設定がランタイムレベルで非アクティブとマークされ、保留中のイベントは引き続き 24 時間処理されます。 その後、ランタイムサービスで削除されます。

設定のデプロイを解除した後は、設定を更新して再デプロイできます。 これにより、新しいランタイム設定が作成され、今後のアクションの実行で考慮されます。

既にデプロイされている設定を更新すると、新しい値が直ちに考慮されます。 基になるシステムリソースは、自動的に調整されます。 これは、設定をアンデプロイしてから再デプロイするよりも最適です。

応答の例 responses

作成 - 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"
}

更新 - 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"
    }
}

読み取り(更新後)- 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
    }
}

読み取り(デプロイ後)- 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
    }
}

ユースケース uc

この節では、Journey Optimizer でスロットル設定を管理するための主なユースケースと、そのユースケースを実装するために必要な関連 API コマンドについて説明します。

各API コマンドの詳細については、APIの説明とPostman コレクション ​を参照してください。

新しいスロットル設定の作成とデプロイ

使用する API 呼び出し:

  1. list - 既存の設定を取得します。
  2. create - 新しい設定を作成します。
  3. candeploy - 設定をデプロイできるかどうかを確認します。
  4. deploy - 設定をデプロイします。
スロットル設定の更新とデプロイ(まだデプロイされていません)

使用する API 呼び出し:

  1. list - 既存の設定を取得します。
  2. get - 特定の設定の詳細を取得します。
  3. update - 設定を変更します。
  4. candeploy - デプロイメントの実施要件を確認します。
  5. deploy - 設定をデプロイします。
デプロイ済みのスロットル設定のデプロイ解除と削除

使用する API 呼び出し:

  1. list - 既存の設定を取得します。
  2. undeploy - 設定をデプロイ解除します。
  3. delete - 設定を削除します。
デプロイ済みのスロットル設定の削除

1 回の API 呼び出しのみで、forceDelete パラメーターを使用して設定をデプロイ解除および削除できます。

使用する API 呼び出し:

  1. list - 既存の設定を取得します。
  2. delete(forceDelete パラメーターを使用)- デプロイ済みの設定を 1 つの手順で強制的に削除します。
既にデプロイ済みのスロットル設定の更新
note
NOTE
更新する前に設定をアンデプロイする必要はありません。

使用する API 呼び出し:

  1. list - 既存の設定を取得します。
  2. get - 特定の設定の詳細を取得します。
  3. update - 設定を変更します。
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