デバイス
OLP CLI は、デバイスアカウント管理で次の機能をサポートしています。
デバイスは、トークン交換の一部として作成されます。 デバイスの作成に別個のコマンドはありません。
デバイスが表示されます
デバイスアカウントの詳細を表示します。
olp device show <device HRN>
必須パラメータ :
<device HRN>
表示するデバイスアカウントの HERE リソースネーム 。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、 HERE platform ポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --quiet
デバイス名を表示します。--json
コマンドの結果を JSON 形式で表示します。
資格情報 およびプロファイルの使用方法の詳細について は、「資格情報 の設定」を参照してください。
例 :
次のコマンドは、デバイスアカウントの詳細を示しています。
olp device show hrn:here:account::org:device/my-device-1234
出力 :
Details of the device:
id my-device-1234
hrn hrn:here:account::org:device/my-device-1234
realm hrn:here:account::org:realm/org
project hrn:here:authorization::org:project/my-project-1234
identityProvider hrn:here:account::org:identityProvider/my-provider-1234
externalId A-S0001234
enabled true
デバイスの更新
デバイスアカウントを更新します。
olp device update <device HRN> [command options]
必須パラメータ :
<device HRN>
更新するデバイスアカウントの HERE リソースネーム 。--enabled <true|false>
デバイスを有効または無効にします。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、 HERE platform ポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 -
--quiet
空の出力を追加情報なしで表示します。
注
デバイスを更新するには、呼び出し元が組織のリソース管理者である必要があります。
資格情報 およびプロファイルの使用方法の詳細について は、「資格情報 の設定」を参照してください。
例 :
次のコマンドを実行すると、デバイスアカウントが無効になります。
olp device update hrn:here:account::org:device/my-device-1234 --enabled false
出力 :
Device account hrn:here:account::org:device/my-device-1234 has been updated
デバイスが見つかりました
外部 ID およびプロバイダ HERE リソースネーム によってデバイスの詳細を検索します。
olp device find --provider <provider HRN> --external-id <external ID>
必須パラメータ :
--provider <provider HRN>
ID プロバイダの HERE リソースネーム 。--external-id
パラメーターと一緒に使用する必要があります。--external-id <external ID>
ID プロバイダ内のデバイスの識別子。--provider
パラメーターと一緒に使用する必要があります。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、 HERE platform ポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 --json
コマンドの結果を JSON 形式で表示します。--quiet
デバイスの HERE リソースネーム を表示します。
資格情報 およびプロファイルの使用方法の詳細について は、「資格情報 の設定」を参照してください。
例 :
以下のコマンドは、提供された外部 ID およびプロバイダと一致するデバイスアカウントの詳細を取得します。
olp device find --provider hrn:here:account::org:identityProvider/my-provider-1234 --external-id A-S0001234
出力 :
Details of the device:
id my-device-1234
hrn hrn:here:account::org:device/my-device-1234
realm hrn:here:account::org:realm/org
project hrn:here:authorization::org:project/my-project-1234
identityProvider hrn:here:account::org:identityProvider/my-provider-1234
externalId A-S0001234
enabled true
デバイスの削除
デバイスアカウントを削除します。
olp device delete <device HRN>
必須パラメータ :
<device HRN>
削除するデバイスアカウントの HERE リソースネーム 。
オプションのパラメータ :
-
--credentials <path to credentials file>
コマンドで使用する資格情報ファイルの名前。 資格情報ファイルは、 HERE platform ポータルとは別にダウンロードされます。 -
--profile <profile name>
olpcli.ini
ファイルから使用する資格情報プロファイルの名前。 -
--quiet
空の出力を追加情報なしで表示します。
注
デバイスを削除するには、呼び出し元が組織のリソース管理者である必要があります。
資格情報 およびプロファイルの使用方法の詳細について は、「資格情報 の設定」を参照してください。
例 :
次のコマンドを実行すると、デバイスアカウントが削除されます。
olp device delete hrn:here:account::org:device/my-device-1234
出力 :
Device account hrn:here:account::org:device/my-device-1234 has been deleted