List stored GCR Container Registry credentials
curl --request GET \
--url https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentialsimport requests
url = "https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials', 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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials",
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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials"
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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials")
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[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"gcpProjectId": "my-gcp-project-123",
"registryHostname": "gcr.io",
"createdAt": "2025-01-01T00:00:00Z",
"description": "Production container registry"
}
]Google (GCR / Artifact Registry)
List stored GCR Container Registry credentials
Returns all Google Container Registry and Artifact Registry credentials associated with the project. Credentials are sanitized and do not include sensitive secrets like service account keys.
GET
/
integrations
/
gcr
/
container-registry
/
project
/
{projectId}
/
credentials
List stored GCR Container Registry credentials
curl --request GET \
--url https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentialsimport requests
url = "https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials', 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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials",
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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials"
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://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/integrations/gcr/container-registry/project/{projectId}/credentials")
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[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"gcpProjectId": "my-gcp-project-123",
"registryHostname": "gcr.io",
"createdAt": "2025-01-01T00:00:00Z",
"description": "Production container registry"
}
]Path Parameters
CybeDefend project ID
Example:
"550e8400-e29b-41d4-a716-446655440000"
Response
List of credentials
Credential ID
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
GCP project ID
Example:
"my-gcp-project-123"
Registry hostname
Example:
"gcr.io"
Creation date
Example:
"2025-01-01T00:00:00Z"
Description
Example:
"Production container registry"