@cpod/sdk - v0.2.7
    Preparing search index...

    Function getSecret

    • Get secret metadata by ID

      Parameters

      • secretId: string

        The unique identifier of the secret

      Returns Promise<Secret>

      Secret metadata (value is not exposed)

      401 - Not authenticated

      404 - Secret not found

      import { getSecret } from "@cpod/sdk";

      const secret = await getSecret("secret-123");
      console.log(`Key: ${secret.key_name}`);