インベントリの作成
post
/api/v2/constructed_inventories/
次のインベントリ・フィールドを使用してこのリソースにPOSTリクエストし、新しいインベントリを作成します:
name
: このインベントリの名前。(string, required)description
: このインベントリのオプションの説明。(string, default=""
)-
organization
: このインベントリを含む組織。(id, required) -
variables
: JSONまたはYAML形式のインベントリ変数。(json、default=`) -
prevent_instance_group_fallback
: 有効にすると、在庫管理では、関連付けられたジョブ・テンプレートを実行するために、組織インスタンス・グループを優先インスタンス・グループのリストに追加できなくなります。この設定が有効で、空のリストを指定した場合、グローバル・インスタンス・グループが適用されます。(ブール、デフォルト=False
) source_vars
: 関連する自動作成されたインベントリ・ソースのsource_vars(特殊な構成済インベントリ)。(文字列、デフォルト=""
)update_cache_timeout
: 関連する自動作成されたインベントリ・ソースのキャッシュ・タイムアウト(特殊な構成済インベントリ(整数、デフォルト=None
)limit
: 関連する自動作成されたインベントリ・ソース(特殊な構成済インベントリ)に対して返されるホストを制限する制限。(文字列、デフォルト=""
)verbosity
: 関連する自動作成されたインベントリ・ソースの詳細レベル(特殊から構築されたインベントリ(整数、デフォルト=None
)
リクエスト
サポートされているメディア・タイプ
- application/json
ルート・スキーマ : ConstructedInventory
型:
ソースを表示
object
- created: string
タイトル:
Created
読取り専用:true
- description: string
タイトル:
Description
- has_active_failures: boolean
タイトル:
Has active failures
読取り専用:true
このフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストに障害が発生したかどうかを示すフラグ。 - has_inventory_sources: boolean
タイトル:
Has inventory sources
読取り専用:true
このフィールドは非推奨であり、将来のリリースで削除されます。 この在庫に外部在庫ソースがあるかどうかを示すフラグ。 - 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
読取り専用:true
指定できる値:[ "", "smart", "constructed" ]
表される在庫の種類。 - limit: string
タイトル:
Limit
関連する自動作成されたインベントリ・ソースの返されたホストを制限する制限(特殊な構成済インベントリ)。 - 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
- source_vars: string
タイトル:
Source vars
関連する自動作成されたインベントリ・ソースのsource_varsで、特殊な構成済インベントリです。 - 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
- update_cache_timeout: integer
タイトル:
Update cache timeout
最小値:0
関連する自動作成されたインベントリ・ソースのキャッシュ・タイムアウト(特殊から構築されたインベントリ) - url: string
タイトル:
Url
読取り専用:true
- variables: string
タイトル:
Variables
JSONまたはYAML形式のインベントリ変数。 - verbosity: integer
タイトル:
Verbosity
最小値:0
最大値:2
関連する自動作成された在庫ソースの詳細レベル(特別から構成済在庫)
レスポンス
サポートされているメディア・タイプ
- application/json
201レスポンス
ルート・スキーマ : ConstructedInventory
型:
ソースを表示
object
- created: string
タイトル:
Created
読取り専用:true
- description: string
タイトル:
Description
- has_active_failures: boolean
タイトル:
Has active failures
読取り専用:true
このフィールドは非推奨であり、将来のリリースで削除されます。 このインベントリ内のホストに障害が発生したかどうかを示すフラグ。 - has_inventory_sources: boolean
タイトル:
Has inventory sources
読取り専用:true
このフィールドは非推奨であり、将来のリリースで削除されます。 この在庫に外部在庫ソースがあるかどうかを示すフラグ。 - 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
読取り専用:true
指定できる値:[ "", "smart", "constructed" ]
表される在庫の種類。 - limit: string
タイトル:
Limit
関連する自動作成されたインベントリ・ソースの返されたホストを制限する制限(特殊な構成済インベントリ)。 - 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
- source_vars: string
タイトル:
Source vars
関連する自動作成されたインベントリ・ソースのsource_varsで、特殊な構成済インベントリです。 - 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
- update_cache_timeout: integer
タイトル:
Update cache timeout
最小値:0
関連する自動作成されたインベントリ・ソースのキャッシュ・タイムアウト(特殊から構築されたインベントリ) - url: string
タイトル:
Url
読取り専用:true
- variables: string
タイトル:
Variables
JSONまたはYAML形式のインベントリ変数。 - verbosity: integer
タイトル:
Verbosity
最小値:0
最大値:2
関連する自動作成された在庫ソースの詳細レベル(特別から構成済在庫)