バンドル リソース
この Web サービスは、CA APM Command Center で使用可能なバンドルに関する情報を返します。
apmdevops104jp
この Web サービスは、CA APM Command Center で使用可能なバンドルに関する情報を返します。
サポートされている動詞: GET、HEAD、POST、DELETE、OPTIONS
GET
GET https://localhost:8443/apm/acc/bundle
POST
これは、curl を使用したバンドル アップロードの例です。
curl -k -H "Authorization:Bearer <TOKEN>" -F [email protected] https://localhost:8443/apm/acc/bundle
以下のようなの応答が返されます。
{ "id": 26, "name": "leakhunter", "addedBy": null, "author": "Not Specified", "displayName": "Leak Hunter", "description": "This bundle tracks the size of most default Java Collections.", "version": "10.5", "agentVersion": "10.5", "path": "leakhunter-10.5.tar.gz", "facets": [ "leakhunter" ], "dependencies": [ "java-agent", "process" ], "enhances": [], "excludes": [], "compatibility": { "osName": null, "agentVersion": "10.5" }, "specificationVersion": "1", "type": "java", "dynamic": null,"_links": { "self": { "href": "https://localhost:8443/apm/acc/bundle/26" }, "profile": { "href": "https://localhost:8443/apm/acc/bundle/26/profile" }, "download": { "href": "https://localhost:8443/apm/acc/bundle/26?format=archive" } }}
DELETE
以下の要求は、ID 21 のバンドルを削除します。
DELETE https://localhost:8443/apm/acc/bundle/21
バンドルの削除時
- リソースに対して GET が実行されると、バンドルは表示されなくなります。
- 新しいパッケージが作成されるか、既存のバンドルが編集されると、バンドルは利用可能なバンドルとしてリスト表示されなくなります。
- こうしたバンドルはそれを使用する既存のパッケージ内で表示されますが、削除されたバンドルとしてマークされます。パッケージからバンドルが削除されると、それを再度追加することはできません。
注:
コア バンドルを削除することはできません。リソースのプロパティ
リソースに関する情報が含まれる以下のプロパティを使用できます。
プロパティ名 | タイプ | 説明 | API バージョン |
id | 整数 | リソースの一意の識別子。 | 1.1 |
name | 文字列 | バンドルの内部名 | 1.1 |
displayName | 文字列 | わかりやすい形式のバンドルの名前。 | 1.1 |
description | 文字列 | バンドルの簡単な説明。 | 1.1 |
version | 文字列 | バンドルのバージョン。 | 1.1 |
agentVersion | 文字列 | バンドルの設計対象の APM エージェントのバージョン | 1.1 |
path | 文字列 | バンドルのアーカイブ ファイルのパス。 | 1.1 |
facets | 配列 | バンドルを識別する要素のリスト。 | 1.1 |
dependencies | 配列 | バンドルが依存する要素のリスト。 | 1.1 |
enhances | 配列 | バンドルが拡張する要素のリスト。 | 1.1 |
compatibility | サブリソース | バンドルの互換性制約を、「osName」および「agentVersion」として定義します。 | 1.1 |
specificationVersion | 文字列 | バンドル メタデータ仕様バージョン。 | 1.1 |
type | 文字列 | バンドルのタイプ。現時点では、常に「java」です。 | 1.1 |
deleted | ブール | バンドルが削除されている(true)か、アクティブ(NULL または false)かを決定します。 | 1.1 |
category | 文字列 | バンドルのカテゴリ: コア、環境、機能、カスタム。 | 1.1 |