在庫の在庫の作成
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
タイトル:
Variables
JSONまたは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
タイトル:
Variables
JSONまたはYAML形式のインベントリ変数。