GET /api/lookup_keys
List all lookup_keys.

參數

參數名字 描述
search
選填

篩選結果


Value:

Must be String

order
選填

排序結果


Value:

Must be String

page
選填

編頁結果


Value:

Must be String

per_page
選填

每個請求的項目數量


Value:

Must be String


GET /api/lookup_keys/:id
Show a lookup key.

參數

參數名字 描述
id
必填

Value:

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/lookup_keys
Create a lookup key.

參數

參數名字 描述
lookup_key
必填

Value:

Must be a Hash

lookup_key[key]
必填

Value:

Must be String

lookup_key[puppetclass_id]
選填

Value:

Must be a number.

lookup_key[default_value]
選填

Value:

Must be String

lookup_key[path]
選填

Value:

Must be String

lookup_key[description]
選填

Value:

Must be String

lookup_key[lookup_values_count]
選填

Value:

Must be a number.


PUT /api/lookup_keys/:id
Update a lookup key.

參數

參數名字 描述
id
必填

Value:

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

lookup_key
必填

Value:

Must be a Hash

lookup_key[key]
選填

Value:

Must be String

lookup_key[puppetclass_id]
選填

Value:

Must be a number.

lookup_key[default_value]
選填

Value:

Must be String

lookup_key[path]
選填

Value:

Must be String

lookup_key[description]
選填

Value:

Must be String

lookup_key[lookup_values_count]
選填

Value:

Must be a number.


DELETE /api/lookup_keys/:id
Delete a lookup key.

參數

參數名字 描述
id
必填

Value:

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