From 75ae121dac1e1ea8f9866f07cd1ce261dca3a607 Mon Sep 17 00:00:00 2001 From: Javier Marcos <1271349+javuto@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:09:35 +0200 Subject: [PATCH] Keeping bruno files up to date to osctrl-api definition --- ...et -environments--env--remove--target-.bru | 2 +- ...st -environments--env--enroll--action-.bru | 30 +++++++++++++++++++ ...st -environments--env--enroll--target-.bru | 20 +++++++++++++ ...st -environments--env--remove--action-.bru | 20 +++++++++++++ 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 tools/bruno/environments/post -environments--env--enroll--action-.bru create mode 100644 tools/bruno/environments/post -environments--env--enroll--target-.bru create mode 100644 tools/bruno/environments/post -environments--env--remove--action-.bru diff --git a/tools/bruno/environments/get -environments--env--remove--target-.bru b/tools/bruno/environments/get -environments--env--remove--target-.bru index e9091c30..17a15355 100644 --- a/tools/bruno/environments/get -environments--env--remove--target-.bru +++ b/tools/bruno/environments/get -environments--env--remove--target-.bru @@ -1,7 +1,7 @@ meta { name: get -environments--env--remove--target- type: http - seq: 4 + seq: 6 } get { diff --git a/tools/bruno/environments/post -environments--env--enroll--action-.bru b/tools/bruno/environments/post -environments--env--enroll--action-.bru new file mode 100644 index 00000000..786559fc --- /dev/null +++ b/tools/bruno/environments/post -environments--env--enroll--action-.bru @@ -0,0 +1,30 @@ +meta { + name: post -environments--env--enroll--action- + type: http + seq: 5 +} + +post { + url: https://osctrl.net/api/v1/environments/{env}/enroll/{action} + body: json + auth: bearer +} + +params:path { + env: + action: +} + +auth:bearer { + token: {{token}} +} + +body:json { + { + "Certificate": "", + "MacPkgURL": "", + "MsiPkgURL": "", + "RpmPkgURL": "", + "DebPkgURL": "" + } +} diff --git a/tools/bruno/environments/post -environments--env--enroll--target-.bru b/tools/bruno/environments/post -environments--env--enroll--target-.bru new file mode 100644 index 00000000..d4c89e8b --- /dev/null +++ b/tools/bruno/environments/post -environments--env--enroll--target-.bru @@ -0,0 +1,20 @@ +meta { + name: post -environments--env--enroll--target- + type: http + seq: 4 +} + +post { + url: https://osctrl.net/api/v1/environments/{env}/enroll/{target} + body: none + auth: bearer +} + +params:path { + env: + target: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/environments/post -environments--env--remove--action-.bru b/tools/bruno/environments/post -environments--env--remove--action-.bru new file mode 100644 index 00000000..24839a5a --- /dev/null +++ b/tools/bruno/environments/post -environments--env--remove--action-.bru @@ -0,0 +1,20 @@ +meta { + name: post -environments--env--remove--action- + type: http + seq: 7 +} + +post { + url: https://osctrl.net/api/v1/environments/{env}/remove/{action} + body: json + auth: bearer +} + +params:path { + env: + action: +} + +auth:bearer { + token: {{token}} +}