コマンドライン・インタフェース(CLI)の使用
CLIを使用して、プライベート・エンドポイントおよび作業リクエストを管理します。
CLIの使用の詳細は、コマンドライン・インタフェース(CLI)を参照してください。CLIコマンドで使用できるフラグおよびオプションの完全なリストは、コマンドライン・リファレンスを参照してください。
トピック:
プライベート・エンドポイント用
プライベート・エンドポイントを作成するには
コマンド・プロンプトを開き、oci dbtools private-endpoint create
を実行して、データベース・ツール接続で使用する新しいプライベート・エンドポイントを作成します:
エンドポイント・サービスIDは、新しいプライベート・エンドポイントを作成するために必要であり、
oci dbtools endpoint-service list -c <target_compartment_id>
を使用して配置できます。
oci dbtools private-endpoint create -c <target_compartment_ocid> --endpoint-service-id <endpoint_service_ocid> --subnet-id <target_subnet_ocid> --display-name <private_endpoint_name>
たとえば:
oci dbtools private-endpoint create -c ocid1.compartment.oc1..example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz --endpoint-service-id ocid1.databasetoolsendpointservice.oc1..example1service25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz --subnet-id ocid1.subnet.oc1.phx.example1subnet123456789abcdefgbghqgmuz2zzum45ibplooqtabwk3zz --display-name example-pe-1
プライベート・エンドポイントをリストするには
コマンド・プロンプトを開き、oci dbtools private-endpoint list
を実行して、指定したコンパートメント内のすべてのプライベート・エンドポイントの詳細を表示します:
oci dbtools private-endpoint list -c <target_compartment_ocid>
たとえば:
oci dbtools private-endpoint list -c ocid1.compartment.oc1..example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz
特定のプライベート・エンドポイントを取得するには
コマンド・プロンプトを開き、oci dbtools private-endpoint get
を実行して、指定したプライベート・エンドポイントの詳細を表示します:
oci dbtools private-endpoint get --private-endpoint-id <private_endpoint_ocid>
たとえば:
oci dbtools private-endpoint get --private-endpoint-id ocid1.databasetoolsprivateendpoint.oc1.phx.example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz
プライベート・エンドポイントを更新するには
コマンド・プロンプトを開き、oci dbtools private-endpoint update
を実行して、指定したプライベート・エンドポイントの詳細を更新します:
oci dbtools private-endpoint update --private-endpoint-id <private_endpoint_ocid> --<property_to_update> <new_value>
たとえば:
oci dbtools private-endpoint update --private-endpoint-id ocid1.databasetoolsprivateendpoint.oc1.phx.example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz --display-name some-new-name
プライベート・エンドポイントを削除するには
コマンド・プロンプトを開き、oci dbtools private-endpoint delete
を実行して、指定したプライベート・エンドポイントを削除します:
oci dbtools private-endpoint delete --private-endpoint-id <private_endpoint_ocid>
例:
oci dbtools private-endpoint delete --private-endpoint-id ocid1.databasetoolsprivateendpoint.oc1.phx.example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz
リソースロックを追加する手順は、次のとおりです。
コマンド・プロンプトを開き、oci dbtools private-endpoint add-lock
を実行してリソース・ロックを追加します:
oci dbtools private-endpoint add-lock --private-endpoint-id <private_endpoint_ocid> --type DELETE
作業リクエスト用
作業リクエストのステータスを取得するには
コマンド・プロンプトを開き、oci dbtools work-request get
を実行して作業リクエストのステータスを確認します:
データベース・ツールの一部のコマンドは、非同期作業リクエストを開始し、作業リクエストIDを返します。作業リクエストは、作業リクエストIDで詳細を参照することで検査できます。
oci dbtools work-request get --work-request-id <work_request_ocid>
例:
oci dbtools work-request get --work-request-id ocid1.databasetoolsworkrequest.oc1.phx.example1request25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz