> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all container registry credentials for an organization

> Returns all container registry credentials for an organization, grouped by provider.
    
**Supported providers:**
- **GitHub Container Registry (ghcr.io)** - Uses GitHub App installation (no stored credentials, returns availability status)
- **GitLab Container Registry** - Personal/group deploy tokens
- **DockerHub** - Personal access tokens
- **Azure Container Registry (ACR)** - Service principal credentials
- **Google Container Registry (GCR)** - Service account JSON keys
- **Amazon ECR** - IAM access keys
- **Quay.io** - Robot account credentials
- **Harbor** - Robot account credentials
- **JFrog Artifactory** - API keys or access tokens

This endpoint consolidates all registry credentials into a single response for easier frontend integration.



## OpenAPI

````yaml get /integrations/container-registry/organization/{organizationId}/credentials
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /integrations/container-registry/organization/{organizationId}/credentials:
    get:
      tags:
        - Container Registry Credentials
      summary: Get all container registry credentials for an organization
      description: >-
        Returns all container registry credentials for an organization, grouped
        by provider.
            
        **Supported providers:**

        - **GitHub Container Registry (ghcr.io)** - Uses GitHub App installation
        (no stored credentials, returns availability status)

        - **GitLab Container Registry** - Personal/group deploy tokens

        - **DockerHub** - Personal access tokens

        - **Azure Container Registry (ACR)** - Service principal credentials

        - **Google Container Registry (GCR)** - Service account JSON keys

        - **Amazon ECR** - IAM access keys

        - **Quay.io** - Robot account credentials

        - **Harbor** - Robot account credentials

        - **JFrog Artifactory** - API keys or access tokens


        This endpoint consolidates all registry credentials into a single
        response for easier frontend integration.
      operationId: ContainerRegistryCredentialsController_getAllCredentials
      parameters:
        - name: organizationId
          required: true
          in: path
          description: CybeDefend organization ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
      responses:
        '200':
          description: All container registry credentials retrieved successfully
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AllContainerRegistryCredentialsResponseDto
        '401':
          description: Unauthorized - Invalid or missing authentication token
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden - Insufficient permissions to view integrations
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                example:
                  message: Internal server error
                  statusCode: 500
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    AllContainerRegistryCredentialsResponseDto:
      type: object
      properties:
        github:
          description: >-
            GitHub Container Registry status (uses GitHub App, no stored
            credentials)
          allOf:
            - $ref: '#/components/schemas/GithubContainerRegistryStatusDto'
        gitlab:
          description: GitLab Container Registry credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        dockerhub:
          description: DockerHub credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        acr:
          description: Azure Container Registry (ACR) credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        gcr:
          description: Google Container Registry (GCR) credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        ecr:
          description: Amazon Elastic Container Registry (ECR) credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        quay:
          description: Quay.io credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        harbor:
          description: Harbor credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        jfrog:
          description: JFrog Artifactory credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
        scaleway:
          description: Scaleway Container Registry credentials
          type: array
          items:
            $ref: '#/components/schemas/ContainerRegistryCredentialDto'
      required:
        - github
        - gitlab
        - dockerhub
        - acr
        - gcr
        - ecr
        - quay
        - harbor
        - jfrog
        - scaleway
    GithubContainerRegistryStatusDto:
      type: object
      properties:
        available:
          type: boolean
          description: >-
            Whether GitHub Container Registry is available (GitHub App installed
            with packages permission)
          example: true
        githubOwner:
          type: string
          description: GitHub organization/user name
          example: CybeDefend
      required:
        - available
        - githubOwner
    ContainerRegistryCredentialDto:
      type: object
      properties:
        id:
          type: string
          description: Credential UUID
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        projectId:
          type: string
          description: >-
            Legacy 1:1 owning project ID (empty for org-level credentials such
            as ECR)
          example: 550e8400-e29b-41d4-a716-446655440000
        linkedProjectIds:
          description: >-
            Projects this org-level credential is linked to via the N:N link
            table (ECR)
          example:
            - 550e8400-e29b-41d4-a716-446655440000
          type: array
          items:
            type: string
        name:
          type: string
          description: Display name (e.g., username, registry name)
          example: myregistry
        registryUrl:
          type: string
          description: Registry URL
          example: https://index.docker.io/v1/
        description:
          type: string
          description: Optional description
          example: Production registry
        createdAt:
          type: string
          description: Creation timestamp (ISO 8601)
          example: '2024-01-15T10:30:00.000Z'
        gitlabDetails:
          description: GitLab-specific details
          allOf:
            - $ref: '#/components/schemas/GitlabCredentialDetailsDto'
        dockerhubDetails:
          description: DockerHub-specific details
          allOf:
            - $ref: '#/components/schemas/DockerhubCredentialDetailsDto'
        acrDetails:
          description: ACR-specific details
          allOf:
            - $ref: '#/components/schemas/AcrCredentialDetailsDto'
        gcrDetails:
          description: GCR-specific details
          allOf:
            - $ref: '#/components/schemas/GcrCredentialDetailsDto'
        ecrDetails:
          description: ECR-specific details
          allOf:
            - $ref: '#/components/schemas/EcrCredentialDetailsDto'
        quayDetails:
          description: Quay-specific details
          allOf:
            - $ref: '#/components/schemas/QuayCredentialDetailsDto'
        harborDetails:
          description: Harbor-specific details
          allOf:
            - $ref: '#/components/schemas/HarborCredentialDetailsDto'
        jfrogDetails:
          description: JFrog-specific details
          allOf:
            - $ref: '#/components/schemas/JfrogCredentialDetailsDto'
        scalewayDetails:
          description: Scaleway-specific details
          allOf:
            - $ref: '#/components/schemas/ScalewayCredentialDetailsDto'
      required:
        - id
        - projectId
        - name
        - registryUrl
        - createdAt
    GitlabCredentialDetailsDto:
      type: object
      properties:
        gitlabUrl:
          type: string
          description: GitLab instance URL
          example: https://gitlab.com
        registryPath:
          type: string
          description: Registry path
          example: group/project
      required:
        - gitlabUrl
        - registryPath
    DockerhubCredentialDetailsDto:
      type: object
      properties:
        dockerhubUsername:
          type: string
          description: DockerHub username
          example: myusername
      required:
        - dockerhubUsername
    AcrCredentialDetailsDto:
      type: object
      properties:
        subscriptionId:
          type: string
          description: Azure subscription ID
          example: 12345678-1234-1234-1234-123456789012
        resourceGroup:
          type: string
          description: Azure resource group
          example: my-resource-group
        registryName:
          type: string
          description: ACR registry name
          example: myregistry
      required:
        - subscriptionId
        - resourceGroup
        - registryName
    GcrCredentialDetailsDto:
      type: object
      properties:
        projectId:
          type: string
          description: GCP project ID
          example: my-gcp-project
        location:
          type: string
          description: Registry location (gcr.io, us-gcr.io, etc.)
          example: gcr.io
      required:
        - projectId
        - location
    EcrCredentialDetailsDto:
      type: object
      properties:
        awsAccountId:
          type: string
          description: AWS account ID
          example: '123456789012'
        region:
          type: string
          description: AWS region
          example: us-east-1
      required:
        - awsAccountId
        - region
    QuayCredentialDetailsDto:
      type: object
      properties:
        quayOrganization:
          type: string
          description: Quay organization
          example: myorg
        isSelfHosted:
          type: boolean
          description: Whether this is a self-hosted Quay instance
          example: false
      required:
        - quayOrganization
        - isSelfHosted
    HarborCredentialDetailsDto:
      type: object
      properties:
        harborProject:
          type: string
          description: Harbor project name
          example: myproject
      required:
        - harborProject
    JfrogCredentialDetailsDto:
      type: object
      properties:
        artifactoryUrl:
          type: string
          description: JFrog Artifactory URL
          example: https://mycompany.jfrog.io
        repositoryKey:
          type: string
          description: Docker repository key
          example: docker-local
      required:
        - artifactoryUrl
        - repositoryKey
    ScalewayCredentialDetailsDto:
      type: object
      properties:
        region:
          type: string
          description: Scaleway region (fr-par, nl-ams, pl-waw)
          example: fr-par
        namespaceId:
          type: string
          description: Scaleway namespace ID
          example: 12345678-1234-1234-1234-123456789012
      required:
        - region
        - namespaceId

````