カタログレイヤーのサブスクリプション
OLP CLI は、次のものをサポートしています。
- レイヤーのサブスクリプションを作成します
- レイヤーのサブスクリプションを削除します
- 利用可能なすべてのサブスクリプションを一覧表示します
- サブスクリプションの詳細を表示します
レイヤーレベルのサブスクリプションを使用すると、特定のレイヤーで変更が発生したときに通知を受け取ることができます。
注
すべてのサブスクリプションコマンドは、既定のプロジェクトスコープの資格情報 または --scope コマンドパラメータを使用して、プロジェクト範囲内でのみ実行されます。
カタログレイヤーサブスクリプションが作成されました
レイヤー変更通知のサブスクリプションを作成します。
olp catalog layer subscription create <subscription name> \
<subscription type> <source catalog HRN> <source layer ID> \
<destination catalog HRN> <destination layer ID> [command options]
olp catalog layer subscription create <subscription Name> ^
<subscription type> <source catalog HRN> <source layer ID> ^
<destination catalog HRN> <destination layer ID> [command options]
必須パラメータ :
<subscription name>
サブスクリプションの人間が読める名前。 <subscription type>
サブスクリプションのタイプ。 指定できる値は transaction
、feature
およびchange
です。 <source catalog HRN>
ソースカタログの HERE リソースネーム 。 <source layer ID>
ソースレイヤーの ID 。 <destination catalog HRN>
宛先カタログの HERE リソースネーム 。 <destination layer ID>
宛先レイヤーの ID 。
オプションのパラメータ :
--description <subscription description>
サブスクリプションの詳細な説明。 -
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、プラットフォームポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --json
コマンドの結果を JSON 形式で表示します。 --quiet
作成されたサブスクリプションの HERE リソースネーム を表示します。 -
--scope <project HRN>
リクエストのスコープとして使用するプロジェクト HERE リソースネーム を指定します。 で指定された値 --scope
は here.token.scope
、コマンドに使用された資格情報ファイルで指定された値よりも優先されます。
注
--scope
コマンドの実行にスコープのない資格情報 ファイルが使用されている場合、このパラメータは必須です。
例 :
次のコマンド を使用すると、タイプtransaction
のサブスクリプションmy-subscription
が作成され、カタログhrn:here:data::org:source-catalog
のsource-layer
で変更が発生したときに通知を受け取ることができます。
通知は destination-layer
カタログのに書き込ま hrn:here:data::org:destination-catalog
れます。
olp catalog layer subscription create my-subscription transaction \
hrn:here:data::org:source-catalog source-layer \
hrn:here:data::org:destination-catalog destination-layer
olp catalog layer subscription create my-subscription transaction ^
hrn:here:data::org:source-catalog source-layer ^
hrn:here:data::org:destination-catalog destination-layer
出力 :
Subscription hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b has been created
カタログレイヤーサブスクリプションが削除されました
特定のレイヤーの通知に対するサブスクリプションを削除します。
olp catalog layer subscription delete <subscription HRN> [command options]
必須パラメータ :
<subscription HRN>
削除する必要があるサブスクリプションの HERE リソースネーム 。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、プラットフォームポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --quiet
削除されたサブスクリプションの HERE リソースネーム を表示します。 -
--scope <project HRN>
リクエストのスコープとして使用するプロジェクト HERE リソースネーム を指定します。 で指定された値 --scope
は here.token.scope
、コマンドに使用された資格情報ファイルで指定された値よりも優先されます。
注
--scope
コマンドの実行にスコープのない資格情報 ファイルが使用されている場合、このパラメータは必須です。
例 :
次のコマンド hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b
を実行すると、 HERE リソースネーム でのサブスクリプションが削除されます。
olp catalog layer subscription delete hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b
出力 :
Subscription hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b has been deleted
カタログレイヤーサブスクリプションリスト
利用可能なすべてのサブスクリプションが一覧表示されます。
olp catalog layer subscription list [command options]
オプションのパラメータ :
--type <transaction|feature|change>
サブスクリプションタイプに基づいてサブスクリプションのリストをフィルタリングします。 --source-catalog <source catalog HRN>
ソースカタログに基づいてサブスクリプションのリストをフィルタリングします。 --destination-catalog <destination catalog HRN>
宛先カタログに基づいてサブスクリプションのリストをフィルタリングします。 -
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、プラットフォームポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --json
コマンドの結果を JSON 形式で表示します。 --quiet
サブスクリプションの HRNS を表示します。 -
--scope <project HRN>
リクエストのスコープとして使用するプロジェクト HERE リソースネーム を指定します。 で指定された値 --scope
は here.token.scope
、コマンドに使用された資格情報ファイルで指定された値よりも優先されます。
注
--scope
コマンドの実行にスコープのない資格情報 ファイルが使用されている場合、このパラメータは必須です。
例 :
以下のコマンドを実行すると、利用可能なすべてのサブスクリプションのリストが返されます。
olp catalog layer subscription list
出力 :
HRN name description
hrn:here:data-subscription::org:my-subscription-7d93563980d94f1bmy-subscription my-subscription A detailed description
Use olp catalog layer subscription show <subscription HRN> to display more information about a subscription
カタログレイヤーのサブスクリプションが表示されます
サブスクリプションの詳細を表示します。
olp catalog layer subscription show <subscription HRN> [command options]
必須パラメータ :
<subscription HRN>
表示するサブスクリプションの HERE リソースネーム 。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、プラットフォームポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --json
コマンドの結果を JSON 形式で表示します。 --quiet
サブスクリプションの名前を表示します。 -
--scope <project HRN>
リクエストのスコープとして使用するプロジェクト HERE リソースネーム を指定します。 で指定された値 --scope
は here.token.scope
、コマンドに使用された資格情報ファイルで指定された値よりも優先されます。
注
--scope
コマンドの実行にスコープのない資格情報 ファイルが使用されている場合、このパラメータは必須です。
例 :
次のコマンド hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b
は、 HERE リソースネーム を使用したサブスクリプションの詳細を JSON 形式で表示します。
olp catalog layer subscription show hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b --json
出力 :
{
"subscriptionName": "my-subscription",
"subscriptionHrn": "hrn:here:data-subscription::org:my-subscription-7d93563980d94f1b",
"description": "A detailed description of the subscription",
"sourceCatalog": "hrn:here:data::org:my-source-catalog",
"sourceLayer": "source-layer",
"destinationCatalog": "hrn:here:data::org:my-destination-catalog",
"destinationLayer": "destination-layer",
"owner": {
"creator": {
"id": "string"
},
"organisation": {
"id": "org"
}
},
"version": 0,
"created": "2017-08-04T17:19:03.853Z",
"updated": "2017-08-04T17:19:03.853Z",
"status": {
"state": "active",
"message": "Some error message"
},
"interactiveMapSubscription": {
"type": "perFeature"
}
}