---
title: "Get all credentials of the specified DevOps project"
method: GET
path: "/kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/credentials"
tags: ["DevOps Project Credential"]
---

# Get all credentials of the specified DevOps project

`GET /kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/credentials`

## Path parameters

- `devops` string, required

## Response `200`

ok

- DevopsJenkinsCredential[]
  - `create_time` string, date-time — Credential's create_time'
  - `creator` string — Creator's username
  - `description` string — Credential's description'
  - `display_name` string — Credential's display name
  - `domain` string — Credential's domain,In ks we only use the default domain, default '_''
  - `fingerprint` DevopsJenkinsCredentialFingerprint
    - `file_name` string — Credential's display name and description
    - `hash` string — Credential's hash
    - `usage` DevopsJenkinsCredentialFingerprintUsage[] — all usage of Credential
      - `name` string — Jenkins pipeline full name
      - `ranges` Ranges
        - `ranges` RangesRanges[]
          - `end` integer — End build number
          - `start` integer — Start build number
  - `id` string, required — Id of Credential, e.g. dockerhub-id
  - `kubeconfig` DevopsKubeconfigCredential
    - `content` string — content of kubeconfig
  - `secret_text` DevopsSecretTextCredential
    - `secret` string — secret content of credential
  - `ssh` DevopsSshCredential
    - `passphrase` string — passphrase of ssh credential, password of ssh credential
    - `private_key` string — private key of ssh credential
    - `username` string — username of ssh credential
  - `type` string, required — Type of Credential, e.g. ssh/kubeconfig
  - `username_password` DevopsUsernamePasswordCredential
    - `password` string — password of username_password credential
    - `username` string — username of username_password credential

## Other responses

- `default` — ok

## Changes

- **2019-08-27** `6d6e730a2d14` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/devops.kubesphere.io/v1alpha2/devops/:devops/credentials/get.md)

---

[API](https://skmtc.dev/kubesphere/apis/ks-api.md) · [All operations](https://skmtc.dev/kubesphere/apis/ks-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubesphere/ks-api/revisions/6d6e730a2d14/schema)
