We recommend using Azure Native.
azure.appplatform.SpringCloudCertificate
Explore with Pulumi AI
Manages an Azure Spring Cloud Certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const current = azure.core.getClientConfig({});
const example = azuread.getServicePrincipal({
displayName: "Azure Spring Cloud Resource Provider",
});
const exampleKeyVault = new azure.keyvault.KeyVault("example", {
name: "keyvaultcertexample",
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
tenantId: current.then(current => current.tenantId),
skuName: "standard",
accessPolicies: [
{
tenantId: current.then(current => current.tenantId),
objectId: current.then(current => current.objectId),
secretPermissions: ["Set"],
certificatePermissions: [
"Create",
"Delete",
"Get",
"Update",
],
},
{
tenantId: current.then(current => current.tenantId),
objectId: example.then(example => example.objectId),
secretPermissions: [
"Get",
"List",
],
certificatePermissions: [
"Get",
"List",
],
},
],
});
const exampleCertificate = new azure.keyvault.Certificate("example", {
name: "cert-example",
keyVaultId: exampleKeyVault.id,
certificatePolicy: {
issuerParameters: {
name: "Self",
},
keyProperties: {
exportable: true,
keySize: 2048,
keyType: "RSA",
reuseKey: true,
},
lifetimeActions: [{
action: {
actionType: "AutoRenew",
},
trigger: {
daysBeforeExpiry: 30,
},
}],
secretProperties: {
contentType: "application/x-pkcs12",
},
x509CertificateProperties: {
keyUsages: [
"cRLSign",
"dataEncipherment",
"digitalSignature",
"keyAgreement",
"keyCertSign",
"keyEncipherment",
],
subject: "CN=contoso.com",
validityInMonths: 12,
},
},
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
name: "example-springcloud",
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleSpringCloudCertificate = new azure.appplatform.SpringCloudCertificate("example", {
name: "example-scc",
resourceGroupName: exampleSpringCloudService.resourceGroupName,
serviceName: exampleSpringCloudService.name,
keyVaultCertificateId: exampleCertificate.id,
excludePrivateKey: true,
});
import pulumi
import pulumi_azure as azure
import pulumi_azuread as azuread
example_resource_group = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
current = azure.core.get_client_config()
example = azuread.get_service_principal(display_name="Azure Spring Cloud Resource Provider")
example_key_vault = azure.keyvault.KeyVault("example",
name="keyvaultcertexample",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
tenant_id=current.tenant_id,
sku_name="standard",
access_policies=[
{
"tenant_id": current.tenant_id,
"object_id": current.object_id,
"secret_permissions": ["Set"],
"certificate_permissions": [
"Create",
"Delete",
"Get",
"Update",
],
},
{
"tenant_id": current.tenant_id,
"object_id": example.object_id,
"secret_permissions": [
"Get",
"List",
],
"certificate_permissions": [
"Get",
"List",
],
},
])
example_certificate = azure.keyvault.Certificate("example",
name="cert-example",
key_vault_id=example_key_vault.id,
certificate_policy={
"issuer_parameters": {
"name": "Self",
},
"key_properties": {
"exportable": True,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": True,
},
"lifetime_actions": [{
"action": {
"action_type": "AutoRenew",
},
"trigger": {
"days_before_expiry": 30,
},
}],
"secret_properties": {
"content_type": "application/x-pkcs12",
},
"x509_certificate_properties": {
"key_usages": [
"cRLSign",
"dataEncipherment",
"digitalSignature",
"keyAgreement",
"keyCertSign",
"keyEncipherment",
],
"subject": "CN=contoso.com",
"validity_in_months": 12,
},
})
example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
name="example-springcloud",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_spring_cloud_certificate = azure.appplatform.SpringCloudCertificate("example",
name="example-scc",
resource_group_name=example_spring_cloud_service.resource_group_name,
service_name=example_spring_cloud_service.name,
key_vault_certificate_id=example_certificate.id,
exclude_private_key=True)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
current, err := core.GetClientConfig(ctx, nil, nil)
if err != nil {
return err
}
example, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
DisplayName: pulumi.StringRef("Azure Spring Cloud Resource Provider"),
}, nil)
if err != nil {
return err
}
exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
Name: pulumi.String("keyvaultcertexample"),
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
TenantId: pulumi.String(current.TenantId),
SkuName: pulumi.String("standard"),
AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
&keyvault.KeyVaultAccessPolicyArgs{
TenantId: pulumi.String(current.TenantId),
ObjectId: pulumi.String(current.ObjectId),
SecretPermissions: pulumi.StringArray{
pulumi.String("Set"),
},
CertificatePermissions: pulumi.StringArray{
pulumi.String("Create"),
pulumi.String("Delete"),
pulumi.String("Get"),
pulumi.String("Update"),
},
},
&keyvault.KeyVaultAccessPolicyArgs{
TenantId: pulumi.String(current.TenantId),
ObjectId: pulumi.String(example.ObjectId),
SecretPermissions: pulumi.StringArray{
pulumi.String("Get"),
pulumi.String("List"),
},
CertificatePermissions: pulumi.StringArray{
pulumi.String("Get"),
pulumi.String("List"),
},
},
},
})
if err != nil {
return err
}
exampleCertificate, err := keyvault.NewCertificate(ctx, "example", &keyvault.CertificateArgs{
Name: pulumi.String("cert-example"),
KeyVaultId: exampleKeyVault.ID(),
CertificatePolicy: &keyvault.CertificateCertificatePolicyArgs{
IssuerParameters: &keyvault.CertificateCertificatePolicyIssuerParametersArgs{
Name: pulumi.String("Self"),
},
KeyProperties: &keyvault.CertificateCertificatePolicyKeyPropertiesArgs{
Exportable: pulumi.Bool(true),
KeySize: pulumi.Int(2048),
KeyType: pulumi.String("RSA"),
ReuseKey: pulumi.Bool(true),
},
LifetimeActions: keyvault.CertificateCertificatePolicyLifetimeActionArray{
&keyvault.CertificateCertificatePolicyLifetimeActionArgs{
Action: &keyvault.CertificateCertificatePolicyLifetimeActionActionArgs{
ActionType: pulumi.String("AutoRenew"),
},
Trigger: &keyvault.CertificateCertificatePolicyLifetimeActionTriggerArgs{
DaysBeforeExpiry: pulumi.Int(30),
},
},
},
SecretProperties: &keyvault.CertificateCertificatePolicySecretPropertiesArgs{
ContentType: pulumi.String("application/x-pkcs12"),
},
X509CertificateProperties: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesArgs{
KeyUsages: pulumi.StringArray{
pulumi.String("cRLSign"),
pulumi.String("dataEncipherment"),
pulumi.String("digitalSignature"),
pulumi.String("keyAgreement"),
pulumi.String("keyCertSign"),
pulumi.String("keyEncipherment"),
},
Subject: pulumi.String("CN=contoso.com"),
ValidityInMonths: pulumi.Int(12),
},
},
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
Name: pulumi.String("example-springcloud"),
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudCertificate(ctx, "example", &appplatform.SpringCloudCertificateArgs{
Name: pulumi.String("example-scc"),
ResourceGroupName: exampleSpringCloudService.ResourceGroupName,
ServiceName: exampleSpringCloudService.Name,
KeyVaultCertificateId: exampleCertificate.ID(),
ExcludePrivateKey: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var current = Azure.Core.GetClientConfig.Invoke();
var example = AzureAD.GetServicePrincipal.Invoke(new()
{
DisplayName = "Azure Spring Cloud Resource Provider",
});
var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
{
Name = "keyvaultcertexample",
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
SkuName = "standard",
AccessPolicies = new[]
{
new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
{
TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
SecretPermissions = new[]
{
"Set",
},
CertificatePermissions = new[]
{
"Create",
"Delete",
"Get",
"Update",
},
},
new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
{
TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
ObjectId = example.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
SecretPermissions = new[]
{
"Get",
"List",
},
CertificatePermissions = new[]
{
"Get",
"List",
},
},
},
});
var exampleCertificate = new Azure.KeyVault.Certificate("example", new()
{
Name = "cert-example",
KeyVaultId = exampleKeyVault.Id,
CertificatePolicy = new Azure.KeyVault.Inputs.CertificateCertificatePolicyArgs
{
IssuerParameters = new Azure.KeyVault.Inputs.CertificateCertificatePolicyIssuerParametersArgs
{
Name = "Self",
},
KeyProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyKeyPropertiesArgs
{
Exportable = true,
KeySize = 2048,
KeyType = "RSA",
ReuseKey = true,
},
LifetimeActions = new[]
{
new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionArgs
{
Action = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionActionArgs
{
ActionType = "AutoRenew",
},
Trigger = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs
{
DaysBeforeExpiry = 30,
},
},
},
SecretProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicySecretPropertiesArgs
{
ContentType = "application/x-pkcs12",
},
X509CertificateProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs
{
KeyUsages = new[]
{
"cRLSign",
"dataEncipherment",
"digitalSignature",
"keyAgreement",
"keyCertSign",
"keyEncipherment",
},
Subject = "CN=contoso.com",
ValidityInMonths = 12,
},
},
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
{
Name = "example-springcloud",
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleSpringCloudCertificate = new Azure.AppPlatform.SpringCloudCertificate("example", new()
{
Name = "example-scc",
ResourceGroupName = exampleSpringCloudService.ResourceGroupName,
ServiceName = exampleSpringCloudService.Name,
KeyVaultCertificateId = exampleCertificate.Id,
ExcludePrivateKey = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import com.pulumi.azure.keyvault.KeyVault;
import com.pulumi.azure.keyvault.KeyVaultArgs;
import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
import com.pulumi.azure.keyvault.Certificate;
import com.pulumi.azure.keyvault.CertificateArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyIssuerParametersArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyKeyPropertiesArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicySecretPropertiesArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudCertificate;
import com.pulumi.azure.appplatform.SpringCloudCertificateArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
final var current = CoreFunctions.getClientConfig();
final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
.displayName("Azure Spring Cloud Resource Provider")
.build());
var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
.name("keyvaultcertexample")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.skuName("standard")
.accessPolicies(
KeyVaultAccessPolicyArgs.builder()
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.secretPermissions("Set")
.certificatePermissions(
"Create",
"Delete",
"Get",
"Update")
.build(),
KeyVaultAccessPolicyArgs.builder()
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.objectId(example.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
.secretPermissions(
"Get",
"List")
.certificatePermissions(
"Get",
"List")
.build())
.build());
var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
.name("cert-example")
.keyVaultId(exampleKeyVault.id())
.certificatePolicy(CertificateCertificatePolicyArgs.builder()
.issuerParameters(CertificateCertificatePolicyIssuerParametersArgs.builder()
.name("Self")
.build())
.keyProperties(CertificateCertificatePolicyKeyPropertiesArgs.builder()
.exportable(true)
.keySize(2048)
.keyType("RSA")
.reuseKey(true)
.build())
.lifetimeActions(CertificateCertificatePolicyLifetimeActionArgs.builder()
.action(CertificateCertificatePolicyLifetimeActionActionArgs.builder()
.actionType("AutoRenew")
.build())
.trigger(CertificateCertificatePolicyLifetimeActionTriggerArgs.builder()
.daysBeforeExpiry(30)
.build())
.build())
.secretProperties(CertificateCertificatePolicySecretPropertiesArgs.builder()
.contentType("application/x-pkcs12")
.build())
.x509CertificateProperties(CertificateCertificatePolicyX509CertificatePropertiesArgs.builder()
.keyUsages(
"cRLSign",
"dataEncipherment",
"digitalSignature",
"keyAgreement",
"keyCertSign",
"keyEncipherment")
.subject("CN=contoso.com")
.validityInMonths(12)
.build())
.build())
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("example-springcloud")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleSpringCloudCertificate = new SpringCloudCertificate("exampleSpringCloudCertificate", SpringCloudCertificateArgs.builder()
.name("example-scc")
.resourceGroupName(exampleSpringCloudService.resourceGroupName())
.serviceName(exampleSpringCloudService.name())
.keyVaultCertificateId(exampleCertificate.id())
.excludePrivateKey(true)
.build());
}
}
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
name: example
properties:
name: example-resources
location: West Europe
exampleKeyVault:
type: azure:keyvault:KeyVault
name: example
properties:
name: keyvaultcertexample
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
tenantId: ${current.tenantId}
skuName: standard
accessPolicies:
- tenantId: ${current.tenantId}
objectId: ${current.objectId}
secretPermissions:
- Set
certificatePermissions:
- Create
- Delete
- Get
- Update
- tenantId: ${current.tenantId}
objectId: ${example.objectId}
secretPermissions:
- Get
- List
certificatePermissions:
- Get
- List
exampleCertificate:
type: azure:keyvault:Certificate
name: example
properties:
name: cert-example
keyVaultId: ${exampleKeyVault.id}
certificatePolicy:
issuerParameters:
name: Self
keyProperties:
exportable: true
keySize: 2048
keyType: RSA
reuseKey: true
lifetimeActions:
- action:
actionType: AutoRenew
trigger:
daysBeforeExpiry: 30
secretProperties:
contentType: application/x-pkcs12
x509CertificateProperties:
keyUsages:
- cRLSign
- dataEncipherment
- digitalSignature
- keyAgreement
- keyCertSign
- keyEncipherment
subject: CN=contoso.com
validityInMonths: 12
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: example-springcloud
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
exampleSpringCloudCertificate:
type: azure:appplatform:SpringCloudCertificate
name: example
properties:
name: example-scc
resourceGroupName: ${exampleSpringCloudService.resourceGroupName}
serviceName: ${exampleSpringCloudService.name}
keyVaultCertificateId: ${exampleCertificate.id}
excludePrivateKey: true
variables:
current:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
example:
fn::invoke:
Function: azuread:getServicePrincipal
Arguments:
displayName: Azure Spring Cloud Resource Provider
Create SpringCloudCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SpringCloudCertificate(name: string, args: SpringCloudCertificateArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudCertificate(resource_name: str,
args: SpringCloudCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SpringCloudCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
certificate_content: Optional[str] = None,
exclude_private_key: Optional[bool] = None,
key_vault_certificate_id: Optional[str] = None,
name: Optional[str] = None)
func NewSpringCloudCertificate(ctx *Context, name string, args SpringCloudCertificateArgs, opts ...ResourceOption) (*SpringCloudCertificate, error)
public SpringCloudCertificate(string name, SpringCloudCertificateArgs args, CustomResourceOptions? opts = null)
public SpringCloudCertificate(String name, SpringCloudCertificateArgs args)
public SpringCloudCertificate(String name, SpringCloudCertificateArgs args, CustomResourceOptions options)
type: azure:appplatform:SpringCloudCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SpringCloudCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SpringCloudCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SpringCloudCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpringCloudCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var springCloudCertificateResource = new Azure.AppPlatform.SpringCloudCertificate("springCloudCertificateResource", new()
{
ResourceGroupName = "string",
ServiceName = "string",
CertificateContent = "string",
ExcludePrivateKey = false,
KeyVaultCertificateId = "string",
Name = "string",
});
example, err := appplatform.NewSpringCloudCertificate(ctx, "springCloudCertificateResource", &appplatform.SpringCloudCertificateArgs{
ResourceGroupName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
CertificateContent: pulumi.String("string"),
ExcludePrivateKey: pulumi.Bool(false),
KeyVaultCertificateId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var springCloudCertificateResource = new SpringCloudCertificate("springCloudCertificateResource", SpringCloudCertificateArgs.builder()
.resourceGroupName("string")
.serviceName("string")
.certificateContent("string")
.excludePrivateKey(false)
.keyVaultCertificateId("string")
.name("string")
.build());
spring_cloud_certificate_resource = azure.appplatform.SpringCloudCertificate("springCloudCertificateResource",
resource_group_name="string",
service_name="string",
certificate_content="string",
exclude_private_key=False,
key_vault_certificate_id="string",
name="string")
const springCloudCertificateResource = new azure.appplatform.SpringCloudCertificate("springCloudCertificateResource", {
resourceGroupName: "string",
serviceName: "string",
certificateContent: "string",
excludePrivateKey: false,
keyVaultCertificateId: "string",
name: "string",
});
type: azure:appplatform:SpringCloudCertificate
properties:
certificateContent: string
excludePrivateKey: false
keyVaultCertificateId: string
name: string
resourceGroupName: string
serviceName: string
SpringCloudCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SpringCloudCertificate resource accepts the following input properties:
- Resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- Exclude
Private boolKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - Key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- Exclude
Private boolKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - Key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name String - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- certificate
Content String - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private BooleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault StringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private booleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service_
name str - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- certificate_
content str - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude_
private_ boolkey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key_
vault_ strcertificate_ id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name String - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- certificate
Content String - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private BooleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault StringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpringCloudCertificate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Thumbprint string
- The thumbprint of the Spring Cloud certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Thumbprint string
- The thumbprint of the Spring Cloud certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- thumbprint String
- The thumbprint of the Spring Cloud certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- thumbprint string
- The thumbprint of the Spring Cloud certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- thumbprint str
- The thumbprint of the Spring Cloud certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- thumbprint String
- The thumbprint of the Spring Cloud certificate.
Look up Existing SpringCloudCertificate Resource
Get an existing SpringCloudCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpringCloudCertificateState, opts?: CustomResourceOptions): SpringCloudCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_content: Optional[str] = None,
exclude_private_key: Optional[bool] = None,
key_vault_certificate_id: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
thumbprint: Optional[str] = None) -> SpringCloudCertificate
func GetSpringCloudCertificate(ctx *Context, name string, id IDInput, state *SpringCloudCertificateState, opts ...ResourceOption) (*SpringCloudCertificate, error)
public static SpringCloudCertificate Get(string name, Input<string> id, SpringCloudCertificateState? state, CustomResourceOptions? opts = null)
public static SpringCloudCertificate get(String name, Output<String> id, SpringCloudCertificateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- Exclude
Private boolKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - Key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Thumbprint string
- The thumbprint of the Spring Cloud certificate.
- Certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- Exclude
Private boolKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - Key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- Service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Thumbprint string
- The thumbprint of the Spring Cloud certificate.
- certificate
Content String - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private BooleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault StringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name String - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- thumbprint String
- The thumbprint of the Spring Cloud certificate.
- certificate
Content string - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private booleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault stringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name string - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- thumbprint string
- The thumbprint of the Spring Cloud certificate.
- certificate_
content str - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude_
private_ boolkey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key_
vault_ strcertificate_ id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service_
name str - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- thumbprint str
- The thumbprint of the Spring Cloud certificate.
- certificate
Content String - The content of uploaded certificate. Changing this forces a new resource to be created.
- exclude
Private BooleanKey - Specifies whether the private key should be excluded from the Key Vault Certificate. Changing this forces a new resource to be created. Defaults to
false
. - key
Vault StringCertificate Id - Specifies the ID of the Key Vault Certificate resource. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Spring Cloud Certificate. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the name of the resource group in which to create the Spring Cloud Certificate. Changing this forces a new resource to be created.
- service
Name String - Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- thumbprint String
- The thumbprint of the Spring Cloud certificate.
Import
Spring Cloud Certificate can be imported using the resource id
, e.g.
$ pulumi import azure:appplatform/springCloudCertificate:SpringCloudCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.AppPlatform/spring/spring1/certificates/cert1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.