[要約] RFC 8007は、CDN間の制御インターフェースとトリガーに関する標準仕様です。その目的は、異なるCDN間でのコンテンツの配信を効率的に制御するための共通のインターフェースを提供することです。

Internet Engineering Task Force (IETF)                         R. Murray
Request for Comments: 8007                              B. Niven-Jenkins
Category: Standards Track                                          Nokia
ISSN: 2070-1721                                            December 2016
        

Content Delivery Network Interconnection (CDNI) Control Interface / Triggers

コンテンツ配信ネットワーク相互接続(CDNI)制御インターフェース/トリガー

Abstract

概要

This document describes the part of the Content Delivery Network Interconnection (CDNI) Control interface that allows a CDN to trigger activity in an interconnected CDN that is configured to deliver content on its behalf. The upstream CDN can use this mechanism to request that the downstream CDN pre-position metadata or content or to request that it invalidate or purge metadata or content. The upstream CDN can monitor the status of activity that it has triggered in the downstream CDN.

このドキュメントでは、コンテンツ配信ネットワーク相互接続(CDNI)制御インターフェースの一部について説明します。これにより、CDNは、コンテンツを配信するように構成された相互接続されたCDNでアクティビティをトリガーできます。アップストリームCDNはこのメカニズムを使用して、ダウンストリームCDNの事前配信メタデータまたはコンテンツを要求したり、メタデータまたはコンテンツを無効化またはパージするよう要求したりできます。アップストリームCDNは、ダウンストリームCDNでトリガーしたアクティビティのステータスを監視できます。

Status of This Memo

本文書の状態

This is an Internet Standards Track document.

これはInternet Standards Trackドキュメントです。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

このドキュメントは、IETF(Internet Engineering Task Force)の製品です。これは、IETFコミュニティのコンセンサスを表しています。公開レビューを受け、インターネットエンジニアリングステアリンググループ(IESG)による公開が承認されました。インターネット標準の詳細については、RFC 7841のセクション2をご覧ください。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc8007.

このドキュメントの現在のステータス、正誤表、およびフィードバックの提供方法に関する情報は、http://www.rfc-editor.org/info/rfc8007で入手できます。

Copyright Notice

著作権表示

Copyright (c) 2016 IETF Trust and the persons identified as the document authors. All rights reserved.

Copyright(c)2016 IETF Trustおよびドキュメントの作成者として識別された人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

この文書は、BCP 78およびIETF文書に関するIETFトラストの法的規定(http://trustee.ietf.org/license-info)の対象であり、この文書の発行日に有効です。これらのドキュメントは、このドキュメントに関するあなたの権利と制限を説明しているため、注意深く確認してください。このドキュメントから抽出されたコードコンポーネントには、Trust Legal Provisionsのセクション4.eに記載されているSimplified BSD Licenseのテキストが含まれている必要があり、Simplified BSD Licenseに記載されているように保証なしで提供されます。

Table of Contents

目次

   1. Introduction ....................................................3
      1.1. Terminology ................................................4
   2. Model for CDNI Triggers .........................................4
      2.1. Timing of Triggered Activity ...............................6
      2.2. Scope of Triggered Activity ................................7
           2.2.1. Multiple Interconnected CDNs ........................7
      2.3. Trigger Results ............................................8
   3. Collections of Trigger Status Resources .........................9
   4. CDNI Trigger Interface .........................................10
      4.1. Creating Triggers .........................................11
      4.2. Checking Status ...........................................12
           4.2.1. Polling Trigger Status Resource Collections ........12
           4.2.2. Polling Trigger Status Resources ...................13
      4.3. Canceling Triggers ........................................13
      4.4. Deleting Triggers .........................................14
      4.5. Expiry of Trigger Status Resources ........................14
      4.6. Loop Detection and Prevention .............................15
      4.7. Error Handling ............................................15
      4.8. Content URLs ..............................................16
   5. CI/T Object Properties and Encoding ............................17
      5.1. CI/T Objects ..............................................17
           5.1.1. CI/T Commands ......................................17
           5.1.2. Trigger Status Resources ...........................18
           5.1.3. Trigger Collections ................................20
      5.2. Properties of CI/T Objects ................................21
           5.2.1. Trigger Specification ..............................21
           5.2.2. Trigger Type .......................................23
           5.2.3. Trigger Status .....................................24
           5.2.4. PatternMatch .......................................24
           5.2.5. Absolute Time ......................................25
           5.2.6. Error Description ..................................26
           5.2.7. Error Code .........................................26
   6. Examples .......................................................27
      6.1. Creating Triggers .........................................28
           6.1.1. Preposition ........................................28
           6.1.2. Invalidate .........................................30
      6.2. Examining Trigger Status ..................................32
           6.2.1. Collection of All Triggers .........................32
           6.2.2. Filtered Collections of Trigger Status Resources ...33
           6.2.3. Individual Trigger Status Resources ................34
           6.2.4. Polling for Changes in Status ......................36
           6.2.5. Deleting Trigger Status Resources ..................38
           6.2.6. Error Reporting ....................................39
        
   7. IANA Considerations ............................................40
      7.1. CDNI Payload Type Parameter Registrations .................40
      7.2. "CDNI CI/T Trigger Types" Registry ........................41
      7.3. "CDNI CI/T Error Codes" Registry ..........................41
   8. Security Considerations ........................................41
      8.1. Authentication, Authorization, Confidentiality,
           Integrity Protection ......................................42
      8.2. Denial of Service .........................................43
      8.3. Privacy ...................................................44
   9. References .....................................................44
      9.1. Normative References ......................................44
      9.2. Informative References ....................................45
   Appendix A. Formalization of the JSON Data ........................47
   Acknowledgments ...................................................49
   Authors' Addresses ................................................49
        
1. Introduction
1. はじめに

[RFC6707] introduces the problem scope for Content Delivery Network Interconnection (CDNI) and lists the four categories of interfaces that may be used to compose a CDNI solution (Control, Metadata, Request Routing, and Logging).

[RFC6707]は、コンテンツ配信ネットワーク相互接続(CDNI)の問題の範囲を紹介し、CDNIソリューション(制御、メタデータ、リクエストルーティング、およびロギング)を構成するために使用できるインターフェイスの4つのカテゴリを示します。

[RFC7336] expands on the information provided in [RFC6707] and describes each of the interfaces and the relationships between them in more detail.

[RFC7336]は、[RFC6707]で提供される情報を拡張し、各インターフェースとそれらの間の関係をより詳細に説明します。

This document describes the "CI/T" interface -- "CDNI Control interface / Triggers". It does not consider those parts of the Control interface that relate to configuration, bootstrapping, or authentication of CDN Interconnect interfaces. Section 4 of [RFC7337] identifies the requirements specific to the CI/T interface; requirements applicable to the CI/T interface are CI-1 to CI-6.

このドキュメントでは、「CI / T」インターフェース、「CDNIコントロールインターフェース/トリガー」について説明します。 CDN相互接続インターフェースの構成、ブートストラップ、または認証に関連する制御インターフェースの部分は考慮されません。 [RFC7337]のセクション4は、CI / Tインターフェースに固有の要件を示しています。 CI / Tインターフェイスに適用される要件は、CI-1からCI-6です。

o Section 2 outlines the model for the CI/T interface at a high level.

o セクション2では、CI / Tインターフェースのモデルの概要を説明します。

o Section 3 describes collections of Trigger Status Resources.

o セクション3では、トリガーステータスリソースのコレクションについて説明します。

o Section 4 defines the web service provided by the downstream CDN.

o セクション4では、ダウンストリームCDNによって提供されるWebサービスを定義します。

o Section 5 lists properties of CI/T Commands and Status Resources.

o セクション5は、CI / Tコマンドとステータスリソースのプロパティの一覧です。

o Section 6 contains example messages.

o セクション6には、メッセージの例が含まれています。

1.1. Terminology
1.1. 用語

This document reuses the terminology defined in [RFC6707] and uses "uCDN" and "dCDN" as shorthand for "upstream CDN" and "downstream CDN", respectively.

このドキュメントでは、[RFC6707]で定義されている用語を再利用し、「uCDN」と「dCDN」をそれぞれ「上流CDN」と「下流CDN」の省略形として使用します。

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].

このドキュメントのキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、および「OPTIONAL」は、 RFC 2119 [RFC2119]で説明されているように解釈されます。

2. Model for CDNI Triggers
2. CDNIトリガーのモデル

A CI/T Command, sent from the uCDN to the dCDN, is a request for the dCDN to do some work relating to data associated with content requests originating from the uCDN.

uCDNからdCDNに送信されるCI / Tコマンドは、uCDNから発信されたコンテンツ要求に関連するデータに関連するいくつかの作業をdCDNに要求するものです。

There are two types of CI/T Commands: CI/T Trigger Commands and CI/T Cancel Commands. The CI/T Cancel Command can be used to request cancellation of an earlier CI/T Trigger Command. A CI/T Trigger Command is of one of the following types:

CI / Tコマンドには、CI / TトリガーコマンドとCI / Tキャンセルコマンドの2種類があります。 CI / Tキャンセルコマンドを使用して、以前のCI / Tトリガーコマンドのキャンセルを要求できます。 CI / Tトリガーコマンドは、次のいずれかのタイプです。

o preposition - used to instruct the dCDN to fetch metadata from the uCDN, or content from any origin including the uCDN.

o 前置詞-uCDNからメタデータ、またはuCDNを含む任意のオリジンからコンテンツをフェッチするようにdCDNに指示するために使用されます。

o invalidate - used to instruct the dCDN to revalidate specific metadata or content before reusing it.

o invalidate-特定のメタデータまたはコンテンツを再利用する前に再検証するようにdCDNに指示するために使用されます。

o purge - used to instruct the dCDN to delete specific metadata or content.

o パージ-特定のメタデータまたはコンテンツを削除するようにdCDNに指示するために使用されます。

The CI/T interface is a web service offered by the dCDN. It allows CI/T Commands to be issued and allows triggered activity to be tracked. The CI/T interface builds on top of HTTP/1.1 [RFC7230]. References to URL in this document relate to HTTP/HTTPS URIs, as defined in Section 2.7 of [RFC7230].

CI / Tインターフェースは、dCDNによって提供されるWebサービスです。 CI / Tコマンドを発行したり、トリガーされたアクティビティを追跡したりできます。 CI / TインターフェースはHTTP / 1.1 [RFC7230]の上に構築されています。このドキュメントでのURLの参照は、[RFC7230]のセクション2.7で定義されているHTTP / HTTPS URIに関連しています。

When the dCDN accepts a CI/T Command, it creates a resource describing the status of the triggered activity -- a Trigger Status Resource. The uCDN can poll Trigger Status Resources to monitor progress.

dCDNがCI / Tコマンドを受け入れると、トリガーされたアクティビティのステータスを説明するリソース、つまりトリガーステータスリソースが作成されます。 uCDNは、トリガーステータスリソースをポーリングして進行状況を監視できます。

The dCDN maintains at least one collection of Trigger Status Resources for each uCDN. Each uCDN only has access to its own collections, the locations of which are shared when CDNI is established.

dCDNは、uCDNごとに少なくとも1つのトリガーステータスリソースのコレクションを保持します。各uCDNは独自のコレクションにのみアクセスでき、その場所はCDNIが確立されるときに共有されます。

To trigger activity in the dCDN, the uCDN POSTs a CI/T Command to the collection of Trigger Status Resources. If the dCDN accepts the CI/T Command, it creates a new Trigger Status Resource and returns its location to the uCDN. To monitor progress, the uCDN can GET the Trigger Status Resource. To request cancellation of a CI/T Trigger Command, the uCDN can POST to the collection of Trigger Status Resources or simply delete the Trigger Status Resource.

dCDNでアクティビティをトリガーするために、uCDNはCI / TコマンドをトリガーステータスリソースのコレクションにPOSTします。 dCDNがCI / Tコマンドを受け入れると、新しいトリガーステータスリソースを作成し、その場所をuCDNに返します。進行状況を監視するために、uCDNはトリガーステータスリソースを取得できます。 CI / Tトリガーコマンドのキャンセルを要求するには、uCDNはトリガーステータスリソースのコレクションにPOSTするか、単にトリガーステータスリソースを削除します。

In addition to the collection of all Trigger Status Resources for the uCDN, the dCDN can maintain filtered views of that collection. These filtered views are defined in Section 3 and include collections of Trigger Status Resources corresponding to active and completed CI/T Trigger Commands. These collections provide a mechanism for polling the status of multiple jobs.

uCDNのすべてのトリガーステータスリソースのコレクションに加えて、dCDNはそのコレクションのフィルターされたビューを維持できます。これらのフィルターされたビューはセクション3で定義され、アクティブで完了したCI / Tトリガーコマンドに対応するトリガーステータスリソースのコレクションが含まれます。これらのコレクションは、複数のジョブのステータスをポーリングするためのメカニズムを提供します。

Figure 1 is an example showing the basic message flow used by the uCDN to trigger activity in the dCDN and for the uCDN to discover the status of that activity. Only successful triggering is shown. Examples of the messages are given in Section 6.

図1は、uCDNがdCDNでアクティビティをトリガーし、uCDNがそのアクティビティのステータスを検出するために使用する基本的なメッセージフローを示す例です。成功したトリガーのみが表示されます。メッセージの例をセクション6に示します。

      uCDN                                                   dCDN
       |    (1) POST https://dcdn.example.com/triggers/uCDN    |
      [ ] --------------------------------------------------> [ ]--+
       |                                                      [ ]  | (2)
       |    (3) HTTP 201 Response                             [ ]<-+
      [ ] <-------------------------------------------------- [ ]
       |     Loc: https://dcdn.example.com/triggers/uCDN/123   |
       |                                                       |
       .                           .                           .
       .                           .                           .
       .                           .                           .
       |                                                       |
       |   (4) GET https://dcdn.example.com/triggers/uCDN/123  |
      [ ] --------------------------------------------------> [ ]
       |                                                      [ ]
       |   (5) HTTP 200 Trigger Status Resource               [ ]
      [ ] <-------------------------------------------------- [ ]
       |                                                       |
       |                                                       |
        

Figure 1: Basic CDNI Message Flow for Triggers

図1:トリガーの基本的なCDNIメッセージフロー

The steps in Figure 1 are as follows:

図1の手順は次のとおりです。

1. The uCDN triggers action in the dCDN by POSTing a CI/T Command to a collection of Trigger Status Resources -- "https://dcdn.example.com/triggers/uCDN". This URL was given to the uCDN when the CI/T interface was established.

1. uCDNは、CI / Tコマンドをトリガーステータスリソースのコレクション(「https://dcdn.example.com/triggers/uCDN」)にPOSTすることにより、dCDNでアクションをトリガーします。このURLは、CI / Tインターフェースが確立されたときにuCDNに与えられました。

2. The dCDN authenticates the request, validates the CI/T Command, and, if it accepts the request, creates a new Trigger Status Resource.

2. dCDNは要求を認証し、CI / Tコマンドを検証し、要求を受け入れる場合は、新しいトリガーステータスリソースを作成します。

3. The dCDN responds to the uCDN with an HTTP 201 response status and the location of the Trigger Status Resource.

3. dCDNは、HTTP 201応答ステータスとトリガーステータスリソースの場所でuCDNに応答します。

4. The uCDN can poll, possibly repeatedly, the Trigger Status Resource in the dCDN.

4. uCDNは、dCDNのトリガーステータスリソースを、場合によっては繰り返しポーリングできます。

5. The dCDN responds with the Trigger Status Resource, describing the progress or results of the CI/T Trigger Command.

5. dCDNは、CI / Tトリガーコマンドの進行状況または結果を説明するトリガーステータスリソースで応答します。

The remainder of this document describes the messages, Trigger Status Resources, and collections of Trigger Status Resources in more detail.

このドキュメントの残りの部分では、メッセージ、トリガーステータスリソース、およびトリガーステータスリソースのコレクションについて詳しく説明します。

2.1. Timing of Triggered Activity
2.1. トリガーされたアクティビティのタイミング

Timing of the execution of CI/T Commands is under the dCDN's control, including its start time and pacing of the activity in the network.

CI / Tコマンドの実行タイミングは、dCDNの制御下にあります。これには、その開始時刻やネットワーク内のアクティビティのペーシングが含まれます。

CI/T "invalidate" and "purge" commands MUST be applied to all data acquired before the command was accepted by the dCDN. The dCDN SHOULD NOT apply CI/T "invalidate" and "purge" commands to data acquired after the CI/T Command was accepted, but this may not always be achievable, so the uCDN cannot count on that.

CI / Tの「無効化」および「パージ」コマンドは、コマンドがdCDNによって受け入れられる前に取得されたすべてのデータに適用する必要があります。 dCDNは、CI / Tコマンドが受け入れられた後に取得されたデータにCI / Tの「無効化」および「パージ」コマンドを適用するべきではありません(SHOULD NOT)。

If the uCDN wishes to invalidate or purge content and then immediately pre-position replacement content at the same URLs, it SHOULD ensure that the dCDN has completed the invalidate/purge before initiating the pre-positioning. Otherwise, there is a risk that the dCDN pre-positions the new content, then immediately invalidates or purges it (as a result of the two uCDN requests running in parallel).

uCDNがコンテンツを無効化またはパージし、すぐに同じURLで置換コンテンツを事前配信する場合は、事前配信を開始する前に、dCDNが無効化/パージを完了していることを確認する必要があります。そうしないと、dCDNが新しいコンテンツを事前配信し、(2つのuCDN要求が並行して実行された結果として)すぐに無効化またはパージされるリスクがあります。

Because the CI/T Command timing is under the dCDN's control, the dCDN implementation can choose whether to apply CI/T "invalidate" and "purge" commands to content acquisition that has already started when the command is received.

CI / TコマンドのタイミングはdCDNの制御下にあるため、dCDN実装は、コマンドの受信時にすでに開始されているコンテンツ取得にCI / Tの「無効化」および「パージ」コマンドを適用するかどうかを選択できます。

2.2. Scope of Triggered Activity
2.2. トリガーされるアクティビティの範囲

Each CI/T Command can operate on multiple metadata and content URLs.

各CI / Tコマンドは、複数のメタデータとコンテンツURLを操作できます。

Multiple representations of an HTTP resource may share the same URL. CI/T Trigger Commands that invalidate or purge metadata or content apply to all resource representations with matching URLs.

HTTPリソースの複数の表現が同じURLを共有する場合があります。メタデータまたはコンテンツを無効化またはパージするCI / Tトリガーコマンドは、一致するURLを持つすべてのリソース表現に適用されます。

2.2.1. Multiple Interconnected CDNs
2.2.1. 複数の相互接続されたCDN

In a network of interconnected CDNs, a single uCDN will originate a given item of metadata and associated content. It may distribute that metadata and content to more than one dCDN, which may in turn distribute that metadata and content to CDNs located further downstream.

相互接続されたCDNのネットワークでは、単一のuCDNがメタデータの特定のアイテムと関連コンテンツを発信します。そのメタデータとコンテンツを複数のdCDNに配信し、さらにそのメタデータとコンテンツをさらに下流にあるCDNに配信します。

An intermediate CDN is a dCDN that passes on CDNI Metadata and content to dCDNs located further downstream.

中間CDNは、CDNIメタデータとコンテンツをさらに下流にあるdCDNに渡すdCDNです。

A "diamond" configuration is one where a dCDN can acquire metadata and content originated in one uCDN from that uCDN itself and an intermediate CDN, or via more than one intermediate CDN.

「ダイヤモンド」構成とは、dCDNが1つのuCDNから発信されたメタデータとコンテンツを、そのuCDN自体と中間CDNから、または複数の中間CDNを介して取得できる構成です。

CI/T Commands originating in the single source uCDN affect metadata and content in all dCDNs; however, in a diamond configuration, it may not be possible for the dCDN to determine which uCDN it acquired content from. In this case, a dCDN MUST allow each uCDN from which it may have acquired the content to act upon that content using CI/T Commands.

単一のソースuCDNで作成されたCI / Tコマンドは、すべてのdCDNのメタデータとコンテンツに影響します。ただし、ひし形の構成では、dCDNがコンテンツを取得したuCDNを判別できない場合があります。この場合、dCDNは、コンテンツを取得した可能性のある各uCDNが、CI / Tコマンドを使用してそのコンテンツに作用することを許可する必要があります。

In all other cases, a dCDN MUST reject CI/T Commands from a uCDN that attempts to act on another uCDN's content by using, for example, HTTP 403 ("Forbidden").

他のすべてのケースでは、dCDNは、たとえばHTTP 403(「禁止」)を使用して別のuCDNのコンテンツに作用しようとするuCDNからのCI / Tコマンドを拒否する必要があります。

Security considerations are discussed further in Section 8.

セキュリティに関する考慮事項については、セクション8でさらに説明します。

The diamond configuration may lead to inefficient interactions, but the interactions are otherwise harmless. For example:

ダイヤモンド構成は非効率的な相互作用につながる可能性がありますが、相互作用は他の点では無害です。例えば:

o When the uCDN issues an "invalidate" CI/T Command, a dCDN will receive that command from multiple directly connected uCDNs. The dCDN may schedule multiple such commands separately, and the last scheduled command may affect content already revalidated following execution of the "invalidate" command that was scheduled first.

o uCDNが「無効化」CI / Tコマンドを発行すると、dCDNは複数の直接接続されたuCDNからそのコマンドを受信します。 dCDNは複数のそのようなコマンドを個別にスケジュールする場合があり、最後にスケジュールされたコマンドは、最初にスケジュールされた「無効化」コマンドの実行後にすでに再検証されたコンテンツに影響を与える可能性があります。

o If one of a dCDN's directly connected uCDNs loses its rights to distribute content, it may issue a CI/T "purge" command. That purge may affect content the dCDN could retain because it's distributed by another directly connected uCDN. But, that content can be reacquired by the dCDN from the remaining uCDN.

o dCDNに直接接続されているuCDNの1つがコンテンツを配信する権利を失うと、CI / Tの「パージ」コマンドが発行される場合があります。このパージは、dCDNが直接接続している別のuCDNによって配布されるため、dCDNが保持できるコンテンツに影響を与える可能性があります。ただし、そのコンテンツは、dCDNによって残りのuCDNから再取得できます。

o When the uCDN originating an item of content issues a CI/T purge followed by a pre-position, two directly connected uCDNs will pass those commands to a dCDN. That dCDN implementation need not merge those operations or notice the repetition, in which case the purge issued by one uCDN will complete before the other. The first uCDN to finish its purge may then forward the "preposition" trigger, and content pre-positioned as a result might be affected by the still-running purge issued by the other uCDN. However, the dCDN will reacquire that content as needed, or when it's asked to pre-position the content by the second uCDN. A dCDN implementation could avoid this interaction by knowing which uCDN it acquired the content from, or it could minimize the consequences by recording the time at which the "invalidate"/"purge" command was received and not applying it to content acquired after that time.

o コンテンツのアイテムを生成するuCDNがCI / Tパージを発行し、その後に事前配信を発行すると、2つの直接接続されたuCDNがそれらのコマンドをdCDNに渡します。そのdCDN実装は、これらの操作をマージしたり、繰り返しに気づく必要はありません。その場合、1つのuCDNによって発行されたパージは、他のuCDNの前に完了します。パージを完了した最初のuCDNが「事前配置」トリガーを転送し、結果として事前配置されたコンテンツが、他のuCDNによって発行された実行中のパージの影響を受ける可能性があります。ただし、dCDNは必要に応じて、または2番目のuCDNによってコンテンツを事前配信するように要求されたときに、そのコンテンツを再取得します。 dCDN実装は、コンテンツを取得したuCDNを知ることでこの相互作用を回避できます。または、「無効化」/「パージ」コマンドが受信された時間を記録し、それ以降に取得したコンテンツに適用しないことにより、結果を最小限に抑えることができます。

2.3. Trigger Results
2.3. トリガー結果

Possible states for a Trigger Status Resource are defined in Section 5.2.3.

トリガーステータスリソースの可能な状態は、セクション5.2.3で定義されています。

The CI/T Trigger Command MUST NOT be reported as "complete" until all actions have been completed successfully. The reasons for failure, and URLs or patterns affected, SHOULD be enumerated in the Trigger Status Resource. For more details, see Section 4.7.

CI / Tトリガーコマンドは、すべてのアクションが正常に完了するまで、「完了」と報告してはなりません。失敗の理由、および影響を受けるURLまたはパターンは、トリガーステータスリソースに列挙する必要があります。詳細については、セクション4.7を参照してください。

If a dCDN is also acting as a uCDN in a cascade, it MUST forward CI/T Commands to any dCDNs that may be affected. The CI/T Trigger Command MUST NOT be reported as "complete" in a CDN until it is "complete" in all of its dCDNs. If a CI/T Trigger Command is reported as "processed" in any dCDN, intermediate CDNs MUST NOT report "complete"; instead, they MUST also report "processed". A CI/T Command MAY be reported as "failed" as soon as it fails in a CDN or in any of its dCDNs. A canceled CI/T Trigger Command MUST be reported as "cancelling" until it has been reported as "cancelled", "complete", or "failed" by all dCDNs in a cascade.

dCDNがカスケードでuCDNとしても機能している場合、影響を受ける可能性のあるすべてのdCDNにCI / Tコマンドを転送する必要があります。 CI / Tトリガーコマンドは、すべてのdCDNで「完全」になるまで、CDNで「完全」と報告してはなりません。 CI / TトリガーコマンドがいずれかのdCDNで「処理済み」として報告されている場合、中間CDNは「完了」を報告してはなりません。代わりに、「処理済み」を報告する必要もあります。 CI / Tコマンドは、CDNまたはそのいずれかのdCDNで失敗するとすぐに「失敗」として報告される場合があります。キャンセルされたCI / Tトリガーコマンドは、カスケード内のすべてのdCDNによって「キャンセル」、「完了」、または「失敗」として報告されるまで、「キャンセル」として報告される必要があります。

3. Collections of Trigger Status Resources
3. トリガーステータスリソースのコレクション

As described in Section 2, Trigger Status Resources exist in the dCDN to report the status of activity triggered by each uCDN.

セクション2で説明したように、トリガーステータスリソースはdCDNに存在し、各uCDNによってトリガーされるアクティビティのステータスを報告します。

A collection of Trigger Status Resources is a resource that contains a reference to each Trigger Status Resource in that collection.

トリガーステータスリソースのコレクションは、そのコレクション内の各トリガーステータスリソースへの参照を含むリソースです。

The dCDN MUST make a collection of a uCDN's Trigger Status Resources available to that uCDN. This collection includes all of the Trigger Status Resources created for CI/T Commands from the uCDN that have been accepted by the dCDN, and have not yet been deleted by the uCDN, or expired and removed by the dCDN (as described in Section 4.4). Trigger Status Resources belonging to a uCDN MUST NOT be visible to any other CDN. The dCDN could, for example, achieve this by offering different collection URLs to each uCDN and by filtering the response based on the uCDN with which the HTTP client is associated.

dCDNは、そのuCDNが利用できるuCDNのトリガーステータスリソースのコレクションを作成する必要があります。このコレクションには、uCDNからCI / Tコマンド用に作成され、dCDNによって受け入れられ、uCDNによってまだ削除されていないか、dCDNによって期限切れにされて削除されたすべてのトリガーステータスリソースが含まれます(セクション4.4で説明)。 。 uCDNに属するトリガーステータスリソースは、他のCDNから見えてはなりません。 dCDNは、たとえば、各uCDNに異なるコレクションURLを提供し、HTTPクライアントが関連付けられているuCDNに基づいて応答をフィルタリングすることにより、これを実現できます。

To trigger activity in a dCDN or to cancel triggered activity, the uCDN POSTs a CI/T Command to the dCDN's collection of the uCDN's Trigger Status Resources.

dCDNでアクティビティをトリガーするか、トリガーされたアクティビティをキャンセルするには、uCDNはCI / TコマンドをuCDNのトリガーステータスリソースのdCDNのコレクションにPOSTします。

In order to allow the uCDN to check the status of multiple jobs in a single request, the dCDN MAY also maintain collections representing filtered views of the collection of all Trigger Status Resources. These filtered collections are "optional-to-implement", but if they are implemented, the dCDN MUST include links to them in the collection of all Trigger Status Resources. The filtered collections are:

uCDNが単一のリクエストで複数のジョブのステータスをチェックできるようにするために、dCDNはすべてのトリガーステータスリソースのコレクションのフィルターされたビューを表すコレクションを維持してもよい(MAY)。これらのフィルターされたコレクションは「実装がオプション」ですが、実装されている場合、dCDNはすべてのトリガーステータスリソースのコレクションにそれらへのリンクを含める必要があります。フィルタリングされたコレクションは次のとおりです。

o Pending - Trigger Status Resources for CI/T Trigger Commands that have been accepted but not yet acted upon.

o 保留中-受け入れられたがまだ処理されていないCI / Tトリガーコマンドのトリガーステータスリソース。

o Active - Trigger Status Resources for CI/T Trigger Commands that are currently being processed in the dCDN.

o アクティブ-現在dCDNで処理されているCI / Tトリガーコマンドのトリガーステータスリソース。

o Complete - Trigger Status Resources representing activity that completed successfully, and "processed" CI/T Trigger Commands for which no further status updates will be made by the dCDN.

o Complete-正常に完了したアクティビティを表すトリガーステータスリソース、およびdCDNによってステータスの更新が行われない「処理された」CI / Tトリガーコマンド。

o Failed - Trigger Status Resources representing CI/T Commands that failed or were canceled by the uCDN.

o Failed-uCDNによって失敗またはキャンセルされたCI / Tコマンドを表すトリガーステータスリソース。

4. CDNI Trigger Interface
4. CDNIトリガーインターフェイス

This section describes an interface to enable a uCDN to trigger activity in a dCDN.

このセクションでは、uCDNがdCDNでアクティビティをトリガーできるようにするインターフェイスについて説明します。

The CI/T interface builds on top of HTTP, so dCDNs may make use of any HTTP feature when implementing the CI/T interface. For example, a dCDN SHOULD make use of HTTP's caching mechanisms to indicate that a requested response/representation has not been modified, reducing the uCDN's processing needed to determine whether the status of triggered activity has changed.

CI / TインターフェースはHTTPの上に構築されるため、dCDNはCI / Tインターフェースを実装するときに任意のHTTP機能を利用できます。たとえば、dCDNはHTTPのキャッシュメカニズムを利用して、要求された応答/表現が変更されていないことを示す必要があるため(SHOULD)、トリガーされたアクティビティのステータスが変更されたかどうかを判断するために必要なuCDNの処理を削減します。

All dCDNs implementing CI/T MUST support the HTTP GET, HEAD, POST, and DELETE methods as defined in [RFC7231].

CI / Tを実装するすべてのdCDNは、[RFC7231]で定義されているHTTP GET、HEAD、POST、およびDELETEメソッドをサポートする必要があります。

The only representation specified in this document is JSON [RFC7159]. It MUST be supported by the uCDN and by the dCDN.

このドキュメントで指定されている唯一の表現はJSON [RFC7159]です。 uCDNとdCDNでサポートする必要があります。

The URL of the dCDN's collection of all Trigger Status Resources needs to be either discovered by or configured in the uCDN. The mechanism for discovery of that URL is outside the scope of this document.

すべてのトリガーステータスリソースのdCDNのコレクションのURLは、uCDNで検出するか、uCDNで構成する必要があります。そのURLを検出するメカニズムは、このドキュメントの範囲外です。

CI/T Commands are POSTed to the dCDN's collection of all Trigger Status Resources. If a CI/T Trigger Command is accepted by the dCDN, the dCDN creates a new Trigger Status Resource and returns its URI to the uCDN in an HTTP 201 response. The triggered activity can then be monitored by the uCDN using that resource and the collections described in Section 3.

CI / Tコマンドは、すべてのトリガーステータスリソースのdCDNのコレクションにPOSTされます。 CI / TトリガーコマンドがdCDNによって受け入れられると、dCDNは新しいトリガーステータスリソースを作成し、そのURIをHTTP 201応答でuCDNに返します。トリガーされたアクティビティは、そのリソースとセクション3で説明されているコレクションを使用してuCDNによって監視できます。

The URI of each Trigger Status Resource is returned to the uCDN when it is created, and URIs of all Trigger Status Resources are listed in the dCDN's collection of all Trigger Status Resources. This means all Trigger Status Resources can be discovered by the uCDN, so dCDNs are free to assign whatever structure they desire to the URIs for CI/T resources. Therefore, uCDNs MUST NOT make any assumptions regarding the structure of CI/T URIs or the mapping between CI/T objects and their associated URIs. URIs present in the examples in this document are purely illustrative and are not intended to impose a definitive structure on CI/T interface implementations.

各トリガーステータスリソースのURIは、作成時にuCDNに返され、すべてのトリガーステータスリソースのURIは、すべてのトリガーステータスリソースのdCDNのコレクションにリストされます。つまり、すべてのトリガーステータスリソースをuCDNで検出できるため、dCDNはCI / TリソースのURIに必要な構造を自由に割り当てることができます。したがって、uCDNは、CI / T URIの構造またはCI / Tオブジェクトとそれらに関連付けられたURIとの間のマッピングに関していかなる仮定も行わないでください。このドキュメントの例にあるURIは純粋に例示的なものであり、CI / Tインターフェイスの実装に明確な構造を課すことを意図したものではありません。

4.1. Creating Triggers
4.1. トリガーの作成

To issue a CI/T Command, the uCDN makes an HTTP POST to the dCDN's collection of all of the uCDN's Trigger Status Resources. The request body of that POST is a CI/T Command, as described in Section 5.1.1.

CI / Tコマンドを発行するために、uCDNは、すべてのuCDNのトリガーステータスリソースのdCDNのコレクションに対してHTTP POSTを実行します。セクション5.1.1で説明されているように、そのPOSTのリクエスト本文はCI / Tコマンドです。

The dCDN validates the CI/T Command. If the command is malformed or the uCDN does not have sufficient access rights, the dCDN MUST either respond with an appropriate 4xx HTTP error code and not create a Trigger Status Resource or create a "failed" Trigger Status Resource containing an appropriate Error Description.

dCDNはCI / Tコマンドを検証します。コマンドの形式が正しくない場合、またはuCDNに十分なアクセス権がない場合、dCDNは適切な4xx HTTPエラーコードで応答し、トリガーステータスリソースを作成しないか、適切なエラーの説明を含む「失敗した」トリガーステータスリソースを作成する必要があります。

When a CI/T Trigger Command is accepted, the uCDN MUST create a new Trigger Status Resource that will convey a specification of the CI/T Command and its current status. The HTTP response to the dCDN MUST have status code 201 and MUST convey the URI of the Trigger Status Resource in the Location header field [RFC7231]. The HTTP response SHOULD include the content of the newly created Trigger Status Resource. This is particularly important in cases where the CI/T Trigger Command has completed immediately.

CI / Tトリガーコマンドが受け入れられると、uCDNはCI / Tコマンドとその現在のステータスの仕様を伝える新しいトリガーステータスリソースを作成する必要があります。 dCDNへのHTTP応答にはステータスコード201が必要であり、ロケーションヘッダーフィールド[RFC7231]でトリガーステータスリソースのURIを伝達する必要があります。 HTTPレスポンスには、新しく作成されたトリガーステータスリソースのコンテンツを含める必要があります(SHOULD)。これは、CI / Tトリガーコマンドがすぐに完了した場合に特に重要です。

Once a Trigger Status Resource has been created, the dCDN MUST NOT reuse its URI, even after that Trigger Status Resource has been removed.

トリガーステータスリソースが作成されると、そのトリガーステータスリソースが削除された後でも、dCDNはそのURIを再利用してはなりません(MUST NOT)。

The dCDN SHOULD track and report on the progress of CI/T Trigger Commands using a Trigger Status Resource (Section 5.1.2). If the dCDN is not able to do that, it MUST indicate that it has accepted the request but will not be providing further status updates. To do this, it sets the status of the Trigger Status Resource to "processed". In this case, CI/T processing should continue as for a "complete" request, so the Trigger Status Resource MUST be added to the dCDN's collection of complete Trigger Status Resources. The dCDN SHOULD also provide an estimated completion time for the request by using the "etime" property of the Trigger Status Resource. This will allow the uCDN to schedule pre-positioning after an earlier delete of the same URLs is expected to have finished.

dCDNは、トリガーステータスリソースを使用してCI / Tトリガーコマンドの進行状況を追跡および報告する必要があります(セクション5.1.2)。 dCDNがそれを実行できない場合、dCDNは要求を受け入れたが、それ以上のステータス更新を提供しないことを示さなければなりません(MUST)。これを行うには、トリガーステータスリソースのステータスを「処理済み」に設定します。この場合、CI / T処理は「完了」リクエストの場合と同様に続行する必要があるため、トリガーステータスリソースをdCDNの完全なトリガーステータスリソースのコレクションに追加する必要があります。 dCDNは、トリガーステータスリソースの「etime」プロパティを使用して、リクエストの推定完了時間も提供する必要があります(SHOULD)。これにより、uCDNは、同じURLの以前の削除が完了すると予想された後に事前配置をスケジュールできます。

If the dCDN is able to track the execution of CI/T Commands and a CI/T Command is queued by the dCDN for later action, the "status" property of the Trigger Status Resource MUST be "pending". Once processing has started, the status MUST be "active". Finally, once the CI/T Command is complete, the status MUST be set to "complete" or "failed".

dCDNがCI / Tコマンドの実行を追跡でき、CI / Tコマンドが後のアクションのためにdCDNによってキューに入れられる場合、トリガーステータスリソースの「ステータス」プロパティは「保留」でなければなりません。処理が開始されると、ステータスは「アクティブ」になります。最後に、CI / Tコマンドが完了したら、ステータスを「完了」または「失敗」に設定する必要があります。

A CI/T Trigger Command may result in no activity in the dCDN if, for example, it is an "invalidate" or "purge" request for data the dCDN has not yet acquired, or a "preposition" request for data that it has already acquired and that is still valid. In this case, the status of the Trigger Status Resource MUST be "processed" or "complete", and the Trigger Status Resource MUST be added to the dCDN's collection of complete Trigger Status Resources.

CI / Tトリガーコマンドは、たとえば、dCDNがまだ取得していないデータの「無効化」または「パージ」リクエスト、またはそれが持っているデータの「事前配置」リクエストである場合、dCDNでアクティビティが発生しない場合があります。すでに取得しており、それはまだ有効です。この場合、トリガーステータスリソースのステータスは「処理済み」または「完了」である必要があり、トリガーステータスリソースはdCDNの完全なトリガーステータスリソースのコレクションに追加する必要があります。

Once created, Trigger Status Resources can be canceled or deleted by the uCDN, but not modified. The dCDN MUST reject PUT and POST requests from the uCDN to Trigger Status Resources by responding with an appropriate HTTP status code -- for example, 405 ("Method Not Allowed").

作成されたトリガーステータスリソースは、uCDNによってキャンセルまたは削除できますが、変更はできません。 dCDNは、適切なHTTPステータスコード(405(「メソッドは許可されていません」)など)で応答することにより、uCDNからステータスリソースをトリガーするPUTおよびPOSTリクエストを拒否する必要があります。

4.2. Checking Status
4.2. ステータスの確認

The uCDN has two ways to check the progress of CI/T Commands it has issued to the dCDN, as described in Sections 4.2.1 and 4.2.2.

セクション4.2.1および4.2.2で説明されているように、uCDNには、dCDNに対して発行したCI / Tコマンドの進行状況をチェックする2つの方法があります。

To allow the uCDN to check for changes in the status of a Trigger Status Resource or collection of Trigger Status Resources without refetching the whole resource or collection, the dCDN SHOULD include entity-tags (ETags) for the uCDN to use as cache validators, as defined in [RFC7232].

uCDNがリソースまたはコレクション全体を再フェッチせずにトリガーステータスリソースまたはトリガーステータスリソースのコレクションのステータスの変更を確認できるようにするには、dCDNにuCDNのエンティティタグ(ETags)を含めて、キャッシュ検証ツールとして使用する必要があります。 [RFC7232]で定義されています。

The dCDN SHOULD use the cache control headers for responses to GETs for Trigger Status Resources and Collections to indicate the frequency at which it recommends that the uCDN should poll for change.

dCDNは、トリガーステータスリソースとコレクションのGETへの応答にキャッシュコントロールヘッダーを使用して、uCDNが変更をポーリングすることを推奨する頻度を示す必要があります(SHOULD)。

4.2.1. Polling Trigger Status Resource Collections
4.2.1. ポーリングトリガーステータスリソースコレクション

The uCDN can fetch the collection of its Trigger Status Resources or filtered views of that collection.

uCDNは、トリガーステータスリソースのコレクションまたはそのコレクションのフィルターされたビューをフェッチできます。

This makes it possible to poll the status of all CI/T Trigger Commands in a single request. If the dCDN moves a Trigger Status Resource from the active to the completed collection, the uCDN can fetch the result of that activity.

これにより、1つのリクエストですべてのCI / Tトリガーコマンドのステータスをポーリングできます。 dCDNがトリガーステータスリソースをアクティブコレクションから完了したコレクションに移動すると、uCDNはそのアクティビティの結果をフェッチできます。

When polling in this way, the uCDN SHOULD use HTTP ETags to monitor for change, rather than repeatedly fetching the whole collection. An example of this is given in Section 6.2.4.

この方法でポーリングする場合、uCDNはコレクション全体を繰り返しフェッチするのではなく、HTTP ETagを使用して変更を監視する必要があります(SHOULD)。この例は、セクション6.2.4にあります。

4.2.2. Polling Trigger Status Resources
4.2.2. ポーリングトリガーステータスリソース

The uCDN has a URI provided by the dCDN for each Trigger Status Resource it has created. It may fetch that Trigger Status Resource at any time.

uCDNには、作成したトリガーステータスリソースごとにdCDNによって提供されるURIがあります。そのトリガーステータスリソースはいつでもフェッチできます。

This can be used to retrieve progress information and to fetch the result of the CI/T Command.

これは、進行情報を取得し、CI / Tコマンドの結果をフェッチするために使用できます。

When polling in this way, the uCDN SHOULD use HTTP ETags to monitor for change, rather than repeatedly fetching the Trigger Status Resource.

この方法でポーリングする場合、uCDNはトリガー状態リソースを繰り返しフェッチするのではなく、HTTP ETagを使用して変更を監視する必要があります(SHOULD)。

4.3. Canceling Triggers
4.3. トリガーのキャンセル

The uCDN can request cancellation of a CI/T Trigger Command by POSTing a CI/T Cancel Command to the collection of all Trigger Status Resources.

uCDNは、CI / TキャンセルコマンドをすべてのトリガーステータスリソースのコレクションにPOSTすることにより、CI / Tトリガーコマンドのキャンセルを要求できます。

The dCDN is required to accept and respond to the CI/T Cancel Command, but the actual cancellation of a CI/T Trigger Command is optional-to-implement.

CI / Tキャンセルコマンドを受け入れて応答するには、dCDNが必要ですが、CI / Tトリガーコマンドの実際のキャンセルは実装するのが任意です。

The dCDN MUST respond to the CI/T Cancel Command appropriately -- for example, with HTTP status code 200 ("OK") if the cancellation has been processed and the CI/T Command is inactive, 202 ("Accepted") if the command has been accepted but the CI/T Command remains active, or 501 ("Not Implemented") if cancellation is not supported by the dCDN.

dCDNは、CI / Tキャンセルコマンドに適切に応答する必要があります。たとえば、キャンセルが処理され、CI / Tコマンドが非アクティブの場合はHTTPステータスコード200( "OK")、202( "受理")の場合はコマンドは受け入れられましたが、CI / Tコマンドはアクティブのままです。キャンセルがdCDNでサポートされていない場合は、501(「未実装」)のままです。

If cancellation of a "pending" Trigger Status Resource is accepted by the dCDN, the dCDN SHOULD NOT start the processing of that activity. Issuing a CI/T Cancel Command for a "pending" Trigger Status Resource does not, however, guarantee that the corresponding activity will not be started, because the uCDN cannot control the timing of that activity. Processing could, for example, start after the POST is sent by the uCDN but before that request is processed by the dCDN.

「保留中」のトリガーステータスリソースのキャンセルがdCDNによって受け入れられた場合、dCDNはそのアクティビティの処理を開始しないでください(SHOULD NOT)。ただし、「保留中」のトリガーステータスリソースに対してCI / Tキャンセルコマンドを発行しても、uCDNがそのアクティビティのタイミングを制御できないため、対応するアクティビティが開始されないことは保証されません。たとえば、処理はuCDNによってPOSTが送信された後、その要求がdCDNによって処理される前に開始できます。

If cancellation of an "active" or "processed" Trigger Status Resource is accepted by the dCDN, the dCDN SHOULD stop processing the CI/T Command. However, as with cancellation of a "pending" CI/T Command, the dCDN does not guarantee this.

「アクティブ」または「処理済み」のトリガーステータスリソースのキャンセルがdCDNによって受け入れられた場合、dCDNはCI / Tコマンドの処理を停止する必要があります(SHOULD)。ただし、「保留中の」CI / Tコマンドのキャンセルと同様に、dCDNはこれを保証しません。

If the CI/T Command cannot be stopped immediately, the status in the corresponding Trigger Status Resource MUST be set to "cancelling", and the Trigger Status Resource MUST remain in the collection of Trigger Status Resources for active CI/T Commands. If processing is stopped before normal completion, the status value in the Trigger Status Resource MUST be set to "cancelled", and the Trigger Status Resource MUST be included in the collection of failed CI/T Trigger Commands.

CI / Tコマンドをすぐに停止できない場合は、対応するトリガーステータスリソースのステータスを「キャンセル」に設定する必要があり、トリガーステータスリソースはアクティブなCI / Tコマンドのトリガーステータスリソースのコレクションに残っている必要があります。正常に完了する前に処理が停止する場合、トリガーステータスリソースのステータス値を「キャンセル」に設定する必要があり、トリガーステータスリソースを失敗したCI / Tトリガーコマンドのコレクションに含める必要があります。

Cancellation of a "complete" or "failed" Trigger Status Resource requires no processing in the dCDN. Its status MUST NOT be changed to "cancelled".

「完了」または「失敗」のトリガーステータスリソースのキャンセルには、dCDNでの処理は必要ありません。そのステータスを「キャンセル済み」に変更してはなりません。

4.4. Deleting Triggers
4.4. トリガーの削除

The uCDN can delete Trigger Status Resources at any time, using the HTTP DELETE method. The effect is similar to cancellation, but no Trigger Status Resource remains afterwards.

uCDNは、HTTP DELETEメソッドを使用して、いつでもトリガーステータスリソースを削除できます。効果はキャンセルに似ていますが、その後にトリガーステータスリソースは残りません。

Once deleted, the references to a Trigger Status Resource MUST be removed from all Trigger Status Resource collections. Subsequent requests to GET the deleted Trigger Status Resource SHOULD be rejected by the dCDN with an HTTP error.

削除したら、トリガーステータスリソースへの参照をすべてのトリガーステータスリソースコレクションから削除する必要があります。削除されたトリガーステータスリソースを取得する後続のリクエストは、HTTPエラーでdCDNによって拒否される必要があります。

If a "pending" Trigger Status Resource is deleted, the dCDN SHOULD NOT start the processing of that activity. Deleting a "pending" Trigger Status Resource does not, however, guarantee that it has not started, because the uCDN cannot control the timing of that activity. Processing may, for example, start after the DELETE is sent by the uCDN but before that request is processed by the dCDN.

「保留中」のトリガーステータスリソースが削除された場合、dCDNはそのアクティビティの処理を開始すべきではありません(SHOULD NOT)。 「保留中」のトリガーステータスリソースを削除しても、uCDNがそのアクティビティのタイミングを制御できないため、リソースが開始されていないことは保証されません。処理は、たとえば、DELETEがuCDNによって送信された後、その要求がdCDNによって処理される前に開始されます。

If an "active" or "processed" Trigger Status Resource is deleted, the dCDN SHOULD stop processing the CI/T Command. However, as with deletion of a "pending" Trigger Status Resource, the dCDN does not guarantee this.

「アクティブ」または「処理済み」のトリガーステータスリソースが削除された場合、dCDNはCI / Tコマンドの処理を停止する必要があります(SHOULD)。ただし、「保留中」のトリガーステータスリソースの削除と同様に、dCDNはこれを保証しません。

Deletion of a "complete" or "failed" Trigger Status Resource requires no processing in the dCDN other than deletion of the Trigger Status Resource.

「完了」または「失敗」のトリガーステータスリソースを削除するには、トリガーステータスリソースを削除する以外に、dCDNでの処理は必要ありません。

4.5. Expiry of Trigger Status Resources
4.5. トリガーステータスリソースの期限切れ

The dCDN can choose to automatically delete Trigger Status Resources some time after they become "complete", "processed", "failed", or "cancelled". In this case, the dCDN will remove the Trigger Status Resource and respond to subsequent requests for it with an HTTP error.

dCDNは、「完了」、「処理済み」、「失敗」、または「キャンセル」になった後、トリガーステータスリソースを自動的に削除することを選択できます。この場合、dCDNはトリガーステータスリソースを削除し、それに対する後続のリクエストにHTTPエラーで応答します。

If the dCDN does remove Trigger Status Resources automatically, it MUST report the length of time after which it will do so, using a property of the collection of all Trigger Status Resources. It is RECOMMENDED that Trigger Status Resources are not automatically deleted by the dCDN for at least 24 hours after they become "complete", "processed", "failed", or "cancelled".

dCDNがトリガーステータスリソースを自動的に削除する場合、すべてのトリガーステータスリソースのコレクションのプロパティを使用して、削除するまでの時間を報告する必要があります。トリガーステータスリソースは、「完了」、「処理」、「失敗」、または「キャンセル」になってから少なくとも24時間はdCDNによって自動的に削除されないことをお勧めします。

To ensure that it is able to get the status of its Trigger Status Resources for completed and failed CI/T Commands, it is RECOMMENDED that the uCDN polling interval is less than the time after which records for completed activity will be deleted.

完了および失敗したCI / Tコマンドのトリガーステータスリソースのステータスを確実に取得できるようにするために、uCDNポーリング間隔は、完了したアクティビティのレコードが削除されるまでの時間よりも短いことが推奨されます。

4.6. Loop Detection and Prevention
4.6. ループの検出と防止

Given three CDNs, A, B, and C, if CDNs B and C delegate delivery of CDN A's content to each other, CDN A's CI/T Commands could be passed between CDNs B and C in a loop. More complex networks of CDNs could contain similar loops involving more hops.

A、B、Cの3つのCDNがある場合、CDN BとCがCDN Aのコンテンツの配信を相互に委任すると、CDN AのCI / TコマンドがCDN BとCの間でループで渡される可能性があります。 CDNのより複雑なネットワークには、より多くのホップを含む同様のループが含まれる可能性があります。

In order to prevent and detect such CI/T loops, each CDN uses a CDN Provider ID (PID) to uniquely identify itself. In every CI/T Command it originates or cascades, each CDN MUST append an array element containing its CDN PID to a JSON array under an entry named "cdn-path". When receiving CI/T Commands, a dCDN MUST check the cdn-path and reject any CI/T Command that already contains its own CDN PID in the cdn-path. Transit CDNs MUST check the cdn-path and not cascade the CI/T Command to dCDNs that are already listed in the cdn-path.

このようなCI / Tループを防止および検出するために、各CDNはCDNプロバイダーID(PID)を使用して自分自身を一意に識別します。それが発生またはカスケードするすべてのCI / Tコマンドでは、各CDNはCDN PIDを含む配列要素を「cdn-path」という名前のエントリの下のJSON配列に追加する必要があります。 CI / Tコマンドを受信するとき、dCDNはcdn-pathを確認し、cdn-pathに独自のCDN PIDがすでに含まれているCI / Tコマンドを拒否する必要があります。中継CDNはcdn-pathをチェックしなければならず、すでにcdn-pathにリストされているdCDNにCI / Tコマンドをカスケードしないでください。

The CDN PID consists of the two characters "AS" followed by the CDN provider's Autonomous System number [RFC1930], then a colon (":") and an additional qualifier that is used to guarantee uniqueness in case a particular AS has multiple independent CDNs deployed -- for example, "AS64496:0".

CDN PIDは、2つの文字「AS」と、それに続くCDNプロバイダーの自律システム番号[RFC1930]、コロン(「:」)、および特定のASに複数の独立したCDNがある場合に一意性を保証するために使用される追加の修飾子で構成されますデプロイ済み-たとえば、「AS64496:0」。

If the CDN provider has multiple ASes, the same AS number SHOULD be used in all messages from that CDN provider, unless there are multiple distinct CDNs.

CDNプロバイダーに複数のASがある場合、複数の異なるCDNがない限り、そのCDNプロバイダーからのすべてのメッセージで同じAS番号を使用する必要があります(SHOULD)。

If the CDNI Request Routing Redirection interface (RI) described in [RFC7975] is implemented by the dCDN, the CI/T interface and the RI SHOULD use the same CDN PID.

[RFC7975]で説明されているCDNI Request Routing Redirectionインターフェイス(RI)がdCDNによって実装されている場合、CI / TインターフェイスとRIは同じCDN PIDを使用する必要があります(SHOULD)。

4.7. Error Handling
4.7. エラー処理

A dCDN can signal rejection of a CI/T Command using HTTP status codes -- for example, 400 ("Bad Request") if the request is malformed, or 403 ("Forbidden") or 404 ("Not Found") if the uCDN does not have permission to issue CI/T Commands or it is trying to act on another CDN's data.

dCDNは、HTTPステータスコードを使用してCI / Tコマンドの拒否を通知できます。たとえば、リクエストが不正な形式の場合は400(「不正なリクエスト」)、次の場合は403(「禁止」)または404(「見つかりません」) uCDNにCI / Tコマンドを発行する権限がないか、別のCDNのデータを操作しようとしています。

If any part of the CI/T Trigger Command fails, the trigger SHOULD be reported as "failed" once its activity is complete or if no further errors will be reported. The "errors" property in the Trigger Status Resource will be used to enumerate which actions failed and the reasons for failure, and can be present while the Trigger Status Resource is still "pending" or "active", if the CI/T Trigger Command is still running for some URLs or patterns in the Trigger Specification.

CI / Tトリガーコマンドのいずれかの部分が失敗した場合、そのアクティビティが完了するか、それ以上のエラーが報告されない場合、トリガーは「失敗」として報告される必要があります(SHOULD)。トリガーステータスリソースの「エラー」プロパティは、失敗したアクションと失敗の理由を列挙するために使用され、CI / Tトリガーコマンドの場合、トリガーステータスリソースがまだ「保留中」または「アクティブ」であるときに表示できます。トリガー仕様の一部のURLまたはパターンでまだ実行中です。

Once a request has been accepted, processing errors are reported in the Trigger Status Resource using a list of Error Descriptions. Each Error Description is used to report errors against one or more of the URLs or patterns in the Trigger Specification.

要求が受け入れられると、処理エラーは、エラーの説明のリストを使用してトリガーステータスリソースに報告されます。各エラーの説明は、トリガー仕様の1つ以上のURLまたはパターンに対するエラーを報告するために使用されます。

If a Surrogate affected by a CI/T Trigger Command is offline in the dCDN or the dCDN is unable to pass a CI/T Command on to any of its cascaded dCDNs:

CI / Tトリガーコマンドの影響を受けるサロゲートがdCDNでオフラインであるか、dCDNがCI / TコマンドをカスケードされたdCDNのいずれにも渡すことができない場合:

o If the CI/T Command is abandoned by the dCDN, the dCDN SHOULD report an error.

o CI / TコマンドがdCDNによって破棄された場合、dCDNはエラーを報告する必要があります(SHOULD)。

o A CI/T "invalidate" command may be reported as "complete" when Surrogates that may have the data are offline. In this case, Surrogates MUST NOT use the affected data without first revalidating it when they are back online.

o データがある可能性のあるサロゲートがオフラインの場合、CI / Tの「無効化」コマンドは「完了」として報告されることがあります。この場合、サロゲートは、オンラインに戻ったときに最初に再検証することなく、影響を受けるデータを使用してはなりません(MUST NOT)。

o CI/T "preposition" and "purge" commands can be reported as "processed" if affected caches are offline and the activity will complete when they return to service.

o 影響を受けるキャッシュがオフラインで、サービスに戻ったときにアクティビティが完了する場合、CI / Tの「事前配置」および「パージ」コマンドは「処理済み」として報告されます。

o Otherwise, the dCDN SHOULD keep the Trigger Status Resource in state "pending" or "active" until either the CI/T Command is acted upon or the uCDN chooses to cancel it.

o それ以外の場合、CI / Tコマンドが実行されるか、uCDNがキャンセルすることを選択するまで、dCDNはトリガーステータスリソースを「保留中」または「アクティブ」の状態に維持する必要があります(SHOULD)。

4.8. Content URLs
4.8. コンテンツURL

If content URLs are transformed by an intermediate CDN in a cascade, that intermediate CDN MUST similarly transform URLs in CI/T Commands it passes to its dCDN.

コンテンツURLがカスケードの中間CDNによって変換される場合、その中間CDNは、dCDNに渡すCI / TコマンドのURLも同様に変換する必要があります。

When processing Trigger Specifications, CDNs MUST ignore the URL scheme (HTTP or HTTPS) in comparing URLs. For example, for a CI/T "invalidate" or "purge" command, content MUST be invalidated or purged regardless of the protocol clients used to request it.

トリガー仕様を処理するとき、CDNはURLの比較でURLスキーム(HTTPまたはHTTPS)を無視する必要があります。たとえば、CI / Tの「無効化」または「パージ」コマンドの場合、要求に使用されたプロトコルクライアントに関係なく、コンテンツを無効化またはパージする必要があります。

5. CI/T Object Properties and Encoding
5. CI / Tオブジェクトのプロパティとエンコーディング

The CI/T Commands, Trigger Status Resources, and Trigger Collections, as well as their properties, are encoded using JSON, as defined in Sections 5.1.1, 5.1.2, and 5.1.3. They MUST use the MIME media type "application/cdni", with parameter "ptype" values as defined below and in Section 7.1.

CI / Tコマンド、トリガーステータスリソース、トリガーコレクション、およびそれらのプロパティは、セクション5.1.1、5.1.2、および5.1.3で定義されているように、JSONを使用してエンコードされます。これらは、MIMEメディアタイプ「application / cdni」を使用する必要があります。パラメータの「ptype」値は、以下とセクション7.1で定義されています。

Names in JSON are case sensitive. The names and literal values specified in the present document MUST always use lowercase.

JSONの名前は大文字と小文字が区別されます。現在のドキュメントで指定されている名前とリテラル値は、常に小文字を使用する必要があります。

JSON types, including "object", "array", "number", and "string", are defined in [RFC7159].

「object」、「array」、「number」、「string」を含むJSONタイプは、[RFC7159]で定義されています。

Unrecognized name/value pairs in JSON objects SHOULD NOT be treated as an error by either the uCDN or dCDN. They SHOULD be ignored during processing and passed on by the dCDN to any further dCDNs in a cascade.

JSONオブジェクト内の認識されない名前/値のペアは、uCDNまたはdCDNのいずれかによってエラーとして扱われるべきではありません(SHOULD NOT)。それらは処理中に無視されるべきであり、dCDNによってカスケード内の他のdCDNに渡されるべきです(SHOULD)。

5.1. CI/T Objects
5.1. CI / Tオブジェクト

The top-level objects defined by the CI/T interface are described in this section.

このセクションでは、CI / Tインターフェースによって定義される最上位オブジェクトについて説明します。

The encoding of values used by these objects is described in Section 5.2.

これらのオブジェクトで使用される値のエンコーディングについては、セクション5.2で説明しています。

5.1.1. CI/T Commands
5.1.1. CI / Tコマンド

CI/T Commands MUST use a MIME media type of "application/cdni; ptype=ci-trigger-command".

CI / Tコマンドは、「application / cdni; ptype = ci-trigger-command」のMIMEメディアタイプを使用する必要があります。

A CI/T Command is encoded as a JSON object containing the following name/value pairs.

CI / Tコマンドは、次の名前と値のペアを含むJSONオブジェクトとしてエンコードされます。

Name: trigger

名前:トリガー

Description: A specification of the trigger type and a set of data to act upon.

説明:トリガータイプの仕様と操作対象のデータセット。

Value: A Trigger Specification, as defined in Section 5.2.1.

値:セクション5.2.1で定義されているトリガー仕様。

Mandatory: No, but exactly one of "trigger" or "cancel" MUST be present in a CI/T Command.

必須:いいえ、ただし「トリガー」または「キャンセル」のどちらか一方のみがCI / Tコマンドに存在する必要があります。

Name: cancel

名前:キャンセル

Description: The URLs of Trigger Status Resources for CI/T Trigger Commands that the uCDN wants to cancel.

説明:uCDNがキャンセルするCI / TトリガーコマンドのトリガーステータスリソースのURL。

Value: A non-empty JSON array of URLs represented as JSON strings.

値:JSON文字列として表されるURLの空でないJSON配列。

Mandatory: No, but exactly one of "trigger" or "cancel" MUST be present in a CI/T Command.

必須:いいえ、ただし「トリガー」または「キャンセル」のどちらか一方のみがCI / Tコマンドに存在する必要があります。

Name: cdn-path

名前:cdn-path

Description: The CDN PIDs of CDNs that have already issued the CI/T Command to their dCDNs.

説明:すでにCI / TコマンドをdCDNに発行したCDNのCDN PID。

Value: A non-empty JSON array of JSON strings, where each string is a CDN PID as defined in Section 4.6.

値:JSON文字列の空でないJSON配列。各文字列は、セクション4.6で定義されているCDN PIDです。

Mandatory: Yes.

必須:はい。

5.1.2. Trigger Status Resources
5.1.2. トリガーステータスリソース

Trigger Status Resources MUST use a MIME media type of "application/cdni; ptype=ci-trigger-status".

トリガーステータスリソースは、「application / cdni; ptype = ci-trigger-status」のMIMEメディアタイプを使用する必要があります。

A Trigger Status Resource is encoded as a JSON object containing the following name/value pairs.

トリガーステータスリソースは、次の名前と値のペアを含むJSONオブジェクトとしてエンコードされます。

Name: trigger

名前:トリガー

Description: The Trigger Specification POSTed in the body of the CI/T Command. Note that this need not be a byte-for-byte copy. For example, in the JSON representation the dCDN may re-serialize the information differently.

説明:CI / Tコマンドの本文でPOSTされたトリガー仕様。これはバイト単位のコピーである必要はないことに注意してください。たとえば、JSON表現では、dCDNが情報を異なる方法で再シリアル化する場合があります。

Value: A Trigger Specification, as defined in Section 5.2.1.

値:セクション5.2.1で定義されているトリガー仕様。

Mandatory: Yes.

必須:はい。

Name: ctime

名前:ctime

Description: Time at which the CI/T Command was received by the dCDN. Time is determined by the dCDN; there is no requirement to synchronize clocks between interconnected CDNs.

説明:CI / TコマンドがdCDNによって受信された時刻。時間はdCDNによって決定されます。相互接続されたCDN間でクロックを同期する必要はありません。

Value: Absolute Time, as defined in Section 5.2.5.

値:セクション5.2.5で定義されている絶対時間。

Mandatory: Yes.

必須:はい。

Name: mtime

名前:mtime

Description: Time at which the Trigger Status Resource was last modified. Time is determined by the dCDN; there is no requirement to synchronize clocks between interconnected CDNs.

説明:トリガーステータスリソースが最後に変更された時刻。時間はdCDNによって決定されます。相互接続されたCDN間でクロックを同期する必要はありません。

Value: Absolute Time, as defined in Section 5.2.5.

値:セクション5.2.5で定義されている絶対時間。

Mandatory: Yes.

必須:はい。

Name: etime

名前:etime

Description: Estimate of the time at which the dCDN expects to complete the activity. Time is determined by the dCDN; there is no requirement to synchronize clocks between interconnected CDNs.

説明:dCDNがアクティビティーを完了すると予想する時間の見積もり。時間はdCDNによって決定されます。相互接続されたCDN間でクロックを同期する必要はありません。

Value: Absolute Time, as defined in Section 5.2.5.

値:セクション5.2.5で定義されている絶対時間。

Mandatory: No.

まんだとry: の。

Name: status

名前:ステータス

Description: Current status of the triggered activity.

説明:トリガーされたアクティビティーの現在の状況。

Value: Trigger Status, as defined in Section 5.2.3.

値:セクション5.2.3で定義されているトリガーステータス。

Mandatory: Yes.

必須:はい。

Name: errors

名前:エラー

Description: Descriptions of errors that have occurred while processing a Trigger Command.

説明:トリガーコマンドの処理中に発生したエラーの説明。

Value: An array of Error Descriptions, as defined in Section 5.2.6. An empty array is allowed and is equivalent to omitting "errors" from the object.

値:セクション5.2.6で定義されているエラーの説明の配列。空の配列が許可され、オブジェクトからの「エラー」の省略と同等です。

Mandatory: No.

まんだとry: の。

5.1.3. Trigger Collections
5.1.3. トリガーコレクション

Trigger Collections MUST use a MIME media type of "application/cdni; ptype=ci-trigger-collection".

トリガーコレクションは、「application / cdni; ptype = ci-trigger-collection」のMIMEメディアタイプを使用する必要があります。

A Trigger Collection is encoded as a JSON object containing the following name/value pairs.

トリガーコレクションは、次の名前と値のペアを含むJSONオブジェクトとしてエンコードされます。

Name: triggers

名前:トリガー

Description: Links to Trigger Status Resources in the collection.

説明:コレクション内のトリガーステータスリソースへのリンク。

Value: A JSON array of zero or more URLs, represented as JSON strings.

値:JSON文字列として表される、0個以上のURLのJSON配列。

Mandatory: Yes.

必須:はい。

Name: staleresourcetime

名前:staleresourcetime

Description: The length of time for which the dCDN guarantees to keep a completed Trigger Status Resource. After this time, the dCDN SHOULD delete the Trigger Status Resource and all references to it from collections.

説明:dCDNが完了したトリガーステータスリソースの保持を保証する時間の長さ。この後、dCDNはトリガーステータスリソースとそれへのすべての参照をコレクションから削除する必要があります(SHOULD)。

Value: A JSON number, which must be a positive integer, representing time in seconds.

値:JSON番号。正の整数である必要があり、秒単位で時間を表します。

Mandatory: Yes, in the collection of all Trigger Status Resources if the dCDN deletes stale entries. If the property is present in the filtered collections, it MUST have the same value as in the collection of all Trigger Status Resources.

必須:はい、dCDNが古いエントリを削除する場合、すべてのトリガーステータスリソースのコレクションで。プロパティがフィルターされたコレクションに存在する場合、すべてのトリガーステータスリソースのコレクションと同じ値を持つ必要があります。

Names: coll-all, coll-pending, coll-active, coll-complete, coll-failed

名前:coll-all、coll-pending、coll-active、coll-complete、coll-failed

Description: Link to a Trigger Collection.

説明:トリガーコレクションへのリンク。

Value: A URL represented as a JSON string.

値:JSON文字列として表されるURL。

Mandatory: Links to all of the filtered collections are mandatory in the collection of all Trigger Status Resources, if the dCDN implements the filtered collections. Otherwise, optional.

必須:dCDNがフィルターされたコレクションを実装する場合、フィルターされたすべてのコレクションへのリンクは、すべてのトリガーステータスリソースのコレクションで必須です。それ以外の場合はオプションです。

Name: cdn-id

名前:cdn-id

Description: The CDN PID of the dCDN.

説明:dCDNのCDN PID。

Value: A JSON string, the dCDN's CDN PID, as defined in Section 4.6.

値:セクション4.6で定義されているJSON文字列、dCDNのCDN PID。

Mandatory: Only in the collection of all Trigger Status Resources, if the dCDN implements the filtered collections. Optional in the filtered collections (the uCDN can always find the dCDN's cdn-id in the collection of all Trigger Status Resources, but the dCDN can choose to repeat that information in its implementation of filtered collections).

必須:dCDNがフィルターされたコレクションを実装する場合、すべてのトリガーステータスリソースのコレクションのみ。フィルターされたコレクションではオプション(uCDNは常にすべてのトリガーステータスリソースのコレクションでdCDNのcdn-idを見つけることができますが、dCDNはフィルターされたコレクションの実装でその情報を繰り返すことを選択できます)。

5.2. Properties of CI/T Objects
5.2. CI / Tオブジェクトのプロパティ

This section defines the values that can appear in the top-level objects described in Section 5.1, and their encodings.

このセクションでは、セクション5.1で説明した最上位オブジェクトに表示される可能性のある値とそのエンコードを定義します。

5.2.1. Trigger Specification
5.2.1. トリガー仕様

A Trigger Collection is encoded as a JSON object containing the following name/value pairs.

トリガーコレクションは、次の名前と値のペアを含むJSONオブジェクトとしてエンコードされます。

An unrecognized name/value pair in the Trigger Specification object contained in a CI/T Command SHOULD be preserved in the Trigger Specification of any Trigger Status Resource it creates.

CI / Tコマンドに含まれるトリガー仕様オブジェクト内の認識されない名前/値のペアは、それが作成するトリガーステータスリソースのトリガー仕様内に保持する必要があります(SHOULD)。

Name: type

名前:タイプ

Description: Defines the type of the CI/T Trigger Command.

説明:CI / Tトリガーコマンドのタイプを定義します。

Value: Trigger Type, as defined in Section 5.2.2.

値:セクション5.2.2で定義されているトリガータイプ。

Mandatory: Yes.

必須:はい。

Name: metadata.urls

名前:metadata.urls

Description: The uCDN URLs of the metadata the CI/T Trigger Command applies to.

説明:CI / Tトリガーコマンドが適用されるメタデータのuCDN URL。

Value: A JSON array of URLs represented as JSON strings.

値:JSON文字列として表されるURLのJSON配列。

Mandatory: No, but at least one of "metadata.*" or "content.*" MUST be present and non-empty.

必須:いいえ。ただし、「metadata。*」または「content。*」の少なくとも1つが存在し、空でない必要があります。

Name: content.urls

名前:content.urls

Description: URLs of content the CI/T Trigger Command applies to. See Section 4.8.

説明:CI / Tトリガーコマンドが適用されるコンテンツのURL。セクション4.8を参照してください。

Value: A JSON array of URLs represented as JSON strings.

値:JSON文字列として表されるURLのJSON配列。

Mandatory: No, but at least one of "metadata.*" or "content.*" MUST be present and non-empty.

必須:いいえ。ただし、「metadata。*」または「content。*」の少なくとも1つが存在し、空でない必要があります。

Name: content.ccid

名前:content.ccid

Description: The Content Collection IDentifier of content the trigger applies to. The "ccid" is a grouping of content, as defined by [RFC8006].

説明:トリガーが適用されるコンテンツのコンテンツコレクションID。 「ccid」は、[RFC8006]で定義されているコンテンツのグループです。

Value: A JSON array of strings, where each string is a Content Collection IDentifier.

値:文字列のJSON配列。各文字列はコンテンツコレクションIDです。

Mandatory: No, but at least one of "metadata.*" or "content.*" MUST be present and non-empty.

必須:いいえ。ただし、「metadata。*」または「content。*」の少なくとも1つが存在し、空でない必要があります。

Name: metadata.patterns

名前:metadata.patterns

Description: The metadata the trigger applies to.

説明:トリガーが適用されるメタデータ。

Value: A JSON array of PatternMatch objects, as defined in Section 5.2.4.

値:セクション5.2.4で定義されている、PatternMatchオブジェクトのJSON配列。

Mandatory: No, but at least one of "metadata.*" or "content.*" MUST be present and non-empty, and metadata.patterns MUST NOT be present if the Trigger Type is "preposition".

必須:いいえ。ただし、「metadata。*」または「content。*」の少なくとも1つが存在し、空でない必要があり、トリガータイプが「前置詞」の場合、metadata.patternsが存在してはなりません。

Name: content.patterns

名前:content.patterns

Description: The content data the trigger applies to.

説明:トリガーが適用されるコンテンツデータ。

Value: A JSON array of PatternMatch objects, as defined in Section 5.2.4.

値:セクション5.2.4で定義されている、PatternMatchオブジェクトのJSON配列。

Mandatory: No, but at least one of "metadata.*" or "content.*" MUST be present and non-empty, and content.patterns MUST NOT be present if the Trigger Type is "preposition".

必須:いいえ。ただし、「metadata。*」または「content。*」の少なくとも1つが存在し、空でない必要があり、トリガータイプが「前置詞」の場合、content.patternsが存在してはなりません。

5.2.2. Trigger Type
5.2.2. トリガータイプ

Trigger Type is used in a Trigger Specification to describe trigger action.

トリガータイプは、トリガー仕様でトリガーアクションを説明するために使用されます。

All trigger types MUST be registered in the IANA "CDNI CI/T Trigger Types" registry (see Section 7.2).

すべてのトリガータイプは、IANAの「CDNI CI / Tトリガータイプ」レジストリに登録する必要があります(セクション7.2を参照)。

A dCDN receiving a request containing a trigger type it does not recognize or does not support MUST reject the request by creating a Trigger Status Resource with a status of "failed" and the "errors" array containing an Error Description with error "eunsupported".

認識できない、またはサポートしていないトリガータイプを含むリクエストを受信するdCDNは、ステータスが「失敗」であるトリガーステータスリソースと、エラー「eunsupported」のエラー説明を含む「errors」配列を作成することにより、リクエストを拒否する必要があります。

The following trigger types are defined by this document:

このドキュメントでは、次のトリガータイプを定義しています。

   +-------------+-----------------------------------------------------+
   | JSON String | Description                                         |
   +-------------+-----------------------------------------------------+
   | preposition | A request for the dCDN to acquire metadata or       |
   |             | content.                                            |
   | invalidate  | A request for the dCDN to invalidate metadata or    |
   |             | content.  After servicing this request, the dCDN    |
   |             | will not use the specified data without first       |
   |             | revalidating it using, for example, an              |
   |             | "If-None-Match" HTTP request.  The dCDN need not    |
   |             | erase the associated data.                          |
   | purge       | A request for the dCDN to erase metadata or         |
   |             | content.  After servicing the request, the          |
   |             | specified data MUST NOT be held on the dCDN (the    |
   |             | dCDN should reacquire the metadata or content from  |
   |             | the uCDN if it needs it).                           |
   +-------------+-----------------------------------------------------+
        
5.2.3. Trigger Status
5.2.3. トリガーステータス

Trigger Status describes the current status of the triggered activity. It MUST be one of the JSON strings in the following table:

トリガーステータスは、トリガーされたアクティビティの現在のステータスを示します。次の表のJSON文字列のいずれかである必要があります。

   +-----------+-------------------------------------------------------+
   | JSON      | Description                                           |
   | String    |                                                       |
   +-----------+-------------------------------------------------------+
   | pending   | The CI/T Trigger Command has not yet been acted upon. |
   | active    | The CI/T Trigger Command is currently being acted     |
   |           | upon.                                                 |
   | complete  | The CI/T Trigger Command completed successfully.      |
   | processed | The CI/T Trigger Command has been accepted, and no    |
   |           | further status update will be made (can be used in    |
   |           | cases where completion cannot be confirmed).          |
   | failed    | The CI/T Trigger Command could not be completed.      |
   | canceling | Processing of the CI/T Trigger Command is still in    |
   |           | progress, but the CI/T Trigger Command has been       |
   |           | canceled by the uCDN.                                 |
   | canceled  | The CI/T Trigger Command was canceled by the uCDN.    |
   +-----------+-------------------------------------------------------+
        
5.2.4. PatternMatch
5.2.4. パターンマッチ

A PatternMatch consists of a string pattern to match against a URI, and flags describing the type of match.

PatternMatchは、URIと照合する文字列パターンと、照合のタイプを示すフラグで構成されます。

It is encoded as a JSON object with the following name/value pairs:

これは、次の名前と値のペアを持つJSONオブジェクトとしてエンコードされます。

Name: pattern

名前:パターン

Description: A pattern for URI matching.

説明:URIマッチングのパターン。

Value: A JSON string representing the pattern. The pattern can contain the wildcards * and ?, where * matches any sequence of [RFC3986] pchar or "/" characters (including the empty string) and ? matches exactly one [RFC3986] pchar character. The three literals $, * and ? MUST be escaped as $$, $* and $? (where $ is the designated escape character). All other characters are treated as literals.

値:パターンを表すJSON文字列。パターンには、ワイルドカード*および?を含めることができます。*は、[RFC3986] pcharまたは "/"文字(空の文字列を含む)の任意のシーケンスと一致し、?正確に1つの[RFC3986] pchar文字に一致します。 3つのリテラル$、*、および? $$、$ *、$としてエスケープする必要がありますか? ($は指定されたエスケープ文字です)。他のすべての文字はリテラルとして扱われます。

Mandatory: Yes.

必須:はい。

Name: case-sensitive

名前:大文字と小文字を区別

Description: Flag indicating whether or not case-sensitive matching should be used.

説明:大文字と小文字を区別するマッチングを使用するかどうかを示すフラグ。

Value: One of the JSON values "true" (the matching is case sensitive) or "false" (the matching is case insensitive).

値:JSON値のいずれか "true"(一致では大文字と小文字が区別されます)または "false"(一致では大文字と小文字が区別されません)。

Mandatory: No; default is case-insensitive match.

必須:いいえ。デフォルトは大文字と小文字を区別しない一致です。

Name: match-query-string

名前:match-query-string

Description: Flag indicating whether to include the query part of the URI when comparing against the pattern.

説明:パターンと比較するときにURIのクエリ部分を含めるかどうかを示すフラグ。

Value: One of the JSON values "true" (the full URI, including the query part, should be compared against the given pattern) or "false" (the query part of the URI should be dropped before comparison with the given pattern).

値:JSON値の1つ「true」(クエリの部分を含む完全なURIを指定のパターンと比較する必要があります)または「false」(URIのクエリの部分を指定のパターンと比較する前に削除する必要があります)。

Mandatory: No; default is "false". The query part of the URI should be dropped before comparison with the given pattern.

必須:いいえ。デフォルトは "false"です。 URIのクエリ部分は、指定されたパターンと比較する前に削除する必要があります。

Example of case-sensitive prefix match against "https://www.example.com/trailers/":

「https://www.example.com/trailers/」に対する大文字と小文字が区別されるプレフィックスの例:

   {
       "pattern": "https://www.example.com/trailers/*",
       "case-sensitive": true
   }
        
5.2.5. Absolute Time
5.2.5. 絶対時間

A JSON number, seconds since the UNIX epoch (00:00:00 UTC on 1 January 1970).

UNIXエポックからの秒数(1970年1月1日00:00:00 UTC)。

5.2.6. Error Description
5.2.6. エラーの説明

An Error Description is used to report the failure of a CI/T Command or failure in the activity it triggered. It is encoded as a JSON object with the following name/value pairs:

エラーの説明は、CI / Tコマンドの失敗またはそれがトリガーしたアクティビティの失敗を報告するために使用されます。これは、次の名前と値のペアを持つJSONオブジェクトとしてエンコードされます。

Name: error

名前:エラー

Value: Error Code, as defined in Section 5.2.7.

値:セクション5.2.7で定義されているエラーコード。

Mandatory: Yes.

必須:はい。

Names: metadata.urls, content.urls, metadata.patterns, content.patterns

名前:metadata.urls、content.urls、metadata.patterns、content.patterns

Description: Metadata and content references copied from the Trigger Specification. Only those URLs and patterns to which the error applies are included in each property, but those URLs and patterns MUST be exactly as they appear in the request; the dCDN MUST NOT generalize the URLs. (For example, if the uCDN requests pre-positioning of URLs "https://content.example.com/a" and "https://content.example.com/b", the dCDN must not generalize its error report to the pattern "https://content.example.com/*".)

説明:トリガー仕様からコピーされたメタデータとコンテンツ参照。エラーが適用されるURLとパターンのみが各プロパティに含まれますが、それらのURLとパターンは、リクエストに表示されるとおりでなければなりません。 dCDNはURLを一般化してはなりません。 (たとえば、uCDNがURL「https://content.example.com/a」と「https://content.example.com/b」の事前配信を要求する場合、dCDNはそのエラーレポートをパターン "https://content.example.com/*")

Value: A JSON array of JSON strings, where each string is copied from a "content.*" or "metadata.*" value in the corresponding Trigger Specification.

値:JSON文字列のJSON配列。各文字列は、対応するトリガー仕様の「content。*」または「metadata。*」の値からコピーされます。

Mandatory: At least one of these name/value pairs is mandatory in each Error Description object.

必須:各エラー説明オブジェクトでは、これらの名前と値のペアの少なくとも1つが必須です。

Name: description

名前:説明

Description: A human-readable description of the error.

説明:人間が読める形式のエラーの説明。

Value: A JSON string, the human-readable description.

値:JSON文字列、人間が読める形式の説明。

Mandatory: No.

まんだとry: の。

5.2.7. Error Code
5.2.7. エラーコード

This type is used by the dCDN to report failures in trigger processing. All Error Codes MUST be registered in the IANA "CDNI CI/T Error Codes" registry (see Section 7.3). Unknown Error Codes MUST be treated as fatal errors, and the request MUST NOT be automatically retried without modification.

このタイプは、トリガー処理の失敗を報告するためにdCDNによって使用されます。すべてのエラーコードは、IANAの「CDNI CI / Tエラーコード」レジストリに登録する必要があります(セクション7.3を参照)。不明なエラーコードは致命的なエラーとして扱われる必要があり、リクエストは変更せずに自動的に再試行してはなりません。

The following Error Codes are defined by this document and MUST be supported by an implementation of the CI/T interface.

次のエラーコードはこのドキュメントで定義されており、CI / Tインターフェイスの実装でサポートされている必要があります。

   +--------------+----------------------------------------------------+
   | Error Code   | Description                                        |
   +--------------+----------------------------------------------------+
   | emeta        | The dCDN was unable to acquire metadata required   |
   |              | to fulfill the request.                            |
   | econtent     | The dCDN was unable to acquire content (CI/T       |
   |              | "preposition" commands only).                      |
   | eperm        | The uCDN does not have permission to issue the     |
   |              | CI/T Command (for example, the data is owned by    |
   |              | another CDN).                                      |
   | ereject      | The dCDN is not willing to fulfill the CI/T        |
   |              | Command (for example, a "preposition" request for  |
   |              | content at a time when the dCDN would not accept   |
   |              | Request Routing requests from the uCDN).           |
   | ecdn         | An internal error in the dCDN or one of its dCDNs. |
   | ecanceled    | The uCDN canceled the request.                     |
   | eunsupported | The Trigger Specification contained a "type" that  |
   |              | is not supported by the dCDN.  No action was taken |
   |              | by the dCDN other than to create a Trigger Status  |
   |              | Resource in state "failed".                        |
   +--------------+----------------------------------------------------+
        
6. Examples
6. 例

The following subsections provide examples of different CI/T objects encoded as JSON.

以下のサブセクションでは、JSONとしてエンコードされたさまざまなCI / Tオブジェクトの例を示します。

Discovery of the CI/T interface is out of scope for this document. In an implementation, all CI/T URLs are under the control of the dCDN. The uCDN MUST NOT attempt to ascribe any meaning to individual elements of the path.

CI / Tインターフェイスの検出は、このドキュメントの範囲外です。実装では、すべてのCI / T URLはdCDNの制御下にあります。 uCDNは、パスの個々の要素に意味を持たせようとしてはなりません。

In examples in this section, the URL "https://dcdn.example.com/ triggers" is used as the location of the collection of all Trigger Status Resources, and the CDN PID of the uCDN is "AS64496:1".

このセクションの例では、URL「https://dcdn.example.com/ triggers」がすべてのトリガーステータスリソースのコレクションの場所として使用され、uCDNのCDN PIDは「AS64496:1」です。

6.1. Creating Triggers
6.1. トリガーの作成

Examples of the uCDN triggering activity in the dCDN:

dCDNでのuCDNトリガーアクティビティの例:

6.1.1. Preposition
6.1.1. 前置詞

Below is an example of a CI/T "preposition" command -- a POST to the collection of all Trigger Status Resources.

以下は、CI / Tの「事前配置」コマンドの例です。すべてのトリガーステータスリソースのコレクションへのPOSTです。

Note that "metadata.patterns" and "content.patterns" are not allowed in a pre-position Trigger Specification.

「metadata.patterns」と「content.patterns」は、事前配信トリガー仕様では許可されないことに注意してください。

REQUEST:

リクエスト:

     POST /triggers HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
     Content-Type: application/cdni; ptype=ci-trigger-command
     Content-Length: 352
        
     {
       "trigger": {
         "type": "preposition",
        
         "metadata.urls": [ "https://metadata.example.com/a/b/c" ],
         "content.urls": [
             "https://www.example.com/a/b/c/1",
             "https://www.example.com/a/b/c/2",
             "https://www.example.com/a/b/c/3",
             "https://www.example.com/a/b/c/4"
           ]
       },
       "cdn-path": [ "AS64496:1" ]
     }
        

RESPONSE:

応答:

     HTTP/1.1 201 Created
     Date: Wed, 04 May 2016 08:48:10 GMT
     Content-Length: 467
     Content-Type: application/cdni; ptype=ci-trigger-status
     Location: https://dcdn.example.com/triggers/0
     Server: example-server/0.1
        
     {
         "ctime": 1462351690,
         "etime": 1462351698,
         "mtime": 1462351690,
         "status": "pending",
         "trigger": {
             "content.urls": [
                 "https://www.example.com/a/b/c/1",
                 "https://www.example.com/a/b/c/2",
                 "https://www.example.com/a/b/c/3",
                 "https://www.example.com/a/b/c/4"
             ],
             "metadata.urls": [
                 "https://metadata.example.com/a/b/c"
             ],
             "type": "preposition"
         }
     }
        
6.1.2. Invalidate
6.1.2. 無効にする

Below is an example of a CI/T "invalidate" command -- another POST to the collection of all Trigger Status Resources. This instructs the dCDN to revalidate the content at "https://www.example.com/a/ index.html", as well as any metadata and content whose URLs are prefixed by "https://metadata.example.com/a/b/" using case-insensitive matching, and "https://www.example.com/a/b/" using case-sensitive matching, respectively.

以下は、CI / Tの「無効化」コマンドの例です。すべてのトリガーステータスリソースのコレクションに対する別のPOSTです。これにより、dCDNは、「https://www.example.com/a/ index.html」のコンテンツと、URLの先頭に「https://metadata.example.com/」が付いたメタデータとコンテンツを再検証するように指示されます。 a / b / "は大文字と小文字を区別しないマッチングを使用し、" https://www.example.com/a/b/ "は大文字と小文字を区別するマッチングをそれぞれ使用します。

REQUEST:

リクエスト:

     POST /triggers HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
     Content-Type: application/cdni; ptype=ci-trigger-command
     Content-Length: 387
        
     {
       "trigger": {
         "type": "invalidate",
        
         "metadata.patterns": [
             { "pattern": "https://metadata.example.com/a/b/*" }
           ],
        
         "content.urls": [ "https://www.example.com/a/index.html" ],
         "content.patterns": [
             { "pattern": "https://www.example.com/a/b/*",
               "case-sensitive": true
             }
           ]
       },
       "cdn-path": [ "AS64496:1" ]
     }
        

RESPONSE:

応答:

     HTTP/1.1 201 Created
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Length: 545
     Content-Type: application/cdni; ptype=ci-trigger-status
     Location: https://dcdn.example.com/triggers/1
     Server: example-server/0.1
        
     {
         "ctime": 1462351691,
         "etime": 1462351699,
         "mtime": 1462351691,
         "status": "pending",
         "trigger": {
             "content.patterns": [
                 {
                     "case-sensitive": true,
                     "pattern": "https://www.example.com/a/b/*"
                 }
             ],
             "content.urls": [
                 "https://www.example.com/a/index.html"
             ],
             "metadata.patterns": [
                 {
                     "pattern": "https://metadata.example.com/a/b/*"
                 }
             ],
             "type": "invalidate"
         }
     }
        
6.2. Examining Trigger Status
6.2. トリガーステータスの調査

Once Trigger Status Resources have been created, the uCDN can check their status as shown in the following examples.

トリガーステータスリソースが作成されると、uCDNは次の例に示すようにそれらのステータスを確認できます。

6.2.1. Collection of All Triggers
6.2.1. すべてのトリガーのコレクション

The uCDN can fetch the collection of all Trigger Status Resources it has created that have not yet been deleted or removed as expired. After creation of the "preposition" and "invalidate" triggers shown above, this collection might look as follows:

uCDNは、まだ削除されていないか、期限切れとして削除されていない、作成したすべてのトリガーステータスリソースのコレクションをフェッチできます。上記の「前置詞」および「無効化」トリガーを作成すると、このコレクションは次のようになります。

REQUEST:

リクエスト:

     GET /triggers HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 341
     Expires: Wed, 04 May 2016 08:49:11 GMT
     Server: example-server/0.1
     ETag: "-936094426920308378"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "cdn-id": "AS64496:0",
         "coll-active": "/triggers/active",
         "coll-complete": "/triggers/complete",
         "coll-failed": "/triggers/failed",
         "coll-pending": "/triggers/pending",
         "staleresourcetime": 86400,
         "triggers": [
             "https://dcdn.example.com/triggers/0",
             "https://dcdn.example.com/triggers/1"
         ]
     }
        
6.2.2. Filtered Collections of Trigger Status Resources
6.2.2. フィルターされたトリガーステータスリソースのコレクション

The filtered collections are also available to the uCDN. Before the dCDN starts processing the two CI/T Trigger Commands shown above, both will appear in the collection of pending triggers. For example:

フィルタリングされたコレクションは、uCDNでも使用できます。 dCDNが上記の2つのCI / Tトリガーコマンドの処理を開始する前に、保留中のトリガーのコレクションに両方が表示されます。例えば:

REQUEST:

リクエスト:

     GET /triggers/pending HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 152
     Expires: Wed, 04 May 2016 08:49:11 GMT
     Server: example-server/0.1
     ETag: "4331492443626270781"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "staleresourcetime": 86400,
         "triggers": [
             "https://dcdn.example.com/triggers/0",
             "https://dcdn.example.com/triggers/1"
         ]
     }
        

At this point, if no other Trigger Status Resources had been created, the other filtered views would be empty. For example:

この時点で、他のトリガーステータスリソースが作成されていなかった場合、他のフィルターされたビューは空になります。例えば:

REQUEST:

リクエスト:

     GET /triggers/complete HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 54
     Expires: Wed, 04 May 2016 08:49:11 GMT
     Server: example-server/0.1
     ETag: "7958041393922269003"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "staleresourcetime": 86400,
         "triggers": []
     }
        
6.2.3. Individual Trigger Status Resources
6.2.3. 個々のトリガーステータスリソース

The Trigger Status Resources can also be examined for details about individual CI/T Trigger Commands. For example, for the CI/T "preposition" and "invalidate" commands from previous examples:

個々のCI / Tトリガーコマンドの詳細については、トリガーステータスリソースを調べることもできます。たとえば、前の例のCI / T「前置詞」および「無効化」コマンドの場合:

REQUEST:

リクエスト:

     GET /triggers/0 HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 467
     Expires: Wed, 04 May 2016 08:49:10 GMT
     Server: example-server/0.1
     ETag: "6990548174277557683"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:10 GMT
     Content-Type: application/cdni; ptype=ci-trigger-status
        
     {
         "ctime": 1462351690,
         "etime": 1462351698,
         "mtime": 1462351690,
         "status": "pending",
         "trigger": {
             "content.urls": [
                 "https://www.example.com/a/b/c/1",
                 "https://www.example.com/a/b/c/2",
                 "https://www.example.com/a/b/c/3",
                 "https://www.example.com/a/b/c/4"
             ],
             "metadata.urls": [
                 "https://metadata.example.com/a/b/c"
             ],
             "type": "preposition"
         }
     }
        

REQUEST:

リクエスト:

     GET /triggers/1 HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 545
     Expires: Wed, 04 May 2016 08:49:11 GMT
     Server: example-server/0.1
     ETag: "-554385204989405469"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Type: application/cdni; ptype=ci-trigger-status
        
     {
         "ctime": 1462351691,
         "etime": 1462351699,
         "mtime": 1462351691,
         "status": "pending",
         "trigger": {
             "content.patterns": [
                 {
                     "case-sensitive": true,
                     "pattern": "https://www.example.com/a/b/*"
                 }
             ],
             "content.urls": [
                 "https://www.example.com/a/index.html"
             ],
             "metadata.patterns": [
                 {
                     "pattern": "https://metadata.example.com/a/b/*"
                 }
             ],
             "type": "invalidate"
         }
     }
        
6.2.4. Polling for Changes in Status
6.2.4. ステータス変更のポーリング

The uCDN SHOULD use the ETags of collections or Trigger Status Resources when polling for changes in status, as shown in the following examples:

uCDNは、次の例に示すように、ステータスの変更をポーリングするときに、コレクションのETagまたはステータスリソースのトリガーを使用する必要があります(SHOULD)。

REQUEST:

リクエスト:

     GET /triggers/pending HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
     If-None-Match: "4331492443626270781"
        

RESPONSE:

応答:

     HTTP/1.1 304 Not Modified
     Content-Length: 0
     Expires: Wed, 04 May 2016 08:49:11 GMT
     Server: example-server/0.1
     ETag: "4331492443626270781"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:11 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        

REQUEST:

リクエスト:

     GET /triggers/0 HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
     If-None-Match: "6990548174277557683"
        

RESPONSE:

応答:

     HTTP/1.1 304 Not Modified
     Content-Length: 0
     Expires: Wed, 04 May 2016 08:49:10 GMT
     Server: example-server/0.1
     ETag: "6990548174277557683"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:10 GMT
     Content-Type: application/cdni; ptype=ci-trigger-status
        

When the CI/T Trigger Command is complete, the contents of the filtered collections will be updated along with their ETags. For example, when the two example CI/T Trigger Commands are complete, the collections of pending and complete Trigger Status Resources might look like:

CI / Tトリガーコマンドが完了すると、フィルターされたコレクションの内容がETagと共に更新されます。たとえば、2つのCI / Tトリガーコマンドの例が完了すると、保留中および完了したトリガーステータスリソースのコレクションは次のようになります。

REQUEST:

リクエスト:

     GET /triggers/pending HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 54
     Expires: Wed, 04 May 2016 08:49:15 GMT
     Server: example-server/0.1
     ETag: "1337503181677633762"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:15 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "staleresourcetime": 86400,
         "triggers": []
     }
        

REQUEST:

リクエスト:

     GET /triggers/complete HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 152
     Expires: Wed, 04 May 2016 08:49:22 GMT
     Server: example-server/0.1
     ETag: "4481489539378529796"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:22 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "staleresourcetime": 86400,
         "triggers": [
             "https://dcdn.example.com/triggers/0",
             "https://dcdn.example.com/triggers/1"
         ]
     }
        
6.2.5. Deleting Trigger Status Resources
6.2.5. トリガーステータスリソースの削除

The uCDN can delete completed and failed Trigger Status Resources to reduce the size of the collections, as described in Section 4.4. For example, to delete the "preposition" request from earlier examples:

セクション4.4で説明するように、uCDNは完了および失敗したトリガーステータスリソースを削除して、コレクションのサイズを削減できます。たとえば、前の例から「前置詞」リクエストを削除するには:

REQUEST:

リクエスト:

     DELETE /triggers/0 HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 204 No Content
     Date: Wed, 04 May 2016 08:48:22 GMT
     Content-Length: 0
     Content-Type: text/html; charset=UTF-8
     Server: example-server/0.1
        

This would, for example, cause the collection of completed Trigger Status Resources shown in the example above to be updated to:

これにより、たとえば、上記の例で示した完了したトリガーステータスリソースのコレクションが次のように更新されます。

REQUEST:

リクエスト:

     GET /triggers/complete HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 105
     Expires: Wed, 04 May 2016 08:49:22 GMT
     Server: example-server/0.1
     ETag: "-6938620031669085677"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:22 GMT
     Content-Type: application/cdni; ptype=ci-trigger-collection
        
     {
         "staleresourcetime": 86400,
         "triggers": [
             "https://dcdn.example.com/triggers/1"
         ]
     }
        
6.2.6. Error Reporting
6.2.6. エラー報告

In this example, the uCDN has requested pre-positioning of "https://newsite.example.com/index.html", but the dCDN was unable to locate metadata for that site:

この例では、uCDNが「https://newsite.example.com/index.html」の事前配信をリクエストしていますが、dCDNはそのサイトのメタデータを見つけることができませんでした。

REQUEST:

リクエスト:

     GET /triggers/2 HTTP/1.1
     User-Agent: example-user-agent/0.1
     Host: dcdn.example.com
     Accept: */*
        

RESPONSE:

応答:

     HTTP/1.1 200 OK
     Content-Length: 486
     Expires: Wed, 04 May 2016 08:49:26 GMT
     Server: example-server/0.1
     ETag: "5182824839919043757"
     Cache-Control: max-age=60
     Date: Wed, 04 May 2016 08:48:26 GMT
     Content-Type: application/cdni; ptype=ci-trigger-status
        
     {
         "ctime": 1462351702,
         "errors": [
             {
                 "content.urls": [
                     "https://newsite.example.com/index.html"
                 ],
                 "description": "newsite.example.com not in HostIndex",
                 "error": "emeta"
             }
         ],
         "etime": 1462351710,
         "mtime": 1462351706,
         "status": "active",
         "trigger": {
             "content.urls": [
                 "https://newsite.example.com/index.html"
             ],
             "type": "preposition"
         }
     }
        
7. IANA Considerations
7. IANAに関する考慮事項
7.1. CDNI Payload Type Parameter Registrations
7.1. CDNIペイロードタイプパラメータの登録

The IANA is requested to register the following new Payload Types in the "CDNI Payload Types" registry defined by [RFC7736], for use with the "application/cdni" MIME media type.

IANAは、「application / cdni」MIMEメディアタイプで使用するために、[RFC7736]によって定義された「CDNI Payload Types」レジストリに次の新しいペイロードタイプを登録するように要求されます。

                 +-----------------------+---------------+
                 | Payload Type          | Specification |
                 +-----------------------+---------------+
                 | ci-trigger-command    | RFC 8007      |
                 | ci-trigger-status     | RFC 8007      |
                 | ci-trigger-collection | RFC 8007      |
                 +-----------------------+---------------+
        
7.2. "CDNI CI/T Trigger Types" Registry
7.2. 「CDNI CI / Tトリガータイプ」レジストリ

The IANA is requested to create a new "CDNI CI/T Trigger Types" subregistry under the "Content Delivery Network Interconnection (CDNI) Parameters" registry.

IANAは、「コンテンツ配信ネットワーク相互接続(CDNI)パラメータ」レジストリの下に新しい「CDNI CI / Tトリガータイプ」サブレジストリを作成するように要求されます。

Additions to the "CDNI CI/T Trigger Types" registry will be made via the RFC Required policy as defined in [RFC5226].

「CDNI CI / T Trigger Types」レジストリへの追加は、[RFC5226]で定義されているように、RFC Requiredポリシーを介して行われます。

The initial contents of the "CDNI CI/T Trigger Types" registry comprise the names and descriptions listed in Section 5.2.2 of this document, with this document acting as the specification.

「CDNI CI / T Trigger Types」レジストリの最初の内容は、このドキュメントのセクション5.2.2にリストされている名前と説明で構成され、このドキュメントが仕様として機能します。

7.3. "CDNI CI/T Error Codes" Registry
7.3. 「CDNI CI / Tエラーコード」レジストリ

The IANA is requested to create a new "CDNI CI/T Error Codes" subregistry under the "Content Delivery Network Interconnection (CDNI) Parameters" registry.

The IANA is requested to create a new "CDNI CI/T Error Codes" subregistry under the "Content Delivery Network Interconnection (CDNI) Parameters" registry.

Additions to the "CDNI CI/T Error Codes" registry will be made via the Specification Required policy as defined in [RFC5226]. The Designated Expert will verify that new Error Code registrations do not duplicate existing Error Code definitions (in name or functionality), prevent gratuitous additions to the namespace, and prevent any additions to the namespace that would impair the interoperability of CDNI implementations.

「CDNI CI / Tエラーコード」レジストリへの追加は、[RFC5226]で定義されている仕様必須ポリシーを介して行われます。 Designated Expertは、新しいエラーコード登録が既存のエラーコード定義(名前または機能)と重複していないことを確認し、名前空間への不必要な追加を防ぎ、CDNI実装の相互運用性を損なう名前空間への追加を防ぎます。

The initial contents of the "CDNI CI/T Error Codes" registry comprise the names and descriptions of the Error Codes listed in Section 5.2.7 of this document, with this document acting as the specification.

「CDNI CI / Tエラーコード」レジストリの最初の内容は、このドキュメントの5.2.7に記載されているエラーコードの名前と説明で構成され、このドキュメントが仕様として機能します。

8. Security Considerations
8. セキュリティに関する考慮事項

The CI/T interface provides a mechanism to allow a uCDN to generate requests into the dCDN and to inspect its own CI/T requests and their current states. The CI/T interface does not allow access to, or modification of, the uCDN or dCDN metadata relating to content delivery or to the content itself. It can only control the presence of that metadata in the dCDN, and the processing work and network utilization involved in ensuring that presence.

CI / Tインターフェースは、uCDNがdCDNへの要求を生成し、それ自体のCI / T要求とその現在の状態を検査できるようにするメカニズムを提供します。 CI / Tインターフェースでは、コンテンツ配信またはコンテンツ自体に関連するuCDNまたはdCDNメタデータへのアクセスや変更はできません。制御できるのは、dCDN内のそのメタデータの存在と、その存在を保証するために必要な処理作業とネットワーク使用率だけです。

By examining "preposition" requests to a dCDN, and correctly interpreting content and metadata URLs, an attacker could learn the uCDN's or content owner's predictions for future content popularity. By examining "invalidate" or "purge" requests, an attacker could learn about changes in the content owner's catalog.

攻撃者は、dCDNへの「前置詞」リクエストを調べ、コンテンツとメタデータのURLを正しく解釈することにより、uCDNまたはコンテンツ所有者の将来のコンテンツ人気度の予測を知ることができます。攻撃者は、「無効化」または「パージ」リクエストを調べることにより、コンテンツ所有者のカタログの変更を知ることができます。

By injecting CI/T Commands, an attacker or a misbehaving uCDN would generate work in the dCDN and uCDN as they process those requests. So would a man-in-the-middle attacker modifying valid CI/T Commands generated by the uCDN. In both cases, that would decrease the dCDN's caching efficiency by causing it to unnecessarily acquire or reacquire content metadata and/or content.

CI / Tコマンドを挿入することにより、攻撃者または誤動作しているuCDNは、それらの要求を処理するときに、dCDNおよびuCDNで作業を生成します。同様に、中間者攻撃者は、uCDNによって生成された有効なCI / Tコマンドを変更します。どちらの場合も、コンテンツメタデータやコンテンツを不必要に取得または再取得することにより、dCDNのキャッシュ効率が低下します。

A dCDN implementation of CI/T MUST restrict the actions of a uCDN to the data corresponding to that uCDN. Failure to do so would allow uCDNs to detrimentally affect each other's efficiency by generating unnecessary acquisition or reacquisition load.

CI / TのdCDN実装は、uCDNのアクションをそのuCDNに対応するデータに制限する必要があります。そうしないと、uCDNが不要な取得または再取得の負荷を生成することにより、互いの効率に悪影響を与える可能性があります。

An origin that chooses to delegate its delivery to a CDN is trusting that CDN to deliver content on its behalf; the interconnection of CDNs is an extension of that trust to dCDNs. That trust relationship is a commercial arrangement, outside the scope of the CDNI protocols. So, while a malicious CDN could deliberately generate load on a dCDN using the CI/T interface, the protocol does not otherwise attempt to address malicious behavior between interconnected CDNs.

An origin that chooses to delegate its delivery to a CDN is trusting that CDN to deliver content on its behalf; the interconnection of CDNs is an extension of that trust to dCDNs. That trust relationship is a commercial arrangement, outside the scope of the CDNI protocols. So, while a malicious CDN could deliberately generate load on a dCDN using the CI/T interface, the protocol does not otherwise attempt to address malicious behavior between interconnected CDNs.

8.1. Authentication, Authorization, Confidentiality, Integrity Protection

8.1. 認証、承認、機密性、完全性の保護

A CI/T implementation MUST support Transport Layer Security (TLS) transport for HTTP (HTTPS) as per [RFC2818] and [RFC7230].

A CI/T implementation MUST support Transport Layer Security (TLS) transport for HTTP (HTTPS) as per [RFC2818] and [RFC7230].

TLS MUST be used by the server side (dCDN) and the client side (uCDN) of the CI/T interface, including authentication of the remote end, unless alternate methods are used for ensuring the security of the information in the CI/T interface requests and responses (such as setting up an IPsec tunnel between the two CDNs or using a physically secured internal network between two CDNs that are owned by the same corporate entity).

TLS MUST be used by the server side (dCDN) and the client side (uCDN) of the CI/T interface, including authentication of the remote end, unless alternate methods are used for ensuring the security of the information in the CI/T interface requests and responses (such as setting up an IPsec tunnel between the two CDNs or using a physically secured internal network between two CDNs that are owned by the same corporate entity).

The use of TLS for transport of the CI/T interface allows the dCDN and the uCDN to authenticate each other using TLS client authentication and TLS server authentication.

CI / Tインターフェイスの転送にTLSを使用すると、dCDNとuCDNがTLSクライアント認証とTLSサーバー認証を使用して相互に認証できます。

Once the dCDN and the uCDN have mutually authenticated each other, TLS allows:

dCDNとuCDNが相互に認証されると、TLSは以下を許可します。

o The dCDN and the uCDN to authorize each other (to ensure that they are receiving CI/T Commands from, or reporting status to, an authorized CDN).

o dCDNとuCDNは相互に認証します(認証されたCDNからCI / Tコマンドを受信したり、ステータスを報告したりするため)。

o CDNI commands and responses to be transmitted with confidentiality.

o 機密で送信されるCDNIコマンドと応答。

o Protection of the integrity of CDNI commands and responses.

o CDNIコマンドと応答の整合性の保護。

When TLS is used, the general TLS usage guidance in [RFC7525] MUST be followed.

TLSを使用する場合は、[RFC7525]の一般的なTLS使用ガイダンスに従う必要があります。

The mechanisms for access control are dCDN-specific and are not standardized as part of this CI/T specification.

アクセス制御のメカニズムはdCDN固有であり、このCI / T仕様の一部として標準化されていません。

HTTP requests that attempt to access or operate on CI/T data belonging to another CDN MUST be rejected using, for example, HTTP 403 ("Forbidden") or 404 ("Not Found"). This is intended to prevent unauthorized users from generating unnecessary load in dCDNs or uCDNs due to revalidation, reacquisition, or unnecessary acquisition.

別のCDNに属するCI / Tデータへのアクセスまたは操作を試みるHTTPリクエストは、たとえばHTTP 403(「禁止」)または404(「見つかりません」)を使用して拒否する必要があります。これは、再検証、再取得、または不要な取得が原因で、権限のないユーザーがdCDNまたはuCDNに不要な負荷を生成するのを防ぐことを目的としています。

When deploying a network of interconnected CDNs, the possible inefficiencies related to the diamond configuration discussed in Section 2.2.1 should be considered.

相互接続されたCDNのネットワークを展開するときは、セクション2.2.1で説明されているひし形の構成に関連する非効率性を考慮する必要があります。

8.2. Denial of Service
8.2. サービス拒否

This document does not define a specific mechanism to protect against Denial-of-Service (DoS) attacks on the CI/T interface. However, CI/T endpoints can be protected against DoS attacks through the use of TLS transport and/or via mechanisms outside the scope of the CI/T interface, such as firewalling or the use of Virtual Private Networks (VPNs).

このドキュメントでは、CI / Tインターフェイスでのサービス拒否(DoS)攻撃から保護するための特定のメカニズムを定義していません。ただし、CI / Tエンドポイントは、TLSトランスポートの使用や、ファイアウォールや仮想プライベートネットワーク(VPN)の使用など、CI / Tインターフェイスの範囲外のメカニズムを介して、DoS攻撃から保護できます。

Depending on the implementation, triggered activity may consume significant processing and bandwidth in the dCDN. A malicious or faulty uCDN could use this to generate unnecessary load in the dCDN. The dCDN should consider mechanisms to avoid overload -- for example, by rate-limiting acceptance or processing of CI/T Commands, or by performing batch processing.

実装によっては、トリガーされたアクティビティがdCDNで大量の処理と帯域幅を消費する場合があります。悪意のあるまたは欠陥のあるuCDNはこれを使用して、dCDNに不要な負荷を生成する可能性があります。 dCDNは、過負荷を回避するメカニズムを検討する必要があります。たとえば、CI / Tコマンドの受け入れや処理をレート制限したり、バッチ処理を実行したりします。

8.3. Privacy
8.3. プライバシー

The CI/T protocol does not carry any information about individual end users of a CDN; there are no privacy concerns for end users.

CI / Tプロトコルには、CDNの個々のエンドユーザーに関する情報は含まれていません。エンドユーザーのプライバシーに関する懸念はありません。

The CI/T protocol does carry information that could be considered commercially sensitive by CDN operators and content owners. The use of mutually authenticated TLS to establish a secure session for the transport of CI/T data, as discussed in Section 8.1, provides confidentiality while the CI/T data is in transit and prevents parties other than the authorized dCDN from gaining access to that data. The dCDN MUST ensure that it only exposes CI/T data related to a uCDN to clients it has authenticated as belonging to that uCDN.

CI / Tプロトコルは、CDNオペレーターおよびコンテンツ所有者が商業的に機密と見なすことができる情報を伝達します。セクション8.1で説明したように、CI / Tデータの転送のための安全なセッションを確立するために相互認証されたTLSを使用すると、CI / Tデータの転送中に機密性が提供され、承認されたdCDN以外の者がそのデータにアクセスできないようになります。データ。 dCDNは、そのuCDNに属するものとして認証したクライアントに、uCDNに関連するCI / Tデータのみを公開することを保証する必要があります。

9. References
9. 参考文献
9.1. Normative References
9.1. 引用文献

[RFC1930] Hawkinson, J. and T. Bates, "Guidelines for creation, selection, and registration of an Autonomous System (AS)", BCP 6, RFC 1930, DOI 10.17487/RFC1930, March 1996, <http://www.rfc-editor.org/info/rfc1930>.

[RFC1930] Hawkinson、J。およびT. Bates、「自律システム(AS)の作成、選択、および登録に関するガイドライン」、BCP 6、RFC 1930、DOI 10.17487 / RFC1930、1996年3月、<http:// www .rfc-editor.org / info / rfc1930>。

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <http://www.rfc-editor.org/info/rfc2119>.

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <http://www.rfc-editor.org/info/rfc2119>.

[RFC2818] Rescorla, E., "HTTP Over TLS", RFC 2818, DOI 10.17487/RFC2818, May 2000, <http://www.rfc-editor.org/info/rfc2818>.

[RFC2818] Rescorla、E。、「HTTP Over TLS」、RFC 2818、DOI 10.17487 / RFC2818、2000年5月、<http://www.rfc-editor.org/info/rfc2818>。

[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, January 2005, <http://www.rfc-editor.org/info/rfc3986>.

[RFC3986] Berners-Lee、T.、Fielding、R。、およびL. Masinter、「Uniform Resource Identifier(URI):Generic Syntax」、STD 66、RFC 3986、DOI 10.17487 / RFC3986、2005年1月、<http:/ /www.rfc-editor.org/info/rfc3986>。

[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 5226, DOI 10.17487/RFC5226, May 2008, <http://www.rfc-editor.org/info/rfc5226>.

[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 5226, DOI 10.17487/RFC5226, May 2008, <http://www.rfc-editor.org/info/rfc5226>.

[RFC6707] Niven-Jenkins, B., Le Faucheur, F., and N. Bitar, "Content Distribution Network Interconnection (CDNI) Problem Statement", RFC 6707, DOI 10.17487/RFC6707, September 2012, <http://www.rfc-editor.org/info/rfc6707>.

[RFC6707] Niven-Jenkins、B.、Le Faucheur、F。、およびN. Bitar、「Content Distribution Network Interconnection(CDNI)Problem Statement」、RFC 6707、DOI 10.17487 / RFC6707、2012年9月、<http:// www .rfc-editor.org / info / rfc6707>。

[RFC7159] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March 2014, <http://www.rfc-editor.org/info/rfc7159>.

[RFC7159]ブレイ、T。、編、「JavaScript Object Notation(JSON)データ交換フォーマット」、RFC 7159、DOI 10.17487 / RFC7159、2014年3月、<http://www.rfc-editor.org/info/ rfc7159>。

[RFC7230] Fielding, R., Ed., and J. Reschke, Ed., "Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing", RFC 7230, DOI 10.17487/RFC7230, June 2014, <http://www.rfc-editor.org/info/rfc7230>.

[RFC7230] Fielding、R.、Ed。、and J. Reschke、Ed。、 "Hypertext Transfer Protocol(HTTP / 1.1):Message Syntax and Routing"、RFC 7230、DOI 10.17487 / RFC7230、June 2014、<http:/ /www.rfc-editor.org/info/rfc7230>。

[RFC7231] Fielding, R., Ed., and J. Reschke, Ed., "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content", RFC 7231, DOI 10.17487/RFC7231, June 2014, <http://www.rfc-editor.org/info/rfc7231>.

[RFC7231] Fielding, R., Ed., and J. Reschke, Ed., "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content", RFC 7231, DOI 10.17487/RFC7231, June 2014, <http://www.rfc-editor.org/info/rfc7231>.

[RFC7232] Fielding, R., Ed., and J. Reschke, Ed., "Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests", RFC 7232, DOI 10.17487/RFC7232, June 2014, <http://www.rfc-editor.org/info/rfc7232>.

[RFC7232] Fielding、R.、Ed。、and J. Reschke、Ed。、 "Hypertext Transfer Protocol(HTTP / 1.1):Conditional Requests"、RFC 7232、DOI 10.17487 / RFC7232、June 2014、<http:// www .rfc-editor.org / info / rfc7232>。

[RFC7525] Sheffer, Y., Holz, R., and P. Saint-Andre, "Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)", BCP 195, RFC 7525, DOI 10.17487/RFC7525, May 2015, <http://www.rfc-editor.org/info/rfc7525>.

[RFC7525] Sheffer、Y.、Holz、R。、およびP. Saint-Andre、「Transport Layer Security(TLS)およびDatagram Transport Layer Security(DTLS)の安全な使用に関する推奨事項」、BCP 195、RFC 7525、DOI 10.17487 / RFC7525、2015年5月、<http://www.rfc-editor.org/info/rfc7525>。

[RFC8006] Niven-Jenkins, B., Murray, R., Caulfield, M., and K. Ma, "Content Delivery Network Interconnection (CDNI) Metadata", RFC 8006, DOI 10.17487/RFC8006, December 2016, <http://www.rfc-editor.org/info/rfc8006>.

[RFC8006] Niven-Jenkins、B.、Murray、R.、Caulfield、M。、およびK. Ma、「Content Delivery Network Interconnection(CDNI)Metadata」、RFC 8006、DOI 10.17487 / RFC8006、2016年12月、<http: //www.rfc-editor.org/info/rfc8006>。

9.2. Informative References
9.2. 参考引用

[CBOR-CDDL] Vigano, C. and H. Birkholz, "CBOR data definition language (CDDL): a notational convention to express CBOR data structures", Work in Progress, draft-greevenbosch-appsawg-cbor-cddl-09, September 2016.

[CBOR-CDDL] Vigano、C。およびH. Birkholz、「CBORデータ定義言語(CDDL):CBORデータ構造を表現するための表記規則」、作業中、draft-greevenbosch-appsawg-cbor-cddl-09、9月2016。

[RFC7336] Peterson, L., Davie, B., and R. van Brandenburg, Ed., "Framework for Content Distribution Network Interconnection (CDNI)", RFC 7336, DOI 10.17487/RFC7336, August 2014, <http://www.rfc-editor.org/info/rfc7336>.

[RFC7336] Peterson、L.、Davie、B。、およびR. van Brandenburg、編、「Framework for Content Distribution Network Interconnection(CDNI)」、RFC 7336、DOI 10.17487 / RFC7336、2014年8月、<http:// www.rfc-editor.org/info/rfc7336>。

[RFC7337] Leung, K., Ed., and Y. Lee, Ed., "Content Distribution Network Interconnection (CDNI) Requirements", RFC 7337, DOI 10.17487/RFC7337, August 2014, <http://www.rfc-editor.org/info/rfc7337>.

[RFC7337] Leung、K。、編、およびY. Lee、編、「Content Distribution Network Interconnection(CDNI)Requirements」、RFC 7337、DOI 10.17487 / RFC7337、2014年8月、<http://www.rfc- editor.org/info/rfc7337>。

[RFC7736] Ma, K., "Content Delivery Network Interconnection (CDNI) Media Type Registration", RFC 7736, DOI 10.17487/RFC7736, December 2015, <http://www.rfc-editor.org/info/rfc7736>.

[RFC7736] Ma, K., "Content Delivery Network Interconnection (CDNI) Media Type Registration", RFC 7736, DOI 10.17487/RFC7736, December 2015, <http://www.rfc-editor.org/info/rfc7736>.

[RFC7975] Niven-Jenkins, B., Ed., and R. van Brandenburg, Ed., "Request Routing Redirection Interface for Content Delivery Network (CDN) Interconnection", RFC 7975, DOI 10.17487/RFC7975, October 2016, <http://www.rfc-editor.org/info/rfc7975>.

[RFC7975] Niven-Jenkins、B.、Ed。およびR. van Brandenburg、Ed。、「Request Routing Redirection Interface for Content Delivery Network(CDN)Interconnection」、RFC 7975、DOI 10.17487 / RFC7975、2016年10月、<http ://www.rfc-editor.org/info/rfc7975>。

Appendix A. Formalization of the JSON Data
Appendix A. Formalization of the JSON Data

This appendix is non-normative.

この付録は非規範的です。

The JSON data described in this document has been formalized using the CBOR Data Definition Language (CDDL) [CBOR-CDDL] (where "CBOR" means "Concise Binary Object Representation"), as follows:

このドキュメントで説明するJSONデータは、CBORデータ定義言語(CDDL)[CBOR-CDDL](「CBOR」は「簡潔なバイナリオブジェクト表現」を意味する)を使用して、次のように形式化されています。

 CIT-object = CIT-command / Trigger-Status-Resource / Trigger-Collection
        
 CIT-command ; use media type application/cdni; ptype=ci-trigger-command
 = {
   ? trigger: Triggerspec
   ? cancel: [* URI]
   cdn-path: [* Cdn-PID]
 }
        
 Trigger-Status-Resource ; application/cdni; ptype=ci-trigger-status
 = {
   trigger: Triggerspec
   ctime: Absolute-Time
   mtime: Absolute-Time
   ? etime: Absolute-Time
   status: Trigger-Status
   ? errors: [* Error-Description]
 }
        
 Trigger-Collection ; application/cdni; ptype=ci-trigger-collection
 = {
   triggers: [* URI]
   ? staleresourcetime: int ; time in seconds
   ? coll-all: URI
   ? coll-pending: URI
   ? coll-active: URI
   ? coll-complete: URI
   ? coll-failed: URI
   ? cdn-id: Cdn-PID
 }
        
 Triggerspec = { ; see Section 5.2.1
   type: Trigger-Type
   ? metadata.urls: [* URI]
   ? content.urls: [* URI]
   ? content.ccid: [* Ccid]
   ? metadata.patterns: [* Pattern-Match]
   ? content.patterns: [* Pattern-Match]
 }
 Trigger-Type = "preposition" / "invalidate"
    / "purge" ; see Section 5.2.2
        
 Trigger-Status = "pending" / "active" / "complete" / "processed"
    / "failed" / "cancelling" / "cancelled" ; see Section 5.2.3
        
 Pattern-Match = { ; see Section 5.2.4
   pattern: tstr
   ? case-sensitive: bool
   ? match-query-string: bool
 }
        

Absolute-Time = number ; seconds since UNIX epoch (Section 5.2.5)

Absolute-Time = number ; seconds since UNIX epoch (Section 5.2.5)

 Error-Description = { ; see Section 5.2.6
   error: Error-Code
   ? metadata.urls: [* URI]
   ? content.urls: [* URI]
   ? metadata.patterns: [* Pattern-Match]
   ? content.patterns: [* Pattern-Match]
   ? description: tstr
 }
        
 Error-Code = "emeta" / "econtent" / "eperm" / "ereject"
    / "ecdn" / "ecanceled"  ; see Section 5.2.7
        

Ccid = tstr ; see RFC 8006

Ccid = tstr; RFC 8006を参照

 Cdn-PID = tstr .regexp "AS[0-9]+:[0-9]+"
        
 URI = tstr
        

Acknowledgments

謝辞

The authors thank Kevin Ma for his input, and Carsten Bormann for his review and formalization of the JSON data.

著者は、Kevin Maへの入力に感謝し、Carsten Bormannは、JSONデータのレビューと形式化に感謝します。

Authors' Addresses

著者のアドレス

Rob Murray Nokia 3 Ely Road Milton, Cambridge CB24 6DD United Kingdom

Rob Murray Nokia 3 Ely Road Milton、Cambridge CB24 6DDイギリス

   Email: rob.murray@nokia.com
        

Ben Niven-Jenkins Nokia 3 Ely Road Milton, Cambridge CB24 6DD United Kingdom

Ben Niven-Jenkins Nokia 3 Ely Road Milton, Cambridge CB24 6DD United Kingdom

   Email: ben.niven-jenkins@nokia.com