We recommend using Azure Native.
Manages an Azure Spring Cloud Certificate.
!> Note: Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the azure.appplatform.SpringCloudCertificate resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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) -> SpringCloudCertificatefunc 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)resources: _: type: azure:appplatform:SpringCloudCertificate get: id: ${id}- 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
azurermTerraform Provider.
