---
title: "Get Credential"
method: GET
path: "/v1/credentials/{credentialId}"
tags: ["Cloud"]
---

# Get Credential

`GET /v1/credentials/{credentialId}`

Get details about a specific credential.

## Path parameters

- `credentialId` string, required — Cloud credential ID with provider prefix

## Response `200`

OK. Returns the specified credential.

- union
  - AwsCredentialObject
    - `credentialId` string, required — AWS credential ID
    - `type` 'aws', required
    - `params` object, required
      - `name` string, required — Name of the credential
      - `arn` string, required — The AWS resource identifier corresponding to the credential
      - `orgMemberAccountRoleName` string, required — If not null, then the IAM role that exists in each of your AWS member accounts that was included by Lucid when making requests on your behalf to create or update the credential
  - AzureCredentialObject
    - `credentialId` string, required — Azure credential ID
    - `type` 'azure', required
    - `params` object, required
      - `name` string, required — Name of the credential
      - `clientId` string, uuid, required — The ID of the application from which resource metadata was imported for your subscriptions
      - `tenantId` string, uuid, required — The ID of the directory that was used during authentication
      - `linkType` 'global' | 'government', required — The type of Azure environment the credential is for
  - GoogleCloudCredentialObject
    - `credentialId` string, required — Google Cloud credential ID
    - `type` 'googleCloud', required
    - `params` object, required
      - `name` string, required — Name of the credential
      - `keyType` string, required — The type of the credential
      - `projectId` string, required — The ID of the Google Cloud project from which the credential was created

## Other responses

- `400` — Bad Request. Occurs when the credential ID is malformatted.
- `403` — Forbidden. Occurs when the credential does not exist or the user does not have access to it.

---

[API](https://skmtc.net/lucid/apis/lucid-rest-api.md) · [All operations](https://skmtc.net/lucid/apis/lucid-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lucid/lucid-rest-api/revisions/6a32cb9e1aa7/schema)
