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:
- Certificate
Id 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
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- Ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.
- Certificate
Id 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
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- Ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.
- certificate
Id 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
Binding StringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State String The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.
- certificate
Id 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
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. 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_ strid 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
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.
- certificate
Id 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
Binding StringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State String The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. 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:
- App
Service stringName 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 stringName 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 StringName 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 stringName 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_ strname 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.
- app
Service StringName 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.
- App
Service stringName The name of the App Service to which the certificate was bound.
- Certificate
Id 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.
- Hostname
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- Ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.- Thumbprint string
The certificate thumbprint.
- App
Service stringName The name of the App Service to which the certificate was bound.
- Certificate
Id 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.
- Hostname
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- Ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.- Thumbprint string
The certificate thumbprint.
- app
Service StringName The name of the App Service to which the certificate was bound.
- certificate
Id 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.
- hostname
Binding StringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State String The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.- thumbprint String
The certificate thumbprint.
- app
Service stringName The name of the App Service to which the certificate was bound.
- certificate
Id 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.
- hostname
Binding stringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State string The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.- thumbprint string
The certificate thumbprint.
- app_
service_ strname 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_ strid 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
orSniEnabled
. Changing this forces a new App Service Certificate Binding to be created.- thumbprint str
The certificate thumbprint.
- app
Service StringName The name of the App Service to which the certificate was bound.
- certificate
Id 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.
- hostname
Binding StringId The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created.
- ssl
State String The type of certificate binding. Allowed values are
IpBasedEnabled
orSniEnabled
. 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.