Project

General

Profile

Download (122 KB) Statistics
| Branch: | Tag: | Revision:

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_locations / setup.yml @ f5d21adb

1
---
2
http_interactions:
3
- request:
4
    method: put
5
    uri: https://admin:changeme@katello.example.com:50191/api/locations/8
6
    body:
7
      encoding: UTF-8
8
      string: '{"location":{"parent_id":null}}'
9
    headers:
10
      Accept:
11
      - application/json;version=2
12
      Accept-Encoding:
13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
16
      Content-Type:
17
      - application/json
18
      Content-Length:
19
      - '31'
20
      Host:
21
      - katello.example.com:50191
22
  response:
23
    status:
24
      code: 200
25
      message: OK
26
    headers:
27
      Date:
28
      - Mon, 12 Sep 2016 15:40:08 GMT
29
      Server:
30
      - Apache/2.4.6 (CentOS)
31
      X-Frame-Options:
32
      - SAMEORIGIN
33
      X-Xss-Protection:
34
      - 1; mode=block
35
      X-Content-Type-Options:
36
      - nosniff
37
      Foreman-Version:
38
      - 1.14.0-develop
39
      Foreman-Api-Version:
40
      - '2'
41
      Content-Type:
42
      - application/json; charset=utf-8
43
      Apipie-Checksum:
44
      - 9544abef9cf8343005f07ed8c9f1f8e7
45
      Etag:
46
      - W/"1d2aa6d801fd2f6dbf893bcfa60a1dda-gzip"
47
      Cache-Control:
48
      - max-age=0, private, must-revalidate
49
      X-Request-Id:
50
      - dfb729c8-a778-47c0-ad62-22a42ca61d3f
51
      X-Runtime:
52
      - '3.938692'
53
      Via:
54
      - 1.1 katello.example.com:50191
55
      Vary:
56
      - Accept-Encoding
57
      Content-Length:
58
      - '16496'
59
      Set-Cookie:
60
      - _session_id=ac90a4496e8d3258a522a506c97a0099; path=/; HttpOnly
61
      - request_method=PUT; path=/
62
    body:
63
      encoding: ASCII-8BIT
64
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-07
65
        01:38:56 UTC","updated_at":"2016-09-07 01:38:56 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
66
        West","title":"Test West","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":90,"name":"Katello
67
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
68
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
69
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
70
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
71
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
72
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
73
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
74
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
75
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
76
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
77
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
78
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
79
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
80
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
81
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
82
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
83
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
84
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
85
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
86
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
87
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
88
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
89
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
90
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
91
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
92
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
93
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
94
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
95
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
96
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
97
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
98
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
99
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
100
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
101
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
102
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
103
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
104
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
105
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
106
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
107
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
108
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
109
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
110
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
111
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
112
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
113
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
114
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
115
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
116
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
117
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
118
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-02
119
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"XenServer default","id":85},{"os_family":"Debian","created_at":"2016-09-02
120
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Preseed custom
121
        LVM","id":84},{"os_family":"Debian","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
122
        14:01:03 UTC","name":"Preseed default","id":83},{"os_family":"NXOS","created_at":"2016-09-02
123
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"NX-OS default
124
        fake","id":82},{"os_family":"Redhat","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
125
        14:01:03 UTC","name":"Kickstart default","id":81},{"os_family":"Junos","created_at":"2016-09-02
126
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Junos default
127
        fake","id":80},{"os_family":"Solaris","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
128
        14:01:03 UTC","name":"Jumpstart mirrored","id":79},{"os_family":"Solaris","created_at":"2016-09-02
129
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Jumpstart default","id":78},{"os_family":"Freebsd","created_at":"2016-09-02
130
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"FreeBSD","id":77},{"os_family":"Coreos","created_at":"2016-09-02
131
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"CoreOS default
132
        fake","id":76},{"os_family":"Suse","created_at":"2016-09-02 14:01:02 UTC","updated_at":"2016-09-02
133
        14:01:02 UTC","name":"AutoYaST LVM","id":75},{"os_family":"Suse","created_at":"2016-09-02
134
        14:01:02 UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire
135
        virtual disk","id":74},{"os_family":"Suse","created_at":"2016-09-02 14:01:02
136
        UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire SCSI disk","id":73}],"provisioning_templates":[{"id":90,"name":"Katello
137
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
138
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
139
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
140
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
141
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
142
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
143
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
144
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
145
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
146
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
147
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
148
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
149
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
150
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
151
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
152
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
153
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
154
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
155
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
156
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
157
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
158
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
159
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
160
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
161
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
162
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
163
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
164
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
165
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
166
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
167
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
168
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
169
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
170
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
171
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
172
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
173
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
174
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
175
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
176
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
177
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
178
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
179
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
180
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
181
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
182
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
183
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
184
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
185
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
186
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
187
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
188
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
189
    http_version: 
190
  recorded_at: Mon, 12 Sep 2016 15:40:12 GMT
191
- request:
192
    method: get
193
    uri: https://admin:changeme@katello.example.com:50218/api/status
194
    body:
195
      encoding: US-ASCII
196
      string: ''
197
    headers:
198
      Accept-Encoding:
199
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
200
      Accept:
201
      - "*/*"
202
      User-Agent:
203
      - Ruby
204
  response:
205
    status:
206
      code: 200
207
      message: 'OK '
208
    headers:
209
      Date:
210
      - Fri, 30 Sep 2016 15:40:04 GMT
211
      Server:
212
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
213
      Foreman-Version:
214
      - 1.14.0-develop
215
      Foreman-Api-Version:
216
      - '2'
217
      Content-Type:
218
      - application/json; charset=utf-8
219
      Apipie-Checksum:
220
      - 68d37bf606b9a03df6e1e749d6054009
221
      Etag:
222
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
223
      Cache-Control:
224
      - max-age=0, private, must-revalidate
225
      X-Request-Id:
226
      - 838a48b6-bc4d-4bda-8b3e-f156a45cba51
227
      X-Runtime:
228
      - '1.090733'
229
      Content-Security-Policy:
230
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
231
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
232
        ''self''; style-src ''unsafe-inline'' ''self'''
233
      Strict-Transport-Security:
234
      - max-age=631152000; includeSubdomains
235
      X-Content-Type-Options:
236
      - nosniff
237
      X-Download-Options:
238
      - noopen
239
      X-Frame-Options:
240
      - sameorigin
241
      X-Permitted-Cross-Domain-Policies:
242
      - none
243
      X-Xss-Protection:
244
      - 1; mode=block
245
      Via:
246
      - 1.1 testing.example.com:50218
247
      Vary:
248
      - Accept-Encoding
249
      Content-Length:
250
      - '81'
251
      Set-Cookie:
252
      - _session_id=7e26d4117bfe79bdbcadac9331eb6058; path=/; HttpOnly
253
    body:
254
      encoding: UTF-8
255
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
256
    http_version: 
257
  recorded_at: Fri, 30 Sep 2016 15:40:05 GMT
258
- request:
259
    method: get
260
    uri: https://admin:changeme@katello.example.com:50218/api/v2/plugins
261
    body:
262
      encoding: US-ASCII
263
      string: ''
264
    headers:
265
      Accept-Encoding:
266
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
267
      Accept:
268
      - "*/*"
269
      User-Agent:
270
      - Ruby
271
  response:
272
    status:
273
      code: 200
274
      message: 'OK '
275
    headers:
276
      Date:
277
      - Fri, 30 Sep 2016 15:40:04 GMT
278
      Server:
279
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
280
      Foreman-Version:
281
      - 1.14.0-develop
282
      Foreman-Api-Version:
283
      - '2'
284
      Content-Type:
285
      - application/json; charset=utf-8
286
      Apipie-Checksum:
287
      - 68d37bf606b9a03df6e1e749d6054009
288
      Etag:
289
      - W/"8f0162a4d2fd78df40b7f264aee93d64-gzip"
290
      Cache-Control:
291
      - max-age=0, private, must-revalidate
292
      X-Request-Id:
293
      - 1d3f5d7a-6bac-4f15-b6e2-65d30d9c2de3
294
      X-Runtime:
295
      - '0.087885'
296
      Content-Security-Policy:
297
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
298
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
299
        ''self''; style-src ''unsafe-inline'' ''self'''
300
      Strict-Transport-Security:
301
      - max-age=631152000; includeSubdomains
302
      X-Content-Type-Options:
303
      - nosniff
304
      X-Download-Options:
305
      - noopen
306
      X-Frame-Options:
307
      - sameorigin
308
      X-Permitted-Cross-Domain-Policies:
309
      - none
310
      X-Xss-Protection:
311
      - 1; mode=block
312
      Via:
313
      - 1.1 testing.example.com:50218
314
      Vary:
315
      - Accept-Encoding
316
      Content-Length:
317
      - '565'
318
      Set-Cookie:
319
      - _session_id=8f20458470f0ecb5c216ef084bc3d429; path=/; HttpOnly
320
    body:
321
      encoding: ASCII-8BIT
322
      string: !binary |-
323
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
324
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
325
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
326
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
327
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
328
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
329
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
330
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
331
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
332
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
333
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
334
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
335
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
336
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
337
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
338
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMiJ9LHsiaWQiOiJmb3JlbWFu
339
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
340
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
341
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
342
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
343
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
344
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
345
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
346
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
347
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjMuMCJ9XQp9Cg==
348
    http_version: 
349
  recorded_at: Fri, 30 Sep 2016 15:40:05 GMT
350
- request:
351
    method: get
352
    uri: https://admin:changeme@katello.example.com:50218/api/locations?per_page=999999
353
    body:
354
      encoding: US-ASCII
355
      string: ''
356
    headers:
357
      Accept:
358
      - application/json;version=2
359
      Accept-Encoding:
360
      - gzip, deflate
361
      User-Agent:
362
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
363
      Content-Type:
364
      - application/json
365
      Accept-Language:
366
      - en
367
      Host:
368
      - katello.example.com:50218
369
  response:
370
    status:
371
      code: 200
372
      message: 'OK '
373
    headers:
374
      Date:
375
      - Fri, 30 Sep 2016 15:40:04 GMT
376
      Server:
377
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
378
      Foreman-Version:
379
      - 1.14.0-develop
380
      Foreman-Api-Version:
381
      - '2'
382
      Content-Type:
383
      - application/json; charset=utf-8
384
      Apipie-Checksum:
385
      - 68d37bf606b9a03df6e1e749d6054009
386
      Etag:
387
      - W/"ca35fb3d07a45e77dfe961e6a2abbee5-gzip"
388
      Cache-Control:
389
      - max-age=0, private, must-revalidate
390
      X-Request-Id:
391
      - 8daa4344-5afe-414f-a2bf-cd11396cd87d
392
      X-Runtime:
393
      - '0.093822'
394
      Content-Security-Policy:
395
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
396
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
397
        ''self''; style-src ''unsafe-inline'' ''self'''
398
      Strict-Transport-Security:
399
      - max-age=631152000; includeSubdomains
400
      X-Content-Type-Options:
401
      - nosniff
402
      X-Download-Options:
403
      - noopen
404
      X-Frame-Options:
405
      - sameorigin
406
      X-Permitted-Cross-Domain-Policies:
407
      - none
408
      X-Xss-Protection:
409
      - 1; mode=block
410
      Via:
411
      - 1.1 testing.example.com:50218
412
      Vary:
413
      - Accept-Encoding
414
      Content-Length:
415
      - '1350'
416
      Set-Cookie:
417
      - _session_id=9724aa7f96d829eb115032d0814d4aef; path=/; HttpOnly
418
    body:
419
      encoding: ASCII-8BIT
420
      string: |
421
        {
422
          "total": 6,
423
          "subtotal": 6,
424
          "page": 1,
425
          "per_page": 999999,
426
          "search": null,
427
          "sort": {
428
            "by": null,
429
            "order": null
430
          },
431
          "results": [{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 14:47:06 UTC","updated_at":"2016-09-30 14:47:06 UTC","id":2,"name":"Default Location","title":"Default Location","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 15:10:45 UTC","updated_at":"2016-09-30 15:10:45 UTC","id":4,"name":"Test East","title":"Test East","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 15:04:16 UTC","updated_at":"2016-09-30 15:04:16 UTC","id":3,"name":"Testing","title":"Testing","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 15:10:45 UTC","updated_at":"2016-09-30 15:10:45 UTC","id":5,"name":"Test North","title":"Test North","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 15:10:46 UTC","updated_at":"2016-09-30 15:10:46 UTC","id":6,"name":"Test South","title":"Test South","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-09-30 15:10:46 UTC","updated_at":"2016-09-30 15:10:46 UTC","id":7,"name":"Test West","title":"Test West","description":null}]
432
        }
433
    http_version: 
434
  recorded_at: Fri, 30 Sep 2016 15:40:05 GMT
435
- request:
436
    method: put
437
    uri: https://admin:changeme@katello.example.com:50218/api/locations/3
438
    body:
439
      encoding: UTF-8
440
      string: '{"location":{"parent_id":null}}'
441
    headers:
442
      Accept:
443
      - application/json;version=2
444
      Accept-Encoding:
445
      - gzip, deflate
446
      User-Agent:
447
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
448
      Content-Type:
449
      - application/json
450
      Accept-Language:
451
      - en
452
      Content-Length:
453
      - '31'
454
      Host:
455
      - katello.example.com:50218
456
  response:
457
    status:
458
      code: 200
459
      message: 'OK '
460
    headers:
461
      Date:
462
      - Fri, 30 Sep 2016 15:40:05 GMT
463
      Server:
464
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
465
      Foreman-Version:
466
      - 1.14.0-develop
467
      Foreman-Api-Version:
468
      - '2'
469
      Content-Type:
470
      - application/json; charset=utf-8
471
      Apipie-Checksum:
472
      - 68d37bf606b9a03df6e1e749d6054009
473
      Etag:
474
      - W/"03e1aa609f3db64a4bfe0dd571782e75-gzip"
475
      Cache-Control:
476
      - max-age=0, private, must-revalidate
477
      X-Request-Id:
478
      - 01f3bf5f-9f77-45d3-aa1f-34ca974212e3
479
      X-Runtime:
480
      - '0.320090'
481
      Content-Security-Policy:
482
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
483
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
484
        ''self''; style-src ''unsafe-inline'' ''self'''
485
      Strict-Transport-Security:
486
      - max-age=631152000; includeSubdomains
487
      X-Content-Type-Options:
488
      - nosniff
489
      X-Download-Options:
490
      - noopen
491
      X-Frame-Options:
492
      - sameorigin
493
      X-Permitted-Cross-Domain-Policies:
494
      - none
495
      X-Xss-Protection:
496
      - 1; mode=block
497
      Via:
498
      - 1.1 testing.example.com:50218
499
      Vary:
500
      - Accept-Encoding
501
      Content-Length:
502
      - '16462'
503
      Set-Cookie:
504
      - _session_id=bc1aeb9aa24ac947ee5fe34f0ff964fb; path=/; HttpOnly
505
      - request_method=PUT; path=/
506
    body:
507
      encoding: ASCII-8BIT
508
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-30
509
        15:04:16 UTC","updated_at":"2016-09-30 15:04:16 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":3,"name":"Testing","title":"Testing","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[{"id":1,"name":"Test
510
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
511
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
512
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
513
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
514
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
515
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
516
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
517
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
518
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
519
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
520
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
521
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
522
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
523
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
524
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
525
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
526
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
527
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
528
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
529
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
530
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
531
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
532
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
533
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
534
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
535
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
536
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
537
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
538
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
539
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
540
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
541
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
542
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
543
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
544
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
545
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
546
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
547
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
548
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
549
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
550
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
551
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
552
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
553
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
554
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
555
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
556
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
557
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
558
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
559
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
560
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
561
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
562
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
563
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
564
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
565
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
566
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
567
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
568
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
569
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
570
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
571
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
572
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
573
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
574
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
575
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
576
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
577
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
578
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
579
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
580
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
581
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
582
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
583
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
584
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
585
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
586
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
587
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
588
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
589
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
590
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
591
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
592
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
593
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
594
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
595
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
596
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
597
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
598
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
599
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
600
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
601
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
602
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
603
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
604
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
605
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
606
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
607
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
608
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
609
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
610
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
611
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
612
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
613
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
614
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
615
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
616
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
617
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
618
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
619
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
620
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
621
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
622
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
623
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
624
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
625
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
626
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
627
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
628
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
629
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
630
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
631
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
632
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
633
    http_version: 
634
  recorded_at: Fri, 30 Sep 2016 15:40:06 GMT
635
- request:
636
    method: put
637
    uri: https://admin:changeme@katello.example.com:50218/api/locations/4
638
    body:
639
      encoding: UTF-8
640
      string: '{"location":{"parent_id":null}}'
641
    headers:
642
      Accept:
643
      - application/json;version=2
644
      Accept-Encoding:
645
      - gzip, deflate
646
      User-Agent:
647
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
648
      Content-Type:
649
      - application/json
650
      Accept-Language:
651
      - en
652
      Content-Length:
653
      - '31'
654
      Host:
655
      - katello.example.com:50218
656
  response:
657
    status:
658
      code: 200
659
      message: 'OK '
660
    headers:
661
      Date:
662
      - Fri, 30 Sep 2016 15:40:06 GMT
663
      Server:
664
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
665
      Foreman-Version:
666
      - 1.14.0-develop
667
      Foreman-Api-Version:
668
      - '2'
669
      Content-Type:
670
      - application/json; charset=utf-8
671
      Apipie-Checksum:
672
      - 68d37bf606b9a03df6e1e749d6054009
673
      Etag:
674
      - W/"5c0b97d612ec1cc572fd017f6b05d0df-gzip"
675
      Cache-Control:
676
      - max-age=0, private, must-revalidate
677
      X-Request-Id:
678
      - 9bd14042-21d6-4c29-949b-307f18b1f25b
679
      X-Runtime:
680
      - '1.351385'
681
      Content-Security-Policy:
682
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
683
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
684
        ''self''; style-src ''unsafe-inline'' ''self'''
685
      Strict-Transport-Security:
686
      - max-age=631152000; includeSubdomains
687
      X-Content-Type-Options:
688
      - nosniff
689
      X-Download-Options:
690
      - noopen
691
      X-Frame-Options:
692
      - sameorigin
693
      X-Permitted-Cross-Domain-Policies:
694
      - none
695
      X-Xss-Protection:
696
      - 1; mode=block
697
      Via:
698
      - 1.1 testing.example.com:50218
699
      Vary:
700
      - Accept-Encoding
701
      Content-Length:
702
      - '16400'
703
      Set-Cookie:
704
      - _session_id=5dc98d3d6ec1e4d924e5f5d1eec54523; path=/; HttpOnly
705
      - request_method=PUT; path=/
706
    body:
707
      encoding: ASCII-8BIT
708
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-30
709
        15:10:45 UTC","updated_at":"2016-09-30 15:10:45 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test
710
        East","title":"Test East","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
711
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
712
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
713
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
714
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
715
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
716
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
717
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
718
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
719
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
720
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
721
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
722
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
723
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
724
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
725
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
726
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
727
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
728
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
729
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
730
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
731
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
732
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
733
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
734
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
735
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
736
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
737
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
738
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
739
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
740
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
741
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
742
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
743
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
744
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
745
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
746
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
747
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
748
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
749
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
750
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
751
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
752
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
753
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
754
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
755
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
756
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
757
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
758
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
759
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
760
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
761
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
762
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
763
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
764
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
765
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
766
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
767
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
768
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
769
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
770
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
771
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
772
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
773
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
774
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
775
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
776
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
777
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
778
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
779
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
780
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
781
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
782
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
783
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
784
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
785
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
786
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
787
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
788
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
789
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
790
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
791
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
792
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
793
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
794
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
795
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
796
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
797
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
798
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
799
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
800
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
801
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
802
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
803
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
804
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
805
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
806
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
807
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
808
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
809
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
810
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
811
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
812
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
813
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
814
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
815
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
816
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
817
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
818
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
819
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
820
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
821
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
822
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
823
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
824
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
825
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
826
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
827
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
828
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
829
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
830
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
831
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
832
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
833
    http_version: 
834
  recorded_at: Fri, 30 Sep 2016 15:40:07 GMT
835
- request:
836
    method: put
837
    uri: https://admin:changeme@katello.example.com:50218/api/locations/5
838
    body:
839
      encoding: UTF-8
840
      string: '{"location":{"parent_id":null}}'
841
    headers:
842
      Accept:
843
      - application/json;version=2
844
      Accept-Encoding:
845
      - gzip, deflate
846
      User-Agent:
847
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
848
      Content-Type:
849
      - application/json
850
      Accept-Language:
851
      - en
852
      Content-Length:
853
      - '31'
854
      Host:
855
      - katello.example.com:50218
856
  response:
857
    status:
858
      code: 200
859
      message: 'OK '
860
    headers:
861
      Date:
862
      - Fri, 30 Sep 2016 15:40:07 GMT
863
      Server:
864
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
865
      Foreman-Version:
866
      - 1.14.0-develop
867
      Foreman-Api-Version:
868
      - '2'
869
      Content-Type:
870
      - application/json; charset=utf-8
871
      Apipie-Checksum:
872
      - 68d37bf606b9a03df6e1e749d6054009
873
      Etag:
874
      - W/"5a47fb515a9884f794e35c309c2a1c4a-gzip"
875
      Cache-Control:
876
      - max-age=0, private, must-revalidate
877
      X-Request-Id:
878
      - 4fd99bd6-d5be-47a0-8085-200e044b61ab
879
      X-Runtime:
880
      - '0.314349'
881
      Content-Security-Policy:
882
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
883
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
884
        ''self''; style-src ''unsafe-inline'' ''self'''
885
      Strict-Transport-Security:
886
      - max-age=631152000; includeSubdomains
887
      X-Content-Type-Options:
888
      - nosniff
889
      X-Download-Options:
890
      - noopen
891
      X-Frame-Options:
892
      - sameorigin
893
      X-Permitted-Cross-Domain-Policies:
894
      - none
895
      X-Xss-Protection:
896
      - 1; mode=block
897
      Via:
898
      - 1.1 testing.example.com:50218
899
      Vary:
900
      - Accept-Encoding
901
      Content-Length:
902
      - '16402'
903
      Set-Cookie:
904
      - _session_id=d37a6893ca40b699b8538f95af9ccddd; path=/; HttpOnly
905
      - request_method=PUT; path=/
906
    body:
907
      encoding: ASCII-8BIT
908
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-30
909
        15:10:45 UTC","updated_at":"2016-09-30 15:10:45 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test
910
        North","title":"Test North","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
911
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
912
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
913
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
914
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
915
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
916
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
917
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
918
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
919
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
920
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
921
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
922
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
923
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
924
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
925
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
926
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
927
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
928
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
929
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
930
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
931
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
932
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
933
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
934
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
935
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
936
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
937
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
938
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
939
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
940
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
941
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
942
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
943
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
944
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
945
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
946
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
947
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
948
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
949
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
950
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
951
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
952
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
953
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
954
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
955
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
956
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
957
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
958
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
959
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
960
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
961
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
962
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
963
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
964
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
965
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
966
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
967
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
968
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
969
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
970
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
971
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
972
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
973
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
974
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
975
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
976
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
977
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
978
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
979
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
980
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
981
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
982
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
983
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
984
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
985
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
986
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
987
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
988
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
989
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
990
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
991
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
992
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
993
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
994
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
995
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
996
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
997
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
998
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
999
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
1000
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
1001
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
1002
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
1003
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
1004
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
1005
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
1006
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
1007
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
1008
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
1009
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
1010
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
1011
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
1012
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
1013
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
1014
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
1015
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
1016
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
1017
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
1018
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
1019
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
1020
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
1021
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
1022
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
1023
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
1024
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
1025
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
1026
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
1027
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
1028
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
1029
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
1030
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
1031
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
1032
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
1033
    http_version: 
1034
  recorded_at: Fri, 30 Sep 2016 15:40:08 GMT
1035
- request:
1036
    method: put
1037
    uri: https://admin:changeme@katello.example.com:50218/api/locations/6
1038
    body:
1039
      encoding: UTF-8
1040
      string: '{"location":{"parent_id":null}}'
1041
    headers:
1042
      Accept:
1043
      - application/json;version=2
1044
      Accept-Encoding:
1045
      - gzip, deflate
1046
      User-Agent:
1047
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1048
      Content-Type:
1049
      - application/json
1050
      Accept-Language:
1051
      - en
1052
      Content-Length:
1053
      - '31'
1054
      Host:
1055
      - katello.example.com:50218
1056
  response:
1057
    status:
1058
      code: 200
1059
      message: 'OK '
1060
    headers:
1061
      Date:
1062
      - Fri, 30 Sep 2016 15:40:07 GMT
1063
      Server:
1064
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1065
      Foreman-Version:
1066
      - 1.14.0-develop
1067
      Foreman-Api-Version:
1068
      - '2'
1069
      Content-Type:
1070
      - application/json; charset=utf-8
1071
      Apipie-Checksum:
1072
      - 68d37bf606b9a03df6e1e749d6054009
1073
      Etag:
1074
      - W/"6b4180c33bb62f15df8b0c82962f2150-gzip"
1075
      Cache-Control:
1076
      - max-age=0, private, must-revalidate
1077
      X-Request-Id:
1078
      - 38b4608c-b4f2-4926-af79-b19b35a71d10
1079
      X-Runtime:
1080
      - '0.315094'
1081
      Content-Security-Policy:
1082
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1083
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1084
        ''self''; style-src ''unsafe-inline'' ''self'''
1085
      Strict-Transport-Security:
1086
      - max-age=631152000; includeSubdomains
1087
      X-Content-Type-Options:
1088
      - nosniff
1089
      X-Download-Options:
1090
      - noopen
1091
      X-Frame-Options:
1092
      - sameorigin
1093
      X-Permitted-Cross-Domain-Policies:
1094
      - none
1095
      X-Xss-Protection:
1096
      - 1; mode=block
1097
      Via:
1098
      - 1.1 testing.example.com:50218
1099
      Vary:
1100
      - Accept-Encoding
1101
      Content-Length:
1102
      - '16402'
1103
      Set-Cookie:
1104
      - _session_id=50b00eecf97695371e5ab6bec1533f54; path=/; HttpOnly
1105
      - request_method=PUT; path=/
1106
    body:
1107
      encoding: ASCII-8BIT
1108
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-30
1109
        15:10:46 UTC","updated_at":"2016-09-30 15:10:46 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":6,"name":"Test
1110
        South","title":"Test South","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
1111
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
1112
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
1113
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
1114
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
1115
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
1116
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
1117
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
1118
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
1119
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
1120
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
1121
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
1122
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
1123
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
1124
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
1125
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
1126
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
1127
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
1128
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
1129
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
1130
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
1131
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
1132
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
1133
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
1134
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
1135
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
1136
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
1137
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
1138
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
1139
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
1140
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
1141
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
1142
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
1143
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
1144
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
1145
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
1146
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
1147
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
1148
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
1149
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
1150
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
1151
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
1152
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
1153
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
1154
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
1155
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
1156
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
1157
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
1158
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
1159
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
1160
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
1161
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
1162
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
1163
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
1164
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
1165
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1166
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
1167
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
1168
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1169
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
1170
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
1171
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1172
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
1173
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
1174
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
1175
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
1176
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1177
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
1178
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
1179
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
1180
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
1181
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
1182
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
1183
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
1184
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
1185
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
1186
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
1187
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
1188
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
1189
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
1190
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
1191
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
1192
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
1193
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
1194
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
1195
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
1196
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
1197
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
1198
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
1199
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
1200
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
1201
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
1202
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
1203
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
1204
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
1205
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
1206
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
1207
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
1208
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
1209
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
1210
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
1211
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
1212
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
1213
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
1214
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
1215
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
1216
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
1217
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
1218
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
1219
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
1220
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
1221
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
1222
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
1223
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
1224
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
1225
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
1226
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
1227
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
1228
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
1229
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
1230
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
1231
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
1232
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
1233
    http_version: 
1234
  recorded_at: Fri, 30 Sep 2016 15:40:08 GMT
1235
- request:
1236
    method: put
1237
    uri: https://admin:changeme@katello.example.com:50218/api/locations/7
1238
    body:
1239
      encoding: UTF-8
1240
      string: '{"location":{"parent_id":null}}'
1241
    headers:
1242
      Accept:
1243
      - application/json;version=2
1244
      Accept-Encoding:
1245
      - gzip, deflate
1246
      User-Agent:
1247
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
1248
      Content-Type:
1249
      - application/json
1250
      Accept-Language:
1251
      - en
1252
      Content-Length:
1253
      - '31'
1254
      Host:
1255
      - katello.example.com:50218
1256
  response:
1257
    status:
1258
      code: 200
1259
      message: 'OK '
1260
    headers:
1261
      Date:
1262
      - Fri, 30 Sep 2016 15:40:08 GMT
1263
      Server:
1264
      - WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)
1265
      Foreman-Version:
1266
      - 1.14.0-develop
1267
      Foreman-Api-Version:
1268
      - '2'
1269
      Content-Type:
1270
      - application/json; charset=utf-8
1271
      Apipie-Checksum:
1272
      - 68d37bf606b9a03df6e1e749d6054009
1273
      Etag:
1274
      - W/"8ae09239a10b863deddbd5476171f914-gzip"
1275
      Cache-Control:
1276
      - max-age=0, private, must-revalidate
1277
      X-Request-Id:
1278
      - 277330b2-5988-48c5-bbce-2ab1a4a81648
1279
      X-Runtime:
1280
      - '1.377940'
1281
      Content-Security-Policy:
1282
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1283
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1284
        ''self''; style-src ''unsafe-inline'' ''self'''
1285
      Strict-Transport-Security:
1286
      - max-age=631152000; includeSubdomains
1287
      X-Content-Type-Options:
1288
      - nosniff
1289
      X-Download-Options:
1290
      - noopen
1291
      X-Frame-Options:
1292
      - sameorigin
1293
      X-Permitted-Cross-Domain-Policies:
1294
      - none
1295
      X-Xss-Protection:
1296
      - 1; mode=block
1297
      Via:
1298
      - 1.1 testing.example.com:50218
1299
      Vary:
1300
      - Accept-Encoding
1301
      Content-Length:
1302
      - '16400'
1303
      Set-Cookie:
1304
      - _session_id=9f116bde9c08ad65692f40cf3aefff01; path=/; HttpOnly
1305
      - request_method=PUT; path=/
1306
    body:
1307
      encoding: ASCII-8BIT
1308
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-09-30
1309
        15:10:46 UTC","updated_at":"2016-09-30 15:10:46 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test
1310
        West","title":"Test West","users":[],"smart_proxies":[{"name":"testing.example.com","id":1,"url":"https://testing.example.com:9090"}],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":89,"name":"Katello
1311
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
1312
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
1313
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
1314
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
1315
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
1316
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
1317
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
1318
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
1319
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
1320
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
1321
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
1322
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
1323
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
1324
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
1325
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
1326
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
1327
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
1328
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
1329
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
1330
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
1331
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
1332
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
1333
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
1334
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
1335
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
1336
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
1337
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
1338
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
1339
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
1340
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
1341
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
1342
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
1343
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
1344
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
1345
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
1346
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
1347
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
1348
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
1349
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
1350
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
1351
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
1352
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
1353
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
1354
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
1355
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
1356
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
1357
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
1358
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
1359
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
1360
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
1361
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
1362
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-30
1363
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"XenServer default","id":84},{"os_family":"Debian","created_at":"2016-09-30
1364
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Preseed custom
1365
        LVM","id":83},{"os_family":"Debian","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1366
        14:47:09 UTC","name":"Preseed default","id":82},{"os_family":"NXOS","created_at":"2016-09-30
1367
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"NX-OS default
1368
        fake","id":81},{"os_family":"Redhat","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1369
        14:47:09 UTC","name":"Kickstart default","id":80},{"os_family":"Junos","created_at":"2016-09-30
1370
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Junos default
1371
        fake","id":79},{"os_family":"Solaris","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1372
        14:47:09 UTC","name":"Jumpstart mirrored","id":78},{"os_family":"Solaris","created_at":"2016-09-30
1373
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"Jumpstart default","id":77},{"os_family":"Freebsd","created_at":"2016-09-30
1374
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"FreeBSD","id":76},{"os_family":"Coreos","created_at":"2016-09-30
1375
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"CoreOS default
1376
        fake","id":75},{"os_family":"Suse","created_at":"2016-09-30 14:47:09 UTC","updated_at":"2016-09-30
1377
        14:47:09 UTC","name":"AutoYaST LVM","id":74},{"os_family":"Suse","created_at":"2016-09-30
1378
        14:47:09 UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire
1379
        virtual disk","id":73},{"os_family":"Suse","created_at":"2016-09-30 14:47:09
1380
        UTC","updated_at":"2016-09-30 14:47:09 UTC","name":"AutoYaST entire SCSI disk","id":72}],"provisioning_templates":[{"id":89,"name":"Katello
1381
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":88,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"Katello
1382
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":86,"name":"Katello
1383
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":85,"name":"Katello
1384
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":71,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
1385
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
1386
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
1387
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
1388
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
1389
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
1390
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
1391
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
1392
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
1393
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
1394
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
1395
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
1396
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
1397
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
1398
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
1399
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
1400
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
1401
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
1402
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
1403
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
1404
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
1405
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
1406
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
1407
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
1408
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
1409
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
1410
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
1411
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
1412
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
1413
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
1414
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
1415
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
1416
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
1417
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
1418
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
1419
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
1420
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
1421
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
1422
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
1423
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
1424
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
1425
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
1426
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
1427
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
1428
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
1429
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
1430
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
1431
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
1432
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
1433
    http_version: 
1434
  recorded_at: Fri, 30 Sep 2016 15:40:09 GMT
1435
recorded_with: VCR 3.0.3