curl --request GET \
--url https://use.hoop.dev/api/sidecars/reviewsimport requests
url = "https://use.hoop.dev/api/sidecars/reviews"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/sidecars/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://use.hoop.dev/api/sidecars/reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/sidecars/reviews"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/sidecars/reviews")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/sidecars/reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"approval_rule": "payments-approvers",
"created_at": "2024-07-25T15:56:35.317601Z",
"decided_at": "2024-07-25T16:01:12.000Z",
"expires_at": "2024-07-25T16:11:35.000Z",
"id": "9F9745B4-C77B-4D52-84D3-E24F67E3623C",
"listener_name": "appdb",
"rejection_reason": "Not during business hours.",
"status": "PENDING"
}
]{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}List Sidecar Reviews
List the reviews the calling sidecar filed, newest first. It never changes a review.
curl --request GET \
--url https://use.hoop.dev/api/sidecars/reviewsimport requests
url = "https://use.hoop.dev/api/sidecars/reviews"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://use.hoop.dev/api/sidecars/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://use.hoop.dev/api/sidecars/reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/sidecars/reviews"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://use.hoop.dev/api/sidecars/reviews")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/sidecars/reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"approval_rule": "payments-approvers",
"created_at": "2024-07-25T15:56:35.317601Z",
"decided_at": "2024-07-25T16:01:12.000Z",
"expires_at": "2024-07-25T16:11:35.000Z",
"id": "9F9745B4-C77B-4D52-84D3-E24F67E3623C",
"listener_name": "appdb",
"rejection_reason": "Not during business hours.",
"status": "PENDING"
}
]{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}Headers
The token returned when the sidecar was created. Omit it when sending hoop-sidecar-identity.
A Kubernetes or Google service account JWT, raw, that a sidecar service account mapping allows. Omit it when sending hoop-sidecar-token.
Query Parameters
Only reviews in this status
PENDING, APPROVED, REJECTED, REVOKED, PROCESSING, EXECUTED, EXPIRED, UNKNOWN The most reviews to return, 1 to 200
Response
OK
The access request rule the review was filed under
"payments-approvers"
The time the review was created
"2024-07-25T15:56:35.317601Z"
The time of the last reviewer decision. Null while the review is pending
"2024-07-25T16:01:12.000Z"
The decision deadline while PENDING, the approval deadline once APPROVED, the deadline that passed when EXPIRED. Absent with no limit
"2024-07-25T16:11:35.000Z"
Resource identifier
"9F9745B4-C77B-4D52-84D3-E24F67E3623C"
The sidecar listener this review is bound to
"appdb"
The reason the reviewer gave when rejecting the review
"Not during business hours."
The status of the review
- PENDING - Waiting for a reviewer
- APPROVED - Approved and not yet consumed; resend the identical statement
- REJECTED - Rejected; the statement will not run
- REVOKED - Revoked after approval
- EXECUTED - The approval was consumed by a resent statement
- EXPIRED - The review passed its deadline; it never releases the statement
PENDING, APPROVED, REJECTED, REVOKED, PROCESSING, EXECUTED, UNKNOWN, EXPIRED Was this page helpful?