@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
204 lines • 6.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages the custom SSL/TLS certificate for a specific node.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
* import * as tls from "@pulumi/tls";
*
* const proxmoxVirtualEnvironmentCertificate = new tls.PrivateKey("proxmox_virtual_environment_certificate", {
* algorithm: "RSA",
* rsaBits: 2048,
* });
* const proxmoxVirtualEnvironmentCertificateSelfSignedCert = new tls.SelfSignedCert("proxmox_virtual_environment_certificate", {
* keyAlgorithm: proxmoxVirtualEnvironmentCertificate.algorithm,
* privateKeyPem: proxmoxVirtualEnvironmentCertificate.privateKeyPem,
* subject: {
* commonName: "example.com",
* organization: "Terraform Provider for Proxmox",
* },
* validityPeriodHours: 8760,
* allowedUses: [
* "key_encipherment",
* "digital_signature",
* "server_auth",
* ],
* });
* const example = new proxmoxve.CertificateLegacy("example", {
* certificate: proxmoxVirtualEnvironmentCertificateSelfSignedCert.certPem,
* nodeName: "first-node",
* privateKey: proxmoxVirtualEnvironmentCertificate.privateKeyPem,
* });
* ```
*/
export declare class CertificateLegacy extends pulumi.CustomResource {
/**
* Get an existing CertificateLegacy resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CertificateLegacyState, opts?: pulumi.CustomResourceOptions): CertificateLegacy;
/**
* Returns true if the given object is an instance of CertificateLegacy. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is CertificateLegacy;
/**
* The PEM encoded certificate.
*/
readonly certificate: pulumi.Output<string>;
/**
* The PEM encoded certificate chain.
*/
readonly certificateChain: pulumi.Output<string | undefined>;
/**
* The expiration date (RFC 3339).
*/
readonly expirationDate: pulumi.Output<string>;
/**
* The file name.
*/
readonly fileName: pulumi.Output<string>;
/**
* The issuer.
*/
readonly issuer: pulumi.Output<string>;
/**
* A node name.
*/
readonly nodeName: pulumi.Output<string>;
/**
* Whether to overwrite an existing certificate
*/
readonly overwrite: pulumi.Output<boolean | undefined>;
/**
* The PEM encoded private key.
*/
readonly privateKey: pulumi.Output<string>;
/**
* The public key size.
*/
readonly publicKeySize: pulumi.Output<number>;
/**
* The public key type.
*/
readonly publicKeyType: pulumi.Output<string>;
/**
* The SSL fingerprint.
*/
readonly sslFingerprint: pulumi.Output<string>;
/**
* The start date (RFC 3339).
*/
readonly startDate: pulumi.Output<string>;
/**
* The subject.
*/
readonly subject: pulumi.Output<string>;
/**
* The subject alternative names.
*/
readonly subjectAlternativeNames: pulumi.Output<string[]>;
/**
* Create a CertificateLegacy resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: CertificateLegacyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CertificateLegacy resources.
*/
export interface CertificateLegacyState {
/**
* The PEM encoded certificate.
*/
certificate?: pulumi.Input<string | undefined>;
/**
* The PEM encoded certificate chain.
*/
certificateChain?: pulumi.Input<string | undefined>;
/**
* The expiration date (RFC 3339).
*/
expirationDate?: pulumi.Input<string | undefined>;
/**
* The file name.
*/
fileName?: pulumi.Input<string | undefined>;
/**
* The issuer.
*/
issuer?: pulumi.Input<string | undefined>;
/**
* A node name.
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* Whether to overwrite an existing certificate
*/
overwrite?: pulumi.Input<boolean | undefined>;
/**
* The PEM encoded private key.
*/
privateKey?: pulumi.Input<string | undefined>;
/**
* The public key size.
*/
publicKeySize?: pulumi.Input<number | undefined>;
/**
* The public key type.
*/
publicKeyType?: pulumi.Input<string | undefined>;
/**
* The SSL fingerprint.
*/
sslFingerprint?: pulumi.Input<string | undefined>;
/**
* The start date (RFC 3339).
*/
startDate?: pulumi.Input<string | undefined>;
/**
* The subject.
*/
subject?: pulumi.Input<string | undefined>;
/**
* The subject alternative names.
*/
subjectAlternativeNames?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
/**
* The set of arguments for constructing a CertificateLegacy resource.
*/
export interface CertificateLegacyArgs {
/**
* The PEM encoded certificate.
*/
certificate: pulumi.Input<string>;
/**
* The PEM encoded certificate chain.
*/
certificateChain?: pulumi.Input<string | undefined>;
/**
* A node name.
*/
nodeName: pulumi.Input<string>;
/**
* Whether to overwrite an existing certificate
*/
overwrite?: pulumi.Input<boolean | undefined>;
/**
* The PEM encoded private key.
*/
privateKey: pulumi.Input<string>;
}
//# sourceMappingURL=certificateLegacy.d.ts.map