ホストの作成
post
/api/v2/hosts/
host_filterは、このエンドポイントで使用できます。 フィルタがサポート: リレーショナル問合せ、and orブール・ロジック、および()による式のグループ化。
?host_filter=name=my_host
?host_filter=name="my host" or name=my_host
?host_filter=groups__name="my group"
?host_filter=name=my_host and groups__name="my group"
?host_filter=name=my_host and groups__name="my group"
?host_filter=(name=my_host and groups__name="my group") or (name=my_host2 and groups__name=my_group2)
host_filterは、関連するansible_factsのJSONデータの問合せにも使用できます。__は、JSONディクショナリの走査に使用できます。[]は、JSON配列の走査に使用できます。
?host_filter=ansible_facts__ansible_processor_vcpus=8
?host_filter=ansible_facts__ansible_processor_vcpus=8 and name="my_host" and ansible_facts__ansible_lo__ipv6[]__scope=host
リクエスト
サポートされているメディア・タイプ
- application/json
ルート・スキーマ : ホスト
型:
ソースを表示
object- ansible_facts_modified: string(date-time)
タイトル:
Ansible facts modified読取り専用:trueansible_factsが最後に変更された日時。 - created: string
タイトル:
Created読取り専用:true - description: string
タイトル:
Description - enabled: boolean
タイトル:
Enabledデフォルト値:trueこのホストはオンラインであり、ジョブの実行に使用できますか。 - has_active_failures: string
タイトル:
Has active failures読取り専用:true - has_inventory_sources: string
タイトル:
Has inventory sources読取り専用:true - id: integer
タイトル:
ID読取り専用:true - instance_id: string
タイトル:
Instance id最大長:1024ホストを一意に識別するためにリモート・インベントリ・ソースによって使用される値 - inventory(required): integer
タイトル:
Inventory - last_job: string
タイトル:
Last job読取り専用:true - last_job_host_summary: integer
タイトル:
Last job host summary読取り専用:true - modified: string
タイトル:
Modified読取り専用:true - name(required): string
タイトル:
Name最小長:1最大長:512 - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true - variables: string
タイトル:
VariablesJSONまたはYAML形式のホスト変数。
レスポンス
サポートされているメディア・タイプ
- application/json
201レスポンス
ルート・スキーマ : ホスト
型:
ソースを表示
object- ansible_facts_modified: string(date-time)
タイトル:
Ansible facts modified読取り専用:trueansible_factsが最後に変更された日時。 - created: string
タイトル:
Created読取り専用:true - description: string
タイトル:
Description - enabled: boolean
タイトル:
Enabledデフォルト値:trueこのホストはオンラインであり、ジョブの実行に使用できますか。 - has_active_failures: string
タイトル:
Has active failures読取り専用:true - has_inventory_sources: string
タイトル:
Has inventory sources読取り専用:true - id: integer
タイトル:
ID読取り専用:true - instance_id: string
タイトル:
Instance id最大長:1024ホストを一意に識別するためにリモート・インベントリ・ソースによって使用される値 - inventory(required): integer
タイトル:
Inventory - last_job: string
タイトル:
Last job読取り専用:true - last_job_host_summary: integer
タイトル:
Last job host summary読取り専用:true - modified: string
タイトル:
Modified読取り専用:true - name(required): string
タイトル:
Name最小長:1最大長:512 - related: string
- summary_fields: string
タイトル:
Summary fields読取り専用:true - type: string
タイトル:
Type読取り専用:true - url: string
タイトル:
Url読取り専用:true - variables: string
タイトル:
VariablesJSONまたはYAML形式のホスト変数。