GET /api/ptables
List all ptables.

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/ptables/:id
Show a ptable.

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/ptables
Create a ptable.

Params

Param Name Description
ptable
Required

Value: Must be a Hash
ptable[name]
Required

Value: Must be String
ptable[layout]
Required

Value: Must be String
ptable[os_family]
Optional

Value: Must be String

PUT /api/ptables/:id
Update a ptable.

Params

Param Name Description
id
Required

Value: Must be String
ptable
Required

Value: Must be a Hash
ptable[name]
Optional

Value: Must be String
ptable[layout]
Optional

Value: Must be String
ptable[os_family]
Optional

Value: Must be String

DELETE /api/ptables/:id
Delete a ptable.

Params

Param Name Description
id
Required

Value: Must be String