azure logo
Azure Classic v5.43.0, May 6 23

azure.appservice.CertificateBinding

Explore with Pulumi AI

Manages an App Service Certificate Binding.

Create CertificateBinding Resource

new CertificateBinding(name: string, args: CertificateBindingArgs, opts?: CustomResourceOptions);
@overload
def CertificateBinding(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       certificate_id: Optional[str] = None,
                       hostname_binding_id: Optional[str] = None,
                       ssl_state: Optional[str] = None)
@overload
def CertificateBinding(resource_name: str,
                       args: CertificateBindingArgs,
                       opts: Optional[ResourceOptions] = None)
func NewCertificateBinding(ctx *Context, name string, args CertificateBindingArgs, opts ...ResourceOption) (*CertificateBinding, error)
public CertificateBinding(string name, CertificateBindingArgs args, CustomResourceOptions? opts = null)
public CertificateBinding(String name, CertificateBindingArgs args)
public CertificateBinding(String name, CertificateBindingArgs args, CustomResourceOptions options)
type: azure:appservice:CertificateBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CertificateBindingArgs
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 CertificateBindingArgs
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 CertificateBindingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CertificateBindingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CertificateBindingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CertificateBinding 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 CertificateBinding resource accepts the following input properties:

CertificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

HostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

SslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

CertificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

HostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

SslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

certificateId String

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostnameBindingId String

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState String

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

certificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

certificate_id str

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostname_binding_id str

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

ssl_state str

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

certificateId String

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostnameBindingId String

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState String

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the CertificateBinding resource produces the following output properties:

AppServiceName string

The name of the App Service to which the certificate was bound.

Hostname string

The hostname of the bound certificate.

Id string

The provider-assigned unique ID for this managed resource.

Thumbprint string

The certificate thumbprint.

AppServiceName string

The name of the App Service to which the certificate was bound.

Hostname string

The hostname of the bound certificate.

Id string

The provider-assigned unique ID for this managed resource.

Thumbprint string

The certificate thumbprint.

appServiceName String

The name of the App Service to which the certificate was bound.

hostname String

The hostname of the bound certificate.

id String

The provider-assigned unique ID for this managed resource.

thumbprint String

The certificate thumbprint.

appServiceName string

The name of the App Service to which the certificate was bound.

hostname string

The hostname of the bound certificate.

id string

The provider-assigned unique ID for this managed resource.

thumbprint string

The certificate thumbprint.

app_service_name str

The name of the App Service to which the certificate was bound.

hostname str

The hostname of the bound certificate.

id str

The provider-assigned unique ID for this managed resource.

thumbprint str

The certificate thumbprint.

appServiceName String

The name of the App Service to which the certificate was bound.

hostname String

The hostname of the bound certificate.

id String

The provider-assigned unique ID for this managed resource.

thumbprint String

The certificate thumbprint.

Look up Existing CertificateBinding Resource

Get an existing CertificateBinding 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?: CertificateBindingState, opts?: CustomResourceOptions): CertificateBinding
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_service_name: Optional[str] = None,
        certificate_id: Optional[str] = None,
        hostname: Optional[str] = None,
        hostname_binding_id: Optional[str] = None,
        ssl_state: Optional[str] = None,
        thumbprint: Optional[str] = None) -> CertificateBinding
func GetCertificateBinding(ctx *Context, name string, id IDInput, state *CertificateBindingState, opts ...ResourceOption) (*CertificateBinding, error)
public static CertificateBinding Get(string name, Input<string> id, CertificateBindingState? state, CustomResourceOptions? opts = null)
public static CertificateBinding get(String name, Output<String> id, CertificateBindingState 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.
The following state arguments are supported:
AppServiceName string

The name of the App Service to which the certificate was bound.

CertificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

Hostname string

The hostname of the bound certificate.

HostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

SslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

Thumbprint string

The certificate thumbprint.

AppServiceName string

The name of the App Service to which the certificate was bound.

CertificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

Hostname string

The hostname of the bound certificate.

HostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

SslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

Thumbprint string

The certificate thumbprint.

appServiceName String

The name of the App Service to which the certificate was bound.

certificateId String

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostname String

The hostname of the bound certificate.

hostnameBindingId String

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState String

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

thumbprint String

The certificate thumbprint.

appServiceName string

The name of the App Service to which the certificate was bound.

certificateId string

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostname string

The hostname of the bound certificate.

hostnameBindingId string

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState string

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

thumbprint string

The certificate thumbprint.

app_service_name str

The name of the App Service to which the certificate was bound.

certificate_id str

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostname str

The hostname of the bound certificate.

hostname_binding_id str

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

ssl_state str

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

thumbprint str

The certificate thumbprint.

appServiceName String

The name of the App Service to which the certificate was bound.

certificateId String

The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created.

hostname String

The hostname of the bound certificate.

hostnameBindingId String

The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.

sslState String

The type of certificate binding. Allowed values are IpBasedEnabled or SniEnabled. Changing this forces a new App Service Certificate Binding to be created.

thumbprint String

The certificate thumbprint.

Import

App Service Certificate Bindings can be imported using the hostname_binding_id and the app_service_certificate_id , e.g.

 $ pulumi import azure:appservice/certificateBinding:CertificateBinding example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/hostNameBindings/mywebsite.com|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/certificates/mywebsite.com"

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.