GetCertificate
Use this data source to access information about an App Service Certificate.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetCertificate.InvokeAsync(new Azure.AppService.GetCertificateArgs
{
Name = "example-app-service-certificate",
ResourceGroupName = "example-rg",
}));
this.AppServiceCertificateId = example.Apply(example => example.Id);
}
[Output("appServiceCertificateId")]
public Output<string> AppServiceCertificateId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := appservice.LookupCertificate(ctx, &appservice.LookupCertificateArgs{
Name: "example-app-service-certificate",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("appServiceCertificateId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.appservice.get_certificate(name="example-app-service-certificate",
resource_group_name="example-rg")
pulumi.export("appServiceCertificateId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getCertificate({
name: "example-app-service-certificate",
resourceGroupName: "example-rg",
});
export const appServiceCertificateId = example.then(example => example.id);Using GetCertificate
function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>function get_certificate(name=None, resource_group_name=None, tags=None, opts=None)func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)Note: This function is named
LookupCertificatein the Go SDK.
public static class GetCertificate {
public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the certificate.
- Resource
Group stringName The name of the resource group in which to create the certificate.
- Dictionary<string, string>
- Name string
Specifies the name of the certificate.
- Resource
Group stringName The name of the resource group in which to create the certificate.
- map[string]string
- name string
Specifies the name of the certificate.
- resource
Group stringName The name of the resource group in which to create the certificate.
- {[key: string]: string}
- name str
Specifies the name of the certificate.
- resource_
group_ strname The name of the resource group in which to create the certificate.
- Dict[str, str]
GetCertificate Result
The following output properties are available:
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names List<string> List of host names the certificate applies to.
- Id string
The provider-assigned unique ID for this managed resource.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Location string
- Name string
- Resource
Group stringName - Subject
Name string The subject name of the certificate.
- Thumbprint string
The thumbprint for the certificate.
- Dictionary<string, string>
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names []string List of host names the certificate applies to.
- Id string
The provider-assigned unique ID for this managed resource.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Location string
- Name string
- Resource
Group stringName - Subject
Name string The subject name of the certificate.
- Thumbprint string
The thumbprint for the certificate.
- map[string]string
- expiration
Date string The expiration date for the certificate.
- friendly
Name string The friendly name of the certificate.
- host
Names string[] List of host names the certificate applies to.
- id string
The provider-assigned unique ID for this managed resource.
- issue
Date string The issue date for the certificate.
- issuer string
The name of the certificate issuer.
- location string
- name string
- resource
Group stringName - subject
Name string The subject name of the certificate.
- thumbprint string
The thumbprint for the certificate.
- {[key: string]: string}
- expiration_
date str The expiration date for the certificate.
- friendly_
name str The friendly name of the certificate.
- host_
names List[str] List of host names the certificate applies to.
- id str
The provider-assigned unique ID for this managed resource.
- issue_
date str The issue date for the certificate.
- issuer str
The name of the certificate issuer.
- location str
- name str
- resource_
group_ strname - subject_
name str The subject name of the certificate.
- thumbprint str
The thumbprint for the certificate.
- Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.