razor-client 1.9.1 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/release.yml +24 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/.yardopts +2 -0
- data/CODEOWNERS +1 -0
- data/Gemfile +42 -0
- data/NEWS.md +24 -0
- data/Rakefile +69 -0
- data/bin/razor +10 -13
- data/ext/build_defaults.yaml +20 -0
- data/ext/project_data.yaml +38 -0
- data/lib/razor/cli.rb +6 -0
- data/lib/razor/cli/command.rb +3 -3
- data/lib/razor/cli/navigate.rb +28 -19
- data/lib/razor/cli/parse.rb +18 -25
- data/lib/razor/cli/version.rb +1 -1
- data/razor-client.gemspec +35 -0
- data/spec/cli/command_spec.rb +21 -0
- data/spec/cli/format_spec.rb +10 -16
- data/spec/cli/navigate_spec.rb +10 -12
- data/spec/cli/parse_spec.rb +5 -3
- data/spec/fixtures/vcr/Razor_CLI_Navigate/accept-language_header/should_allow_other_accept-language_headers.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/accept-language_header/should_set_the_accept-language_header.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml +37 -39
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml +39 -41
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml +111 -117
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml +136 -144
- data/spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_be_set_to_1_when_the_endpoint_is_the_final_query.yml +18 -18
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_not_be_exposed_to_the_user.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_not_carry-over_to_later_requests_in_a_nested_query.yml +65 -67
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_a_single_item_path/.yml +77 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_an_invalid_path/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_supply_that_to_the_API_service.yml +10 -12
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object.yml +39 -41
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object_with_unicode.yml +76 -80
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_hash_then_array_.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_no_path/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_start.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_not_fail_when_query_returns_details_for_one_item.yml +61 -69
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_store_query_without_query_parameters.yml +105 -117
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml +10 -12
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml +54 -60
- data/spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml +10 -10
- data/spec/spec_helper.rb +1 -1
- data/spec/testing.md +4 -2
- metadata +69 -29
@@ -9,14 +9,14 @@ http_interactions:
|
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
16
12
|
Accept-Language:
|
17
13
|
- en_US,en
|
18
|
-
|
19
|
-
-
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.15.4
|
16
|
+
Authorization:
|
17
|
+
- Basic Og==
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -29,14 +29,14 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '7432'
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 23 Aug 2019 19:50:20 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"commands":[{"name":"
|
37
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 23 Aug 2019 19:50:20 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://localhost:8150/api/commands/update-tag-rule
|
@@ -46,14 +46,14 @@ http_interactions:
|
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
|
-
Accept-Encoding:
|
50
|
-
- gzip, deflate
|
51
|
-
User-Agent:
|
52
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
53
49
|
Accept-Language:
|
54
50
|
- en_US,en
|
55
|
-
|
56
|
-
-
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.15.4
|
53
|
+
Authorization:
|
54
|
+
- Basic Og==
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
response:
|
58
58
|
status:
|
59
59
|
code: 200
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Server:
|
63
63
|
- Apache-Coyote/1.1
|
64
64
|
Etag:
|
65
|
-
- '"server-version-v1.
|
65
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
66
66
|
X-Content-Type-Options:
|
67
67
|
- nosniff
|
68
68
|
Content-Type:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
Content-Length:
|
71
71
|
- '5021'
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 23 Aug 2019 19:50:20 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"name":"update-tag-rule","help":{"summary":"Update the matching rule
|
@@ -136,5 +136,5 @@ http_interactions:
|
|
136
136
|
and forcing reevaluation:\n \n {\n \"name\": \"small\",\n \"rule\":
|
137
137
|
[\"<=\", [\"fact\", \"processorcount\"], \"2\"],\n \"force\": true\n }\n"},"schema":{"name":{"type":"string","position":0},"rule":{"type":"array","position":1},"force":{"type":"boolean"}}}'
|
138
138
|
http_version:
|
139
|
-
recorded_at:
|
139
|
+
recorded_at: Fri, 23 Aug 2019 19:50:20 GMT
|
140
140
|
recorded_with: VCR 4.0.0
|
@@ -9,14 +9,14 @@ http_interactions:
|
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
16
12
|
Accept-Language:
|
17
13
|
- en_US,en
|
18
|
-
|
19
|
-
-
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.15.4
|
16
|
+
Authorization:
|
17
|
+
- Basic Og==
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -29,14 +29,14 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '7432'
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 23 Aug 2019 19:50:39 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"commands":[{"name":"
|
37
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 23 Aug 2019 19:50:39 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://localhost:8150/api/commands/update-tag-rule
|
@@ -46,14 +46,14 @@ http_interactions:
|
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
|
-
Accept-Encoding:
|
50
|
-
- gzip, deflate
|
51
|
-
User-Agent:
|
52
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
53
49
|
Accept-Language:
|
54
50
|
- en_US,en
|
55
|
-
|
56
|
-
-
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.15.4
|
53
|
+
Authorization:
|
54
|
+
- Basic Og==
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
response:
|
58
58
|
status:
|
59
59
|
code: 200
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Server:
|
63
63
|
- Apache-Coyote/1.1
|
64
64
|
Etag:
|
65
|
-
- '"server-version-v1.
|
65
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
66
66
|
X-Content-Type-Options:
|
67
67
|
- nosniff
|
68
68
|
Content-Type:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
Content-Length:
|
71
71
|
- '5021'
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 23 Aug 2019 19:50:39 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"name":"update-tag-rule","help":{"summary":"Update the matching rule
|
@@ -136,5 +136,5 @@ http_interactions:
|
|
136
136
|
and forcing reevaluation:\n \n {\n \"name\": \"small\",\n \"rule\":
|
137
137
|
[\"<=\", [\"fact\", \"processorcount\"], \"2\"],\n \"force\": true\n }\n"},"schema":{"name":{"type":"string","position":0},"rule":{"type":"array","position":1},"force":{"type":"boolean"}}}'
|
138
138
|
http_version:
|
139
|
-
recorded_at:
|
139
|
+
recorded_at: Fri, 23 Aug 2019 19:50:39 GMT
|
140
140
|
recorded_with: VCR 4.0.0
|
@@ -9,14 +9,14 @@ http_interactions:
|
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
16
12
|
Accept-Language:
|
17
13
|
- en_US,en
|
18
|
-
|
19
|
-
-
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.15.4
|
16
|
+
Authorization:
|
17
|
+
- Basic Og==
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -29,14 +29,14 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '7432'
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 23 Aug 2019 19:50:33 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"commands":[{"name":"
|
37
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 23 Aug 2019 19:50:33 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://localhost:8150/api/commands/update-tag-rule
|
@@ -46,14 +46,14 @@ http_interactions:
|
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
|
-
Accept-Encoding:
|
50
|
-
- gzip, deflate
|
51
|
-
User-Agent:
|
52
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
53
49
|
Accept-Language:
|
54
50
|
- en_US,en
|
55
|
-
|
56
|
-
-
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.15.4
|
53
|
+
Authorization:
|
54
|
+
- Basic Og==
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
response:
|
58
58
|
status:
|
59
59
|
code: 200
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Server:
|
63
63
|
- Apache-Coyote/1.1
|
64
64
|
Etag:
|
65
|
-
- '"server-version-v1.
|
65
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
66
66
|
X-Content-Type-Options:
|
67
67
|
- nosniff
|
68
68
|
Content-Type:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
Content-Length:
|
71
71
|
- '5021'
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 23 Aug 2019 19:50:33 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"name":"update-tag-rule","help":{"summary":"Update the matching rule
|
@@ -136,5 +136,5 @@ http_interactions:
|
|
136
136
|
and forcing reevaluation:\n \n {\n \"name\": \"small\",\n \"rule\":
|
137
137
|
[\"<=\", [\"fact\", \"processorcount\"], \"2\"],\n \"force\": true\n }\n"},"schema":{"name":{"type":"string","position":0},"rule":{"type":"array","position":1},"force":{"type":"boolean"}}}'
|
138
138
|
http_version:
|
139
|
-
recorded_at:
|
139
|
+
recorded_at: Fri, 23 Aug 2019 19:50:33 GMT
|
140
140
|
recorded_with: VCR 4.0.0
|
@@ -9,14 +9,14 @@ http_interactions:
|
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
16
12
|
Accept-Language:
|
17
13
|
- en_US,en
|
18
|
-
|
19
|
-
-
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.15.4
|
16
|
+
Authorization:
|
17
|
+
- Basic Og==
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -29,14 +29,14 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '7432'
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"commands":[{"name":"
|
37
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -46,14 +46,14 @@ http_interactions:
|
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
|
-
Accept-Encoding:
|
50
|
-
- gzip, deflate
|
51
|
-
User-Agent:
|
52
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
53
49
|
Accept-Language:
|
54
50
|
- en_US,en
|
55
|
-
|
56
|
-
-
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.15.4
|
53
|
+
Authorization:
|
54
|
+
- Basic Og==
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
response:
|
58
58
|
status:
|
59
59
|
code: 200
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Server:
|
63
63
|
- Apache-Coyote/1.1
|
64
64
|
Etag:
|
65
|
-
- '"server-version-v1.
|
65
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
66
66
|
X-Content-Type-Options:
|
67
67
|
- nosniff
|
68
68
|
Content-Type:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
Content-Length:
|
71
71
|
- '5560'
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"name":"create-broker","help":{"summary":"Create a new broker configuration
|
@@ -93,7 +93,7 @@ http_interactions:
|
|
93
93
|
This attribute is required.\n - It must be of type string.\n - It must
|
94
94
|
be between 1 and 250 in length.\n - Its argument position is 0.\n\n * broker_type\n -
|
95
95
|
The broker type from which this broker is created. The available\n broker
|
96
|
-
types on your server are:\n -
|
96
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
97
97
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
98
98
|
of type string.\n - It must match the name of an existing broker type.\n -
|
99
99
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
128
128
|
is required.\n - It must be of type string.\n - It must be between 1 and
|
129
129
|
250 in length.\n - Its argument position is 0.\n\n * broker_type\n - The
|
130
130
|
broker type from which this broker is created. The available\n broker
|
131
|
-
types on your server are:\n -
|
131
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
132
132
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
133
133
|
of type string.\n - It must match the name of an existing broker type.\n -
|
134
134
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -141,7 +141,7 @@ http_interactions:
|
|
141
141
|
{\n \"server\": \"puppet.example.org\",\n \"environment\":
|
142
142
|
\"production\"\n },\n \"broker_type\": \"puppet\"\n }\n"},"schema":{"name":{"type":"string","position":0},"broker_type":{"type":"string","aliases":["broker-type"],"position":1},"configuration":{"type":"object","aliases":["c"]}}}'
|
143
143
|
http_version:
|
144
|
-
recorded_at:
|
144
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
145
145
|
- request:
|
146
146
|
method: post
|
147
147
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -149,20 +149,18 @@ http_interactions:
|
|
149
149
|
encoding: UTF-8
|
150
150
|
string: '{"name":"some noop broker","broker_type":"noop"}'
|
151
151
|
headers:
|
152
|
-
Accept:
|
153
|
-
- application/json
|
154
|
-
Accept-Encoding:
|
155
|
-
- gzip, deflate
|
156
|
-
User-Agent:
|
157
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
158
152
|
Content-Type:
|
159
153
|
- application/json
|
154
|
+
Accept:
|
155
|
+
- application/json
|
160
156
|
Accept-Language:
|
161
157
|
- en_US,en
|
162
|
-
|
163
|
-
-
|
164
|
-
|
165
|
-
-
|
158
|
+
User-Agent:
|
159
|
+
- Faraday v0.15.4
|
160
|
+
Authorization:
|
161
|
+
- Basic Og==
|
162
|
+
Accept-Encoding:
|
163
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
166
164
|
response:
|
167
165
|
status:
|
168
166
|
code: 202
|
@@ -177,13 +175,13 @@ http_interactions:
|
|
177
175
|
Content-Length:
|
178
176
|
- '233'
|
179
177
|
Date:
|
180
|
-
-
|
178
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
181
179
|
body:
|
182
180
|
encoding: UTF-8
|
183
181
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/some%20noop%20broker","name":"some
|
184
182
|
noop broker","command":"http://localhost:8150/api/collections/commands/1"}'
|
185
183
|
http_version:
|
186
|
-
recorded_at:
|
184
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
187
185
|
- request:
|
188
186
|
method: get
|
189
187
|
uri: http://localhost:8150/api/collections/brokers/some%20noop%20broker
|
@@ -193,14 +191,14 @@ http_interactions:
|
|
193
191
|
headers:
|
194
192
|
Accept:
|
195
193
|
- application/json
|
196
|
-
Accept-Encoding:
|
197
|
-
- gzip, deflate
|
198
|
-
User-Agent:
|
199
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
200
194
|
Accept-Language:
|
201
195
|
- en_US,en
|
202
|
-
|
203
|
-
-
|
196
|
+
User-Agent:
|
197
|
+
- Faraday v0.15.4
|
198
|
+
Authorization:
|
199
|
+
- Basic Og==
|
200
|
+
Accept-Encoding:
|
201
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
204
202
|
response:
|
205
203
|
status:
|
206
204
|
code: 200
|
@@ -215,13 +213,13 @@ http_interactions:
|
|
215
213
|
Content-Length:
|
216
214
|
- '336'
|
217
215
|
Date:
|
218
|
-
-
|
216
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
219
217
|
body:
|
220
218
|
encoding: UTF-8
|
221
219
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/some%20noop%20broker","name":"some
|
222
220
|
noop broker","configuration":{},"broker_type":"noop","policies":{"id":"http://localhost:8150/api/collections/brokers/some%20noop%20broker/policies","count":0,"name":"policies"}}'
|
223
221
|
http_version:
|
224
|
-
recorded_at:
|
222
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
225
223
|
- request:
|
226
224
|
method: get
|
227
225
|
uri: http://localhost:8150/api
|
@@ -231,14 +229,14 @@ http_interactions:
|
|
231
229
|
headers:
|
232
230
|
Accept:
|
233
231
|
- application/json
|
234
|
-
Accept-Encoding:
|
235
|
-
- gzip, deflate
|
236
|
-
User-Agent:
|
237
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
238
232
|
Accept-Language:
|
239
233
|
- en_US,en
|
240
|
-
|
241
|
-
-
|
234
|
+
User-Agent:
|
235
|
+
- Faraday v0.15.4
|
236
|
+
Authorization:
|
237
|
+
- Basic Og==
|
238
|
+
Accept-Encoding:
|
239
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
240
|
response:
|
243
241
|
status:
|
244
242
|
code: 200
|
@@ -251,14 +249,14 @@ http_interactions:
|
|
251
249
|
Content-Type:
|
252
250
|
- application/json
|
253
251
|
Content-Length:
|
254
|
-
- '
|
252
|
+
- '7432'
|
255
253
|
Date:
|
256
|
-
-
|
254
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
257
255
|
body:
|
258
256
|
encoding: UTF-8
|
259
|
-
string: '{"commands":[{"name":"
|
257
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
260
258
|
http_version:
|
261
|
-
recorded_at:
|
259
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
262
260
|
- request:
|
263
261
|
method: get
|
264
262
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -268,14 +266,14 @@ http_interactions:
|
|
268
266
|
headers:
|
269
267
|
Accept:
|
270
268
|
- application/json
|
271
|
-
Accept-Encoding:
|
272
|
-
- gzip, deflate
|
273
|
-
User-Agent:
|
274
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
275
269
|
Accept-Language:
|
276
270
|
- en_US,en
|
277
|
-
|
278
|
-
-
|
271
|
+
User-Agent:
|
272
|
+
- Faraday v0.15.4
|
273
|
+
Authorization:
|
274
|
+
- Basic Og==
|
275
|
+
Accept-Encoding:
|
276
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
279
277
|
response:
|
280
278
|
status:
|
281
279
|
code: 200
|
@@ -284,7 +282,7 @@ http_interactions:
|
|
284
282
|
Server:
|
285
283
|
- Apache-Coyote/1.1
|
286
284
|
Etag:
|
287
|
-
- '"server-version-v1.
|
285
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
288
286
|
X-Content-Type-Options:
|
289
287
|
- nosniff
|
290
288
|
Content-Type:
|
@@ -292,7 +290,7 @@ http_interactions:
|
|
292
290
|
Content-Length:
|
293
291
|
- '5560'
|
294
292
|
Date:
|
295
|
-
-
|
293
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
296
294
|
body:
|
297
295
|
encoding: UTF-8
|
298
296
|
string: '{"name":"create-broker","help":{"summary":"Create a new broker configuration
|
@@ -315,7 +313,7 @@ http_interactions:
|
|
315
313
|
This attribute is required.\n - It must be of type string.\n - It must
|
316
314
|
be between 1 and 250 in length.\n - Its argument position is 0.\n\n * broker_type\n -
|
317
315
|
The broker type from which this broker is created. The available\n broker
|
318
|
-
types on your server are:\n -
|
316
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
319
317
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
320
318
|
of type string.\n - It must match the name of an existing broker type.\n -
|
321
319
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -350,7 +348,7 @@ http_interactions:
|
|
350
348
|
is required.\n - It must be of type string.\n - It must be between 1 and
|
351
349
|
250 in length.\n - Its argument position is 0.\n\n * broker_type\n - The
|
352
350
|
broker type from which this broker is created. The available\n broker
|
353
|
-
types on your server are:\n -
|
351
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
354
352
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
355
353
|
of type string.\n - It must match the name of an existing broker type.\n -
|
356
354
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -363,7 +361,7 @@ http_interactions:
|
|
363
361
|
{\n \"server\": \"puppet.example.org\",\n \"environment\":
|
364
362
|
\"production\"\n },\n \"broker_type\": \"puppet\"\n }\n"},"schema":{"name":{"type":"string","position":0},"broker_type":{"type":"string","aliases":["broker-type"],"position":1},"configuration":{"type":"object","aliases":["c"]}}}'
|
365
363
|
http_version:
|
366
|
-
recorded_at:
|
364
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
367
365
|
- request:
|
368
366
|
method: post
|
369
367
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -371,20 +369,18 @@ http_interactions:
|
|
371
369
|
encoding: UTF-8
|
372
370
|
string: '{"name":"some other broker","broker_type":"noop"}'
|
373
371
|
headers:
|
374
|
-
Accept:
|
375
|
-
- application/json
|
376
|
-
Accept-Encoding:
|
377
|
-
- gzip, deflate
|
378
|
-
User-Agent:
|
379
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
380
372
|
Content-Type:
|
381
373
|
- application/json
|
374
|
+
Accept:
|
375
|
+
- application/json
|
382
376
|
Accept-Language:
|
383
377
|
- en_US,en
|
384
|
-
|
385
|
-
-
|
386
|
-
|
387
|
-
-
|
378
|
+
User-Agent:
|
379
|
+
- Faraday v0.15.4
|
380
|
+
Authorization:
|
381
|
+
- Basic Og==
|
382
|
+
Accept-Encoding:
|
383
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
388
384
|
response:
|
389
385
|
status:
|
390
386
|
code: 202
|
@@ -399,13 +395,13 @@ http_interactions:
|
|
399
395
|
Content-Length:
|
400
396
|
- '235'
|
401
397
|
Date:
|
402
|
-
-
|
398
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
403
399
|
body:
|
404
400
|
encoding: UTF-8
|
405
401
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/some%20other%20broker","name":"some
|
406
402
|
other broker","command":"http://localhost:8150/api/collections/commands/2"}'
|
407
403
|
http_version:
|
408
|
-
recorded_at:
|
404
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
409
405
|
- request:
|
410
406
|
method: get
|
411
407
|
uri: http://localhost:8150/api/collections/brokers/some%20other%20broker
|
@@ -415,14 +411,14 @@ http_interactions:
|
|
415
411
|
headers:
|
416
412
|
Accept:
|
417
413
|
- application/json
|
418
|
-
Accept-Encoding:
|
419
|
-
- gzip, deflate
|
420
|
-
User-Agent:
|
421
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
422
414
|
Accept-Language:
|
423
415
|
- en_US,en
|
424
|
-
|
425
|
-
-
|
416
|
+
User-Agent:
|
417
|
+
- Faraday v0.15.4
|
418
|
+
Authorization:
|
419
|
+
- Basic Og==
|
420
|
+
Accept-Encoding:
|
421
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
426
422
|
response:
|
427
423
|
status:
|
428
424
|
code: 200
|
@@ -437,13 +433,13 @@ http_interactions:
|
|
437
433
|
Content-Length:
|
438
434
|
- '339'
|
439
435
|
Date:
|
440
|
-
-
|
436
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
441
437
|
body:
|
442
438
|
encoding: UTF-8
|
443
439
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/some%20other%20broker","name":"some
|
444
440
|
other broker","configuration":{},"broker_type":"noop","policies":{"id":"http://localhost:8150/api/collections/brokers/some%20other%20broker/policies","count":0,"name":"policies"}}'
|
445
441
|
http_version:
|
446
|
-
recorded_at:
|
442
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
447
443
|
- request:
|
448
444
|
method: get
|
449
445
|
uri: http://localhost:8150/api
|
@@ -453,14 +449,14 @@ http_interactions:
|
|
453
449
|
headers:
|
454
450
|
Accept:
|
455
451
|
- application/json
|
456
|
-
Accept-Encoding:
|
457
|
-
- gzip, deflate
|
458
|
-
User-Agent:
|
459
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
460
452
|
Accept-Language:
|
461
453
|
- en_US,en
|
462
|
-
|
463
|
-
-
|
454
|
+
User-Agent:
|
455
|
+
- Faraday v0.15.4
|
456
|
+
Authorization:
|
457
|
+
- Basic Og==
|
458
|
+
Accept-Encoding:
|
459
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
464
460
|
response:
|
465
461
|
status:
|
466
462
|
code: 200
|
@@ -473,14 +469,14 @@ http_interactions:
|
|
473
469
|
Content-Type:
|
474
470
|
- application/json
|
475
471
|
Content-Length:
|
476
|
-
- '
|
472
|
+
- '7432'
|
477
473
|
Date:
|
478
|
-
-
|
474
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
479
475
|
body:
|
480
476
|
encoding: UTF-8
|
481
|
-
string: '{"commands":[{"name":"
|
477
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
482
478
|
http_version:
|
483
|
-
recorded_at:
|
479
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
484
480
|
- request:
|
485
481
|
method: get
|
486
482
|
uri: http://localhost:8150/api/commands/delete-broker
|
@@ -490,14 +486,14 @@ http_interactions:
|
|
490
486
|
headers:
|
491
487
|
Accept:
|
492
488
|
- application/json
|
493
|
-
Accept-Encoding:
|
494
|
-
- gzip, deflate
|
495
|
-
User-Agent:
|
496
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
497
489
|
Accept-Language:
|
498
490
|
- en_US,en
|
499
|
-
|
500
|
-
-
|
491
|
+
User-Agent:
|
492
|
+
- Faraday v0.15.4
|
493
|
+
Authorization:
|
494
|
+
- Basic Og==
|
495
|
+
Accept-Encoding:
|
496
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
501
497
|
response:
|
502
498
|
status:
|
503
499
|
code: 200
|
@@ -506,7 +502,7 @@ http_interactions:
|
|
506
502
|
Server:
|
507
503
|
- Apache-Coyote/1.1
|
508
504
|
Etag:
|
509
|
-
- '"server-version-v1.
|
505
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
510
506
|
X-Content-Type-Options:
|
511
507
|
- nosniff
|
512
508
|
Content-Type:
|
@@ -514,7 +510,7 @@ http_interactions:
|
|
514
510
|
Content-Length:
|
515
511
|
- '2765'
|
516
512
|
Date:
|
517
|
-
-
|
513
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
518
514
|
body:
|
519
515
|
encoding: UTF-8
|
520
516
|
string: '{"name":"delete-broker","help":{"summary":"Delete an existing broker
|
@@ -552,7 +548,7 @@ http_interactions:
|
|
552
548
|
250 in length.\n - Its argument position is 0.\n\n# EXAMPLES\n\n Delete
|
553
549
|
the unused broker configuration \"obsolete\":\n \n {\"name\": \"obsolete\"}\n"},"schema":{"name":{"type":"string","position":0}}}'
|
554
550
|
http_version:
|
555
|
-
recorded_at:
|
551
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
556
552
|
- request:
|
557
553
|
method: post
|
558
554
|
uri: http://localhost:8150/api/commands/delete-broker
|
@@ -560,20 +556,18 @@ http_interactions:
|
|
560
556
|
encoding: UTF-8
|
561
557
|
string: '{"name":"some noop broker"}'
|
562
558
|
headers:
|
563
|
-
Accept:
|
564
|
-
- application/json
|
565
|
-
Accept-Encoding:
|
566
|
-
- gzip, deflate
|
567
|
-
User-Agent:
|
568
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
569
559
|
Content-Type:
|
570
560
|
- application/json
|
561
|
+
Accept:
|
562
|
+
- application/json
|
571
563
|
Accept-Language:
|
572
564
|
- en_US,en
|
573
|
-
|
574
|
-
-
|
575
|
-
|
576
|
-
-
|
565
|
+
User-Agent:
|
566
|
+
- Faraday v0.15.4
|
567
|
+
Authorization:
|
568
|
+
- Basic Og==
|
569
|
+
Accept-Encoding:
|
570
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
577
571
|
response:
|
578
572
|
status:
|
579
573
|
code: 202
|
@@ -588,12 +582,12 @@ http_interactions:
|
|
588
582
|
Content-Length:
|
589
583
|
- '107'
|
590
584
|
Date:
|
591
|
-
-
|
585
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
592
586
|
body:
|
593
587
|
encoding: UTF-8
|
594
588
|
string: '{"result":"broker some noop broker destroyed","command":"http://localhost:8150/api/collections/commands/3"}'
|
595
589
|
http_version:
|
596
|
-
recorded_at:
|
590
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
597
591
|
- request:
|
598
592
|
method: get
|
599
593
|
uri: http://localhost:8150/api
|
@@ -603,14 +597,14 @@ http_interactions:
|
|
603
597
|
headers:
|
604
598
|
Accept:
|
605
599
|
- application/json
|
606
|
-
Accept-Encoding:
|
607
|
-
- gzip, deflate
|
608
|
-
User-Agent:
|
609
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
610
600
|
Accept-Language:
|
611
601
|
- en_US,en
|
612
|
-
|
613
|
-
-
|
602
|
+
User-Agent:
|
603
|
+
- Faraday v0.15.4
|
604
|
+
Authorization:
|
605
|
+
- Basic Og==
|
606
|
+
Accept-Encoding:
|
607
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
614
608
|
response:
|
615
609
|
status:
|
616
610
|
code: 200
|
@@ -623,14 +617,14 @@ http_interactions:
|
|
623
617
|
Content-Type:
|
624
618
|
- application/json
|
625
619
|
Content-Length:
|
626
|
-
- '
|
620
|
+
- '7432'
|
627
621
|
Date:
|
628
|
-
-
|
622
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
629
623
|
body:
|
630
624
|
encoding: UTF-8
|
631
|
-
string: '{"commands":[{"name":"
|
625
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
632
626
|
http_version:
|
633
|
-
recorded_at:
|
627
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
634
628
|
- request:
|
635
629
|
method: get
|
636
630
|
uri: http://localhost:8150/api/commands/delete-broker
|
@@ -640,14 +634,14 @@ http_interactions:
|
|
640
634
|
headers:
|
641
635
|
Accept:
|
642
636
|
- application/json
|
643
|
-
Accept-Encoding:
|
644
|
-
- gzip, deflate
|
645
|
-
User-Agent:
|
646
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
647
637
|
Accept-Language:
|
648
638
|
- en_US,en
|
649
|
-
|
650
|
-
-
|
639
|
+
User-Agent:
|
640
|
+
- Faraday v0.15.4
|
641
|
+
Authorization:
|
642
|
+
- Basic Og==
|
643
|
+
Accept-Encoding:
|
644
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
651
645
|
response:
|
652
646
|
status:
|
653
647
|
code: 200
|
@@ -656,7 +650,7 @@ http_interactions:
|
|
656
650
|
Server:
|
657
651
|
- Apache-Coyote/1.1
|
658
652
|
Etag:
|
659
|
-
- '"server-version-v1.
|
653
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
660
654
|
X-Content-Type-Options:
|
661
655
|
- nosniff
|
662
656
|
Content-Type:
|
@@ -664,7 +658,7 @@ http_interactions:
|
|
664
658
|
Content-Length:
|
665
659
|
- '2765'
|
666
660
|
Date:
|
667
|
-
-
|
661
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
668
662
|
body:
|
669
663
|
encoding: UTF-8
|
670
664
|
string: '{"name":"delete-broker","help":{"summary":"Delete an existing broker
|
@@ -702,7 +696,7 @@ http_interactions:
|
|
702
696
|
250 in length.\n - Its argument position is 0.\n\n# EXAMPLES\n\n Delete
|
703
697
|
the unused broker configuration \"obsolete\":\n \n {\"name\": \"obsolete\"}\n"},"schema":{"name":{"type":"string","position":0}}}'
|
704
698
|
http_version:
|
705
|
-
recorded_at:
|
699
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
706
700
|
- request:
|
707
701
|
method: post
|
708
702
|
uri: http://localhost:8150/api/commands/delete-broker
|
@@ -710,20 +704,18 @@ http_interactions:
|
|
710
704
|
encoding: UTF-8
|
711
705
|
string: '{"name":"some other broker"}'
|
712
706
|
headers:
|
713
|
-
Accept:
|
714
|
-
- application/json
|
715
|
-
Accept-Encoding:
|
716
|
-
- gzip, deflate
|
717
|
-
User-Agent:
|
718
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
719
707
|
Content-Type:
|
720
708
|
- application/json
|
709
|
+
Accept:
|
710
|
+
- application/json
|
721
711
|
Accept-Language:
|
722
712
|
- en_US,en
|
723
|
-
|
724
|
-
-
|
725
|
-
|
726
|
-
-
|
713
|
+
User-Agent:
|
714
|
+
- Faraday v0.15.4
|
715
|
+
Authorization:
|
716
|
+
- Basic Og==
|
717
|
+
Accept-Encoding:
|
718
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
727
719
|
response:
|
728
720
|
status:
|
729
721
|
code: 202
|
@@ -738,10 +730,10 @@ http_interactions:
|
|
738
730
|
Content-Length:
|
739
731
|
- '108'
|
740
732
|
Date:
|
741
|
-
-
|
733
|
+
- Fri, 23 Aug 2019 19:50:05 GMT
|
742
734
|
body:
|
743
735
|
encoding: UTF-8
|
744
736
|
string: '{"result":"broker some other broker destroyed","command":"http://localhost:8150/api/collections/commands/4"}'
|
745
737
|
http_version:
|
746
|
-
recorded_at:
|
738
|
+
recorded_at: Fri, 23 Aug 2019 19:50:05 GMT
|
747
739
|
recorded_with: VCR 4.0.0
|