@osmit-gmbh/pulumi-authentik
Version:
A Pulumi package for creating and managing authentik cloud resources.
112 lines (111 loc) • 2.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get certificate-key pairs by name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the the ID and other info about a certificate
* const generated = authentik.getCertificateKeyPair({
* name: "authentik Self-signed Certificate",
* });
* ```
*/
export declare function getCertificateKeyPair(args: GetCertificateKeyPairArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateKeyPairResult>;
/**
* A collection of arguments for invoking getCertificateKeyPair.
*/
export interface GetCertificateKeyPairArgs {
/**
* If set to true, certificate data will be fetched. Defaults to `true`.
*/
fetchCertificate?: boolean;
/**
* If set to true, private key data will be fetched. Defaults to `true`.
*/
fetchKey?: boolean;
/**
* Generated.
*/
keyData?: string;
name: string;
}
/**
* A collection of values returned by getCertificateKeyPair.
*/
export interface GetCertificateKeyPairResult {
/**
* Generated.
*/
readonly certificateData: string;
/**
* Generated.
*/
readonly expiry: string;
/**
* If set to true, certificate data will be fetched. Defaults to `true`.
*/
readonly fetchCertificate?: boolean;
/**
* If set to true, private key data will be fetched. Defaults to `true`.
*/
readonly fetchKey?: boolean;
/**
* SHA1-hashed certificate fingerprint Generated.
*/
readonly fingerprint1: string;
/**
* SHA256-hashed certificate fingerprint Generated.
*/
readonly fingerprint256: string;
/**
* Generated.
*/
readonly id: string;
/**
* Generated.
*/
readonly keyData: string;
readonly name: string;
/**
* Generated.
*/
readonly subject: string;
}
/**
* Get certificate-key pairs by name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the the ID and other info about a certificate
* const generated = authentik.getCertificateKeyPair({
* name: "authentik Self-signed Certificate",
* });
* ```
*/
export declare function getCertificateKeyPairOutput(args: GetCertificateKeyPairOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCertificateKeyPairResult>;
/**
* A collection of arguments for invoking getCertificateKeyPair.
*/
export interface GetCertificateKeyPairOutputArgs {
/**
* If set to true, certificate data will be fetched. Defaults to `true`.
*/
fetchCertificate?: pulumi.Input<boolean>;
/**
* If set to true, private key data will be fetched. Defaults to `true`.
*/
fetchKey?: pulumi.Input<boolean>;
/**
* Generated.
*/
keyData?: pulumi.Input<string>;
name: pulumi.Input<string>;
}