GET /api/lookup_keys
List all lookup_keys.

Params

Param Name Description
search
Optional

过滤结果


Value: Must be String
order
Optional

结果排序


Value: Must be String
page
Optional

页数


Value: Must be String
per_page
Optional

每个请求中的条目数


Value: Must be String

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

Params

Param Name Description
id
Required

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.

Params

Param Name Description
lookup_key
Required

Value: Must be a Hash
lookup_key[key]
Required

Value: Must be String
lookup_key[puppetclass_id]
Optional

Value: Must be a number.
lookup_key[default_value]
Optional

Value: Must be String
lookup_key[path]
Optional

Value: Must be String
lookup_key[description]
Optional

Value: Must be String
lookup_key[lookup_values_count]
Optional

Value: Must be a number.

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

Params

Param Name Description
id
Required

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
Required

Value: Must be a Hash
lookup_key[key]
Optional

Value: Must be String
lookup_key[puppetclass_id]
Optional

Value: Must be a number.
lookup_key[default_value]
Optional

Value: Must be String
lookup_key[path]
Optional

Value: Must be String
lookup_key[description]
Optional

Value: Must be String
lookup_key[lookup_values_count]
Optional

Value: Must be a number.

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

Params

Param Name Description
id
Required

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