GET /api/ptables
すべてのパーティションテーブルを一覧表示

GET /api/operatingsystems/:operatingsystem_id/ptables
オペレーティングシステムのすべてのパーティションテーブルを一覧表示

GET /api/locations/:location_id/ptables
ロケーションごとのすべてのパーティションテーブルを一覧表示

GET /api/organizations/:organization_id/ptables
組織ごとのすべてのパーティションテーブルを一覧表示

パラメーター

パラメーター名 記述
operatingsystem_id
任意

オペレーティングシステムの ID

Validations:

  • Must be a String

location_id
任意

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
任意

組織別のスコープ

Validations:

  • Must be a Integer

search
任意

結果のフィルター

Validations:

  • Must be a String

order
任意

フィールドと順序のソート (例: ‘id DESC’)

Validations:

  • Must be a String

page
任意

1 から始まるページ番号

Validations:

  • Must be a number.

per_page
任意

戻されるページごとの結果数

Validations:

  • Must be a number.

検索フィールド

フィールド名 タイプ 設定可能な値
default true, false
family
layout
location
location_id
locked true, false
name
organization
organization_id
snippet true, false
template
vendor

GET /api/ptables/:id
パーティションテーブルの表示

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/ptables
パーティションテーブルの作成

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
必須

Validations:

  • Must be a Hash

ptable[name]
必須

Validations:

  • Must be a String

ptable[description]
任意 , nil可

Validations:

  • Must be a String

ptable[layout]
必須

Validations:

  • Must be a String

ptable[snippet]
任意 , nil可

Validations:

  • Must be one of: true, false, 1, 0.

ptable[audit_comment]
任意 , nil可

Validations:

  • Must be a String

ptable[locked]
任意 , nil可

テンプレートを編集用にロックするかどうか

Validations:

  • Must be one of: true, false, 1, 0.

ptable[os_family]
任意 , nil可

Validations:

  • Must be a String

ptable[operatingsystem_ids]
任意 , nil可

パーティションテーブルに関連付けるオペレーティングシステム ID の配列

Validations:

  • Must be an array of any type

ptable[host_ids]
任意 , nil可

パーティションテーブルに関連付けるホスト ID の配列

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
任意 , nil可

パーティションテーブルに関連付けるホストグループ ID の配列

Validations:

  • Must be an array of any type

ptable[location_ids]
任意 , nil可

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

ptable[organization_ids]
任意 , nil可

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


POST /api/ptables/import
プロビジョニングテンプレートのインポート

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
必須

Validations:

  • Must be a Hash

ptable[name]
任意

テンプレート名

Validations:

  • Must be a String

ptable[template]
任意

メタデータを含むテンプレートコンテンツ

Validations:

  • Must be a String

ptable[location_ids]
任意 , nil可

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

ptable[organization_ids]
任意 , nil可

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type

options
任意

Validations:

  • Must be a Hash

options[force]
任意 , nil可

ロックしたテンプレートを更新したい場合に使用

Validations:

  • Must be one of: true, false, 1, 0.

options[associate]
任意 , nil可

テンプレートがオブジェクトをメタデータに基づいて関連付ける場合を決定します。new は新規テンプレートが作成中であることを意味します。always は、新規および更新中の既存のテンプレートを意味します。never はメタデータを無視します

Validations:

  • Must be one of: new, always, never.

options[lock]
任意 , nil可

インポートされたテンプレートをロックします (デフォルトは false)

Validations:

  • Must be one of: true, false, 1, 0.

options[default]
任意 , nil可

テンプレートにデフォルトで意味付けし、新たに作成された組織と場所に自動的に関連付けます (デフォルトは false)

Validations:

  • Must be one of: true, false, 1, 0.


GET /api/ptables/revision

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

version
任意

テンプレートのバージョン

Validations:

  • Must be a String


PUT /api/ptables/:id
パーティションテーブルの更新

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be a String

ptable
必須

Validations:

  • Must be a Hash

ptable[name]
任意

Validations:

  • Must be a String

ptable[description]
任意 , nil可

Validations:

  • Must be a String

ptable[layout]
任意

Validations:

  • Must be a String

ptable[snippet]
任意 , nil可

Validations:

  • Must be one of: true, false, 1, 0.

ptable[audit_comment]
任意 , nil可

Validations:

  • Must be a String

ptable[locked]
任意 , nil可

テンプレートを編集用にロックするかどうか

Validations:

  • Must be one of: true, false, 1, 0.

ptable[os_family]
任意 , nil可

Validations:

  • Must be a String

ptable[operatingsystem_ids]
任意 , nil可

パーティションテーブルに関連付けるオペレーティングシステム ID の配列

Validations:

  • Must be an array of any type

ptable[host_ids]
任意 , nil可

パーティションテーブルに関連付けるホスト ID の配列

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
任意 , nil可

パーティションテーブルに関連付けるホストグループ ID の配列

Validations:

  • Must be an array of any type

ptable[location_ids]
任意 , nil可

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

ptable[organization_ids]
任意 , nil可

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


DELETE /api/ptables/:id
パーティションテーブルの解除

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be a String


POST /api/ptables/:id/clone
テンプレートのクローン

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

ptable
必須

Validations:

  • Must be a Hash

ptable[name]
必須

テンプレート名

Validations:

  • Must be a String


GET /api/ptables/:id/export
パーティションテンプレートを ERB にエクスポート

パラメーター

パラメーター名 記述
location_id
任意

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
任意

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必須

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.