NetBackup™ Web UI Apache Cassandra 管理者ガイド
API を使用した Cassandra 資産の管理、保護、リカバリ
このマニュアルでは、Cassandra 作業負荷操作の NetBackup API について詳しく説明します。操作には、資産管理、フィルタ処理、ソート、リカバリ管理、保護計画管理が含まれます。各 API エンドポイントについて、このマニュアルで要求、応答、エラー、ペイロードについての詳しい情報を示します。
API について詳しくは、次を参照してください。
次の場所にすべての NetBackup API が示されています。
[ Services and Operations Readiness Tools (SORT)]、[ナレッジベース (Knowledge Base)]、[文書 (Documents)]
API は要求された Cassandra 資産 (Cassandra クラスタ、Cassandra ノード、DSS クラスタ、DSS ノード) を作成します。
要求ペイロードには、単一の資産または資産の組み合わせに関する詳細情報を含めることができます。Cassandra 資産は、次の 2 つの手順で作成または更新できます。
生成された ID を取得するには、POST 要求を行う必要があります。
資産をデータベースに保存する GET 要求を行う必要があります。
表: 1. Cassandra クラスタと Cassandra ノードの要求パラメータ
API |
重要な変数とオプション |
---|---|
https://PrimaryerverName /netbackup/asset-service/queries/ |
|
https://PrimaryServerName /netbackup/asset-service/queries/ |
|
表: 2. 3. データステージングクラスタとノードの要求パラメータ
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/asset-service/queries/ |
|
https://PrimaryServerName /netbackup/asset-service/queries/ |
|
表: 応答パラメータ
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/asset-service/queries/ Response parameters |
|
資産はこの API を使用して NetBackup データベースに格納されます。URL に有効な資産応答 ID を持つ GET メソッドを使用します。
表: データベースへの資産の格納の応答
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/asset-service/queries/ Asset Response ID |
|
この API を使用して、特定の資産またはすべての資産を NetBackup データベースから削除できます。ノードや dataStagingNode などの個々の assetType を削除できます。この API を使用して assetType をクラスタまたは dataStagingCluster として削除すると、クラスタまたは dataStagingCluster に関連付けられているすべての対応する子ノードが削除されます。
表: 資産を削除するための要求ペイロード
API オプション |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/asset-service/queries |
|
データベース資産は、この API を使用して削除できます。これは、前回の要求から受け取った削除応答 ID と組み合わせて使用される 2 番目の要求です。
表:
メソッド |
URL |
---|---|
GET |
https://PrimaryServerName /netbackup/asset-service/queries/ Asset Delete Response ID 例: bcc0eb1f-6613-427d-8101-19376fd689f7 |
表: データベースからの資産の削除の応答
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/asset-service/queries/ Asset Delete Response ID 例: bcc0eb1f-6613-427d-8101-19376fd689f7 |
|
表: すべての資産の取得の要求
https://PrimaryServerName /netbackup/asset-service/ workloads/cassandra/assets |
Assets |
すべての資産はデフォルトの降順で一覧表示されます。応答パラメータの詳細については、ID 別の資産の取得テーブルを参照してください。ID 別の資産の取得テーブルに従って、すべての資産がデフォルトの降順で一覧表示されます。
この API を使用して、特定の資産の詳細を取得できます。この API を使用して、特定の資産に関する詳細を取得できます。
表:
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName/ netbackup/asset-service/workloads/ cassandra/assets/Asset ID |
|
https://PrimaryServerName/ netbackup/asset-service/workloads/ cassandra//Asset ID |
|
フィルタは、次の API エンドポイントのいずれでも適用できます。
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'node'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'dataStagingCluster'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'dataStagingNode'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'node' and parentProviderGeneratedId eq ' CASSANDRA_cluster_Cassandra10'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster' and commonAssetAttributes/ providerGeneratedId eq 'CASSANDRA_cluster_Cassandra1'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster' and dataStagingClusterName eq 'DSS1'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster' and backupDataCenterName eq 'earthCenter'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'node' and nodeIp eq '10.221.110.234'
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=(assetType eq 'cluster') and (contains(tolower(clusterName), 'cassandra1'))
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=(assetType eq 'cluster') and (clusterName eq 'Cassandra1')&meta=accessControlId
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster' and clusterName eq 'Cassandra10'
表:
フィルタ パラメータ |
フィルタ基準 |
値 |
説明 |
---|---|---|---|
assetType/ queryName/ workloads/ correlationId/ credentialName/ workloadType/ displayName/ clusterName/ dataStaging ClusterName/ backupData CenterName/ nodeDownThreshold Percentage/ parentProvider Generated |
eq |
cluster, node, dataStagingCluster and dataStagingNode |
資産タイプに基づく資産フィルタ |
eq |
'node' and parentProviderGeneratedId eq 'CASSANDRA_cluster_Cassandra1' | ||
eq |
'cluster' and commonAssetAttributes/ providerGeneratedId eq 'CASSANDRA_cluster_Cassandra1' | ||
eq |
'cluster' and dataStagingClusterName eq 'DSS1' | ||
eq |
'cluster' and backupDataCenterName eq 'earthCenter' | ||
eq |
'node' and nodeIp eq '10.221.105.94' | ||
eq |
(assetType eq 'cluster') and (contains(tolower(clusterName), 'cassandra1')) | ||
eq |
(assetType eq 'cluster') and (clusterName eq 'Cassandra1')&meta=accessControlId |
ソートは、次の API エンドポイントのいずれでも適用できます。
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster'&sort=clusterName
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster'&sort=-clusterName
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster'&sort=commonAssetAttributes. credentials.credentialName
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'cluster'&sort=-commonAssetAttributes .credentials.credentialName
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'node'&sort= parentProviderGeneratedId
https://PrimaryServerName/netbackup/asset-service/workloads/cassandra/ assets?filter=assetType eq 'node'&sort= -parentProviderGeneratedId
表:
フィルタパラメータ |
フィルタ基準 |
値 |
説明 |
---|---|---|---|
assetType |
eq |
cluster'&sort=clusterName | |
assetType |
eq |
node and parentProviderGeneratedId eq 'CASSANDRA_cluster_Cassandra1 | |
assetType |
eq |
cluster'&sort= commonAssetAttributes .credentials.credentialName | |
assetType |
eq |
'cluster'&sort=-commonAssetAttributes. credentials.credentialName | |
assetType |
eq |
'node'&sort= | |
assetType |
eq |
parentProvider GeneratedId | |
assetType |
eq |
'node' &sort=-parentProvider GeneratedId |
次の API は、関連付けられた資産で実際のバックアップ操作をトリガするために使用されるポリシーを作成または更新します。これらの API は、増分バックアップと完全バックアップの両方のポリシーを作成または更新するのに役立ちます。作成されたポリシーに基づいて、提供されたスケジュールの詳細にしたがってバックアップジョブが自動的にトリガされます。
表: SLO の作成: 完全および差分増分
メソッド |
Post |
---|---|
https://PrimaryServerName/ netbackup/servicecatalog/slos |
表: SLO を作成するための要求ペイロード:
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName /netbackup/servicecatalog/slos |
|
表: SLO の作成の応答
API |
重要な変数とオプション |
---|---|
https://PrimaryServerName/ netbackup/servicecatalog/slos |
|
表:
メソッド |
Post |
---|---|
https://{{hostname}}/netbackup/ servicecatalog/slos/ {{newsloid}}/subscriptions |
表: サブスクリプションを作成するための要求ペイロード:
API |
重要な変数とオプション |
---|---|
https://{{hostname}}/netbackup/ servicecatalog/slos/ {{newsloid}}/subscriptions |
|
表: サブスクリプションの作成の応答
API |
重要な変数とオプション |
---|---|
https://{{hostname}}/netbackup/ servicecatalog/slos/ {{newsloid}}/subscriptions |
|
検出 API は、指定された資産に対する検出の実際の開始または停止に対応します。
表: 検出の開始
API |
重要な変数とオプション |
---|---|
https://{{HOSTNAME}}/netbackup/ admin/discovery/workloads/cassandra/start |
|
表: 検出の停止
API |
重要な変数とオプション |
---|---|
https://{{HOSTNAME}}/netbackup/admin/ discovery/workloads/cassandra/stop |
|
リカバリ API は、リカバリポイント、ソース、宛先などの詳細に基づいて、特定の Cassandra 資産の実際のリカバリに対応します。
表:
API |
重要な変数とオプション |
---|---|
POST /recovery/workloads/cassandra/ scenarios/cluster/recover |
|
表: リカバリ API の応答
API |
重要な応答コード |
---|---|
POST /recovery/workloads/cassandra/ scenarios/cluster/recover |
|