GET /api/locations
List all locations

参数

参数名字 描述
search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


GET /api/locations/:id
Show a location


POST /api/locations
Create a location

参数

参数名字 描述
location
必填

Value:

Must be a Hash

location[name]
必填

Value:

Must be String

location[description]
选填 , 允许空值

Value:

Must be String

location[user_ids]
选填 , 允许空值

User IDs


Value:

Must be an array of any type

location[smart_proxy_ids]
选填 , 允许空值

Smart proxy IDs


Value:

Must be an array of any type

location[compute_resource_ids]
选填 , 允许空值

Compute resource IDs


Value:

Must be an array of any type

location[media_ids]
选填 , 允许空值

Media IDs


Value:

Must be an array of any type

location[config_template_ids]
选填 , 允许空值

Provisioning template IDs


Value:

Must be an array of any type

location[ptable_ids]
选填 , 允许空值

Partition template IDs


Value:

Must be an array of any type

location[provisioning_template_ids]
选填 , 允许空值

Provisioning template IDs


Value:

Must be an array of any type

location[domain_ids]
选填 , 允许空值

Domain IDs


Value:

Must be an array of any type

location[realm_ids]
选填 , 允许空值

Realm IDs


Value:

Must be an array of any type

location[hostgroup_ids]
选填 , 允许空值

Host group IDs


Value:

Must be an array of any type

location[environment_ids]
选填 , 允许空值

Environment IDs


Value:

Must be an array of any type

location[subnet_ids]
选填 , 允许空值

Subnet IDs


Value:

Must be an array of any type

location[parent_id]
选填 , 允许空值

Parent ID


Value:

Must be a number.


PUT /api/locations/:id
Update a location

参数

参数名字 描述
location
必填

Value:

Must be a Hash

location[name]
选填

Value:

Must be String

location[description]
选填 , 允许空值

Value:

Must be String

location[user_ids]
选填 , 允许空值

User IDs


Value:

Must be an array of any type

location[smart_proxy_ids]
选填 , 允许空值

Smart proxy IDs


Value:

Must be an array of any type

location[compute_resource_ids]
选填 , 允许空值

Compute resource IDs


Value:

Must be an array of any type

location[media_ids]
选填 , 允许空值

Media IDs


Value:

Must be an array of any type

location[config_template_ids]
选填 , 允许空值

Provisioning template IDs


Value:

Must be an array of any type

location[ptable_ids]
选填 , 允许空值

Partition template IDs


Value:

Must be an array of any type

location[provisioning_template_ids]
选填 , 允许空值

Provisioning template IDs


Value:

Must be an array of any type

location[domain_ids]
选填 , 允许空值

Domain IDs


Value:

Must be an array of any type

location[realm_ids]
选填 , 允许空值

Realm IDs


Value:

Must be an array of any type

location[hostgroup_ids]
选填 , 允许空值

Host group IDs


Value:

Must be an array of any type

location[environment_ids]
选填 , 允许空值

Environment IDs


Value:

Must be an array of any type

location[subnet_ids]
选填 , 允许空值

Subnet IDs


Value:

Must be an array of any type

location[parent_id]
选填 , 允许空值

Parent ID


Value:

Must be a number.


DELETE /api/locations/:id
Delete a location