GetCertificateOrder
Use this data source to access information about an existing App Service Certificate Order.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetCertificateOrder.InvokeAsync(new Azure.AppService.GetCertificateOrderArgs
{
Name = "example-cert-order",
ResourceGroupName = "example-resources",
}));
this.CertificateOrderId = example.Apply(example => example.Id);
}
[Output("certificateOrderId")]
public Output<string> CertificateOrderId { 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.LookupCertificateOrder(ctx, &appservice.LookupCertificateOrderArgs{
Name: "example-cert-order",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("certificateOrderId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.appservice.get_certificate_order(name="example-cert-order",
resource_group_name="example-resources")
pulumi.export("certificateOrderId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getCertificateOrder({
name: "example-cert-order",
resourceGroupName: "example-resources",
});
export const certificateOrderId = example.then(example => example.id);Using GetCertificateOrder
function getCertificateOrder(args: GetCertificateOrderArgs, opts?: InvokeOptions): Promise<GetCertificateOrderResult>function get_certificate_order(name=None, resource_group_name=None, opts=None)func LookupCertificateOrder(ctx *Context, args *LookupCertificateOrderArgs, opts ...InvokeOption) (*LookupCertificateOrderResult, error)Note: This function is named
LookupCertificateOrderin the Go SDK.
public static class GetCertificateOrder {
public static Task<GetCertificateOrderResult> InvokeAsync(GetCertificateOrderArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the App Service.
- Resource
Group stringName The Name of the Resource Group where the App Service exists.
- Name string
The name of the App Service.
- Resource
Group stringName The Name of the Resource Group where the App Service exists.
- name string
The name of the App Service.
- resource
Group stringName The Name of the Resource Group where the App Service exists.
- name str
The name of the App Service.
- resource_
group_ strname The Name of the Resource Group where the App Service exists.
GetCertificateOrder Result
The following output properties are available:
- App
Service List<string>Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false.
- Certificates
List<Get
Certificate Order Certificate> State of the Key Vault secret. A
certificatesblock as defined below.- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Id string
The provider-assigned unique ID for this managed resource.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Key
Size int Certificate key size.
- Location string
The Azure location where the App Service exists.
- Name string
- Product
Type string Certificate product type, such as
StandardorWildCard.- Resource
Group stringName - Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between 1 and 3).
- App
Service []stringCertificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false.
- Certificates
[]Get
Certificate Order Certificate State of the Key Vault secret. A
certificatesblock as defined below.- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Id string
The provider-assigned unique ID for this managed resource.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Key
Size int Certificate key size.
- Location string
The Azure location where the App Service exists.
- Name string
- Product
Type string Certificate product type, such as
StandardorWildCard.- Resource
Group stringName - Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- map[string]string
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between 1 and 3).
- app
Service string[]Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- auto
Renew boolean true if the certificate should be automatically renewed when it expires; otherwise, false.
- certificates
Get
Certificate Order Certificate[] State of the Key Vault secret. A
certificatesblock as defined below.- csr string
Last CSR that was created for this order.
- distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- domain
Verification stringToken Domain verification token.
- expiration
Time string Certificate expiration time.
- id string
The provider-assigned unique ID for this managed resource.
- intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- is
Private booleanKey External Whether the private key is external or not.
- key
Size number Certificate key size.
- location string
The Azure location where the App Service exists.
- name string
- product
Type string Certificate product type, such as
StandardorWildCard.- resource
Group stringName - root
Thumbprint string Certificate thumbprint for root certificate.
- signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- status string
Current order status.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- validity
In numberYears Duration in years (must be between 1 and 3).
- app_
service_ List[str]certificate_ not_ renewable_ reasons Reasons why App Service Certificate is not renewable at the current moment.
- auto_
renew bool true if the certificate should be automatically renewed when it expires; otherwise, false.
- certificates
List[Get
Certificate Order Certificate] State of the Key Vault secret. A
certificatesblock as defined below.- csr str
Last CSR that was created for this order.
- distinguished_
name str The Distinguished Name for the App Service Certificate Order.
- domain_
verification_ strtoken Domain verification token.
- expiration_
time str Certificate expiration time.
- id str
The provider-assigned unique ID for this managed resource.
- intermediate_
thumbprint str Certificate thumbprint intermediate certificate.
- is_
private_ boolkey_ external Whether the private key is external or not.
- key_
size float Certificate key size.
- location str
The Azure location where the App Service exists.
- name str
- product_
type str Certificate product type, such as
StandardorWildCard.- resource_
group_ strname - root_
thumbprint str Certificate thumbprint for root certificate.
- signed_
certificate_ strthumbprint Certificate thumbprint for signed certificate.
- status str
Current order status.
- Dict[str, str]
A mapping of tags to assign to the resource.
- validity_
in_ floatyears Duration in years (must be between 1 and 3).
Supporting Types
GetCertificateOrderCertificate
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Certificate
Name string The name of the App Service Certificate.
- Key
Vault stringId Key Vault resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Provisioning
State string Status of the Key Vault secret.
- Certificate
Name string The name of the App Service Certificate.
- Key
Vault stringId Key Vault resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Provisioning
State string Status of the Key Vault secret.
- certificate
Name string The name of the App Service Certificate.
- key
Vault stringId Key Vault resource Id.
- key
Vault stringSecret Name Key Vault secret name.
- provisioning
State string Status of the Key Vault secret.
- certificate
Name str The name of the App Service Certificate.
- key
Vault strSecret Name Key Vault secret name.
- key_
vault_ strid Key Vault resource Id.
- provisioning
State str Status of the Key Vault secret.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.