UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

154 lines (153 loc) 4.75 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Description for Get a certificate. * * Uses Azure REST API version 2024-04-01. * * Other available API versions: 2016-03-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01, 2024-11-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native web [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>; export interface GetCertificateArgs { /** * Name of the certificate. */ name: string; /** * Name of the resource group to which the resource belongs. */ resourceGroupName: string; } /** * SSL certificate for an app. */ export interface GetCertificateResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * CNAME of the certificate to be issued via free certificate */ readonly canonicalName?: string; /** * Raw bytes of .cer file */ readonly cerBlob: string; /** * Method of domain validation for free cert */ readonly domainValidationMethod?: string; /** * Certificate expiration date. */ readonly expirationDate: string; /** * Friendly name of the certificate. */ readonly friendlyName: string; /** * Host names the certificate applies to. */ readonly hostNames?: string[]; /** * Specification for the App Service Environment to use for the certificate. */ readonly hostingEnvironmentProfile: outputs.web.HostingEnvironmentProfileResponse; /** * Resource Id. */ readonly id: string; /** * Certificate issue Date. */ readonly issueDate: string; /** * Certificate issuer. */ readonly issuer: string; /** * Key Vault Csm resource Id. */ readonly keyVaultId?: string; /** * Key Vault secret name. */ readonly keyVaultSecretName?: string; /** * Status of the Key Vault secret. */ readonly keyVaultSecretStatus: string; /** * Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. */ readonly kind?: string; /** * Resource Location. */ readonly location: string; /** * Resource Name. */ readonly name: string; /** * Pfx blob. */ readonly pfxBlob?: string; /** * Public key hash. */ readonly publicKeyHash: string; /** * Self link. */ readonly selfLink: string; /** * Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". */ readonly serverFarmId?: string; /** * App name. */ readonly siteName: string; /** * Subject name of the certificate. */ readonly subjectName: string; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * Certificate thumbprint. */ readonly thumbprint: string; /** * Resource type. */ readonly type: string; /** * Is the certificate valid?. */ readonly valid: boolean; } /** * Description for Get a certificate. * * Uses Azure REST API version 2024-04-01. * * Other available API versions: 2016-03-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01, 2024-11-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native web [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCertificateResult>; export interface GetCertificateOutputArgs { /** * Name of the certificate. */ name: pulumi.Input<string>; /** * Name of the resource group to which the resource belongs. */ resourceGroupName: pulumi.Input<string>; }