Get ECR credential details
curl --request GET \
--url https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}import requests
url = "https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}', 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/ecr/container-registry/project/{projectId}/credentials/{credentialId}",
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/ecr/container-registry/project/{projectId}/credentials/{credentialId}"
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/ecr/container-registry/project/{projectId}/credentials/{credentialId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}")
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",
"awsAccountId": "123456789012",
"awsRegion": "us-east-1",
"createdAt": "2025-01-01T00:00:00Z",
"awsAccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"credentialType": "static_keys",
"roleArn": "arn:aws:iam::123456789012:role/cybedefend-ecr",
"description": "Production ECR registry"
}AWS (ECR)
Get ECR credential details
Returns detailed information about a specific AWS Elastic Container Registry credential (sanitized, no secrets exposed)
GET
/
integrations
/
ecr
/
container-registry
/
project
/
{projectId}
/
credentials
/
{credentialId}
Get ECR credential details
curl --request GET \
--url https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}import requests
url = "https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}', 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/ecr/container-registry/project/{projectId}/credentials/{credentialId}",
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/ecr/container-registry/project/{projectId}/credentials/{credentialId}"
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/ecr/container-registry/project/{projectId}/credentials/{credentialId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/integrations/ecr/container-registry/project/{projectId}/credentials/{credentialId}")
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",
"awsAccountId": "123456789012",
"awsRegion": "us-east-1",
"createdAt": "2025-01-01T00:00:00Z",
"awsAccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"credentialType": "static_keys",
"roleArn": "arn:aws:iam::123456789012:role/cybedefend-ecr",
"description": "Production ECR registry"
}Path Parameters
CybeDefend project ID
Example:
"550e8400-e29b-41d4-a716-446655440000"
Credential ID to retrieve
Example:
"550e8400-e29b-41d4-a716-446655440001"
Response
Credential details retrieved successfully
Credential ID
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
AWS Account ID (12 digits)
Example:
"123456789012"
AWS Region
Example:
"us-east-1"
Creation date
Example:
"2025-01-01T00:00:00Z"
AWS Access Key ID (static_keys mode only)
Example:
"AKIAIOSFODNN7EXAMPLE"
Authentication mode
Available options:
static_keys, iam_role IAM role ARN (iam_role mode only)
Example:
"arn:aws:iam::123456789012:role/cybedefend-ecr"
Description
Example:
"Production ECR registry"