CertificateArgs

data class CertificateArgs(val canonicalName: Output<String>? = null, val domainValidationMethod: Output<String>? = null, val hostNames: Output<List<String>>? = null, val keyVaultId: Output<String>? = null, val keyVaultSecretName: Output<String>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val password: Output<String>? = null, val pfxBlob: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverFarmId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CertificateArgs>

SSL certificate for an app. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2022-09-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. 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/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create Or Update Certificate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificate = new AzureNative.Web.Certificate("certificate", new()
{
HostNames = new[]
{
"ServerCert",
},
Location = "East US",
Name = "testc6282",
Password = "<password>",
ResourceGroupName = "testrg123",
});
});
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewCertificate(ctx, "certificate", &web.CertificateArgs{
HostNames: pulumi.StringArray{
pulumi.String("ServerCert"),
},
Location: pulumi.String("East US"),
Name: pulumi.String("testc6282"),
Password: pulumi.String("<password>"),
ResourceGroupName: pulumi.String("testrg123"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.Certificate;
import com.pulumi.azurenative.web.CertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var certificate = new Certificate("certificate", CertificateArgs.builder()
.hostNames("ServerCert")
.location("East US")
.name("testc6282")
.password("<password>")
.resourceGroupName("testrg123")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:web:Certificate testc6282 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}

Constructors

Link copied to clipboard
constructor(canonicalName: Output<String>? = null, domainValidationMethod: Output<String>? = null, hostNames: Output<List<String>>? = null, keyVaultId: Output<String>? = null, keyVaultSecretName: Output<String>? = null, kind: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, password: Output<String>? = null, pfxBlob: Output<String>? = null, resourceGroupName: Output<String>? = null, serverFarmId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val canonicalName: Output<String>? = null

CNAME of the certificate to be issued via free certificate

Link copied to clipboard
val domainValidationMethod: Output<String>? = null

Method of domain validation for free cert

Link copied to clipboard
val hostNames: Output<List<String>>? = null

Host names the certificate applies to.

Link copied to clipboard
val keyVaultId: Output<String>? = null

Key Vault Csm resource Id.

Link copied to clipboard
val keyVaultSecretName: Output<String>? = null

Key Vault secret name.

Link copied to clipboard
val kind: Output<String>? = null

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.

Link copied to clipboard
val location: Output<String>? = null

Resource Location.

Link copied to clipboard
val name: Output<String>? = null

Name of the certificate.

Link copied to clipboard
val password: Output<String>? = null

Certificate password.

Link copied to clipboard
val pfxBlob: Output<String>? = null

Pfx blob.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group to which the resource belongs.

Link copied to clipboard
val serverFarmId: Output<String>? = null

Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs