在庫の在庫の作成
post
/api/v2/inventories/{id}/input_inventories/
次のインベントリ・フィールドを使用してこのリソースに対してPOSTリクエストを行い、このインベントリに関連付けられた新しいインベントリを作成します。
name: このインベントリの名前。(string, required)description: このインベントリのオプションの説明。(string, default="")organization: このインベントリを含む組織。(id, required)kind: 表されるインベントリの種類。(choice)"": ホストには、このインベントリへの直接リンクがあります。(デフォルト)smart: host_filterプロパティを使用して生成されたインベントリのホスト。constructed: 構築されたインベントリ・プラグインでソース在庫のリストを解析します。
host_filter: このインベントリのホストに適用されるフィルタ。(string, default="")-
variables: JSONまたはYAML形式のインベントリ変数。(json、default=`) -
prevent_instance_group_fallback: 有効にすると、在庫管理では、関連付けられたジョブ・テンプレートを実行するために、組織インスタンス・グループを優先インスタンス・グループのリストに追加できなくなります。この設定が有効で、空のリストを指定した場合、グローバル・インスタンス・グループが適用されます。(ブール、デフォルト=False)
在庫の在庫の追加:
idフィールドのみを使用してこのリソースに対してPOSTリクエストを行い、既存のインベントリをこのインベントリに関連付けます。
この在庫から在庫を削除:
idおよびdisassociateフィールドを指定してこのリソースに対してPOSTリクエストを行い、インベントリを削除せずにこのインベントリからインベントリを削除します。
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
ルート・スキーマ : インベントリ
型:
ソースを表示
object- created: string
タイトル:
Created読取り専用:true - description: string
タイトル:
Description - has_active_failures: boolean
タイトル:
Has active failures読取り専用:trueこのフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストに障害が発生したかどうかを示すフラグ。 - has_inventory_sources: boolean
タイトル:
Has inventory sources読取り専用:trueこのフィールドは非推奨であり、将来のリリースで削除されます。 この在庫に外部在庫ソースがあるかどうかを示すフラグ。 - host_filter: string
タイトル:
Host filterこのインベントリのホストに適用されるフィルタ。 - hosts_with_active_failures: integer
タイトル:
Hosts with active failures読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 アクティブな障害があるこのインベントリ内のホストの数。 - id: integer
タイトル:
ID読取り専用:true - inventory_sources_with_failures: integer
タイトル:
Inventory sources with failures読取り専用:true最小値:0失敗があるこのインベントリ内の外部インベントリ・ソースの数。 - 親切な: string
タイトル:
Kind指定できる値:[ "", "smart", "constructed" ]表される在庫の種類。 - modified: string
タイトル:
Modified読取り専用:true - name(required): string
タイトル:
Name最小長:1最大長:512 - organization(required): integer
タイトル:
Organizationこの在庫を含む組織。 - pending_deletion: boolean
タイトル:
Pending deletion読取り専用:true在庫が削除されることを示すフラグ。 - prevent_instance_group_fallback: boolean
タイトル:
Prevent instance group fallback有効にすると、在庫管理では、関連付けられたジョブ・テンプレートを実行するために、組織インスタンス・グループを優先インスタンス・グループのリストに追加できなくなります。この設定が有効で、空のリストを指定した場合、グローバル・インスタンス・グループが適用されます。 - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - total_groups: integer
タイトル:
Total groups読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 この在庫のグループの合計数。 - total_hosts: integer
タイトル:
Total hosts読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストの合計数。 - total_inventory_sources: integer
タイトル:
Total inventory sources読取り専用:true最小値:0この在庫内に構成された外部在庫ソースの合計数。 - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true - variables: string
タイトル:
VariablesJSONまたはYAML形式のインベントリ変数。
レスポンス
サポートされているメディア・タイプ
- application/json
201レスポンス
ルート・スキーマ : インベントリ
型:
ソースを表示
object- created: string
タイトル:
Created読取り専用:true - description: string
タイトル:
Description - has_active_failures: boolean
タイトル:
Has active failures読取り専用:trueこのフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストに障害が発生したかどうかを示すフラグ。 - has_inventory_sources: boolean
タイトル:
Has inventory sources読取り専用:trueこのフィールドは非推奨であり、将来のリリースで削除されます。 この在庫に外部在庫ソースがあるかどうかを示すフラグ。 - host_filter: string
タイトル:
Host filterこのインベントリのホストに適用されるフィルタ。 - hosts_with_active_failures: integer
タイトル:
Hosts with active failures読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 アクティブな障害があるこのインベントリ内のホストの数。 - id: integer
タイトル:
ID読取り専用:true - inventory_sources_with_failures: integer
タイトル:
Inventory sources with failures読取り専用:true最小値:0失敗があるこのインベントリ内の外部インベントリ・ソースの数。 - 親切な: string
タイトル:
Kind指定できる値:[ "", "smart", "constructed" ]表される在庫の種類。 - modified: string
タイトル:
Modified読取り専用:true - name(required): string
タイトル:
Name最小長:1最大長:512 - organization(required): integer
タイトル:
Organizationこの在庫を含む組織。 - pending_deletion: boolean
タイトル:
Pending deletion読取り専用:true在庫が削除されることを示すフラグ。 - prevent_instance_group_fallback: boolean
タイトル:
Prevent instance group fallback有効にすると、在庫管理では、関連付けられたジョブ・テンプレートを実行するために、組織インスタンス・グループを優先インスタンス・グループのリストに追加できなくなります。この設定が有効で、空のリストを指定した場合、グローバル・インスタンス・グループが適用されます。 - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - total_groups: integer
タイトル:
Total groups読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 この在庫のグループの合計数。 - total_hosts: integer
タイトル:
Total hosts読取り専用:true最小値:0このフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストの合計数。 - total_inventory_sources: integer
タイトル:
Total inventory sources読取り専用:true最小値:0この在庫内に構成された外部在庫ソースの合計数。 - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true - variables: string
タイトル:
VariablesJSONまたはYAML形式のインベントリ変数。