1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. apimanagement
  6. CustomDomain

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a API Management Custom Domain.

    Disclaimers

    Note: It’s possible to define Custom Domains both within the azure.apimanagement.Service resource via the hostname_configurations block and by using this resource. However it’s not possible to use both methods to manage Custom Domains within an API Management Service, since there will be conflicts.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
            {
                Location = azurerm_resource_group.Test.Location,
                ResourceGroupName = azurerm_resource_group.Test.Name,
                PublisherName = "pub1",
                PublisherEmail = "pub1@email.com",
                SkuName = "Developer_1",
            });
            var exampleCertificate = new Azure.KeyVault.Certificate("exampleCertificate", new Azure.KeyVault.CertificateArgs
            {
                KeyVaultId = azurerm_key_vault.Test.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 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 = 
                        {
                            "cRLSign",
                            "dataEncipherment",
                            "digitalSignature",
                            "keyAgreement",
                            "keyCertSign",
                            "keyEncipherment",
                        },
                        Subject = "CN=api.example.com",
                        ValidityInMonths = 12,
                        SubjectAlternativeNames = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs
                        {
                            DnsNames = 
                            {
                                "api.example.com",
                                "portal.example.com",
                            },
                        },
                    },
                },
            });
            var exampleCustomDomain = new Azure.ApiManagement.CustomDomain("exampleCustomDomain", new Azure.ApiManagement.CustomDomainArgs
            {
                ApiManagementId = exampleService.Id,
                Proxies = 
                {
                    new Azure.ApiManagement.Inputs.CustomDomainProxyArgs
                    {
                        HostName = "api.example.com",
                        KeyVaultId = azurerm_key_vault_certificate.Test.Secret_id,
                    },
                },
                DeveloperPortals = 
                {
                    new Azure.ApiManagement.Inputs.CustomDomainDeveloperPortalArgs
                    {
                        HostName = "portal.example.com",
                        KeyVaultId = azurerm_key_vault_certificate.Test.Secret_id,
                    },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/apimanagement"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/keyvault"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleService, err := apimanagement.NewService(ctx, "exampleService", &apimanagement.ServiceArgs{
    			Location:          pulumi.Any(azurerm_resource_group.Test.Location),
    			ResourceGroupName: pulumi.Any(azurerm_resource_group.Test.Name),
    			PublisherName:     pulumi.String("pub1"),
    			PublisherEmail:    pulumi.String("pub1@email.com"),
    			SkuName:           pulumi.String("Developer_1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = keyvault.NewCertificate(ctx, "exampleCertificate", &keyvault.CertificateArgs{
    			KeyVaultId: pulumi.Any(azurerm_key_vault.Test.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=api.example.com"),
    					ValidityInMonths: pulumi.Int(12),
    					SubjectAlternativeNames: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs{
    						DnsNames: pulumi.StringArray{
    							pulumi.String("api.example.com"),
    							pulumi.String("portal.example.com"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apimanagement.NewCustomDomain(ctx, "exampleCustomDomain", &apimanagement.CustomDomainArgs{
    			ApiManagementId: exampleService.ID(),
    			Proxies: apimanagement.CustomDomainProxyArray{
    				&apimanagement.CustomDomainProxyArgs{
    					HostName:   pulumi.String("api.example.com"),
    					KeyVaultId: pulumi.Any(azurerm_key_vault_certificate.Test.Secret_id),
    				},
    			},
    			DeveloperPortals: apimanagement.CustomDomainDeveloperPortalArray{
    				&apimanagement.CustomDomainDeveloperPortalArgs{
    					HostName:   pulumi.String("portal.example.com"),
    					KeyVaultId: pulumi.Any(azurerm_key_vault_certificate.Test.Secret_id),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleService = new azure.apimanagement.Service("exampleService", {
        location: azurerm_resource_group.test.location,
        resourceGroupName: azurerm_resource_group.test.name,
        publisherName: "pub1",
        publisherEmail: "pub1@email.com",
        skuName: "Developer_1",
    });
    const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", {
        keyVaultId: azurerm_key_vault.test.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=api.example.com",
                validityInMonths: 12,
                subjectAlternativeNames: {
                    dnsNames: [
                        "api.example.com",
                        "portal.example.com",
                    ],
                },
            },
        },
    });
    const exampleCustomDomain = new azure.apimanagement.CustomDomain("exampleCustomDomain", {
        apiManagementId: exampleService.id,
        proxies: [{
            hostName: "api.example.com",
            keyVaultId: azurerm_key_vault_certificate.test.secret_id,
        }],
        developerPortals: [{
            hostName: "portal.example.com",
            keyVaultId: azurerm_key_vault_certificate.test.secret_id,
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_service = azure.apimanagement.Service("exampleService",
        location=azurerm_resource_group["test"]["location"],
        resource_group_name=azurerm_resource_group["test"]["name"],
        publisher_name="pub1",
        publisher_email="pub1@email.com",
        sku_name="Developer_1")
    example_certificate = azure.keyvault.Certificate("exampleCertificate",
        key_vault_id=azurerm_key_vault["test"]["id"],
        certificate_policy=azure.keyvault.CertificateCertificatePolicyArgs(
            issuer_parameters=azure.keyvault.CertificateCertificatePolicyIssuerParametersArgs(
                name="Self",
            ),
            key_properties=azure.keyvault.CertificateCertificatePolicyKeyPropertiesArgs(
                exportable=True,
                key_size=2048,
                key_type="RSA",
                reuse_key=True,
            ),
            lifetime_actions=[azure.keyvault.CertificateCertificatePolicyLifetimeActionArgs(
                action=azure.keyvault.CertificateCertificatePolicyLifetimeActionActionArgs(
                    action_type="AutoRenew",
                ),
                trigger=azure.keyvault.CertificateCertificatePolicyLifetimeActionTriggerArgs(
                    days_before_expiry=30,
                ),
            )],
            secret_properties=azure.keyvault.CertificateCertificatePolicySecretPropertiesArgs(
                content_type="application/x-pkcs12",
            ),
            x509_certificate_properties=azure.keyvault.CertificateCertificatePolicyX509CertificatePropertiesArgs(
                key_usages=[
                    "cRLSign",
                    "dataEncipherment",
                    "digitalSignature",
                    "keyAgreement",
                    "keyCertSign",
                    "keyEncipherment",
                ],
                subject="CN=api.example.com",
                validity_in_months=12,
                subject_alternative_names=azure.keyvault.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs(
                    dns_names=[
                        "api.example.com",
                        "portal.example.com",
                    ],
                ),
            ),
        ))
    example_custom_domain = azure.apimanagement.CustomDomain("exampleCustomDomain",
        api_management_id=example_service.id,
        proxies=[azure.apimanagement.CustomDomainProxyArgs(
            host_name="api.example.com",
            key_vault_id=azurerm_key_vault_certificate["test"]["secret_id"],
        )],
        developer_portals=[azure.apimanagement.CustomDomainDeveloperPortalArgs(
            host_name="portal.example.com",
            key_vault_id=azurerm_key_vault_certificate["test"]["secret_id"],
        )])
    

    Example coming soon!

    Create CustomDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CustomDomain(name: string, args: CustomDomainArgs, opts?: CustomResourceOptions);
    @overload
    def CustomDomain(resource_name: str,
                     args: CustomDomainArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomDomain(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     api_management_id: Optional[str] = None,
                     developer_portals: Optional[Sequence[CustomDomainDeveloperPortalArgs]] = None,
                     managements: Optional[Sequence[CustomDomainManagementArgs]] = None,
                     portals: Optional[Sequence[CustomDomainPortalArgs]] = None,
                     proxies: Optional[Sequence[CustomDomainProxyArgs]] = None,
                     scms: Optional[Sequence[CustomDomainScmArgs]] = None)
    func NewCustomDomain(ctx *Context, name string, args CustomDomainArgs, opts ...ResourceOption) (*CustomDomain, error)
    public CustomDomain(string name, CustomDomainArgs args, CustomResourceOptions? opts = null)
    public CustomDomain(String name, CustomDomainArgs args)
    public CustomDomain(String name, CustomDomainArgs args, CustomResourceOptions options)
    
    type: azure:apimanagement:CustomDomain
    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 CustomDomainArgs
    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 CustomDomainArgs
    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 CustomDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomDomainArgs
    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 customDomainResource = new Azure.ApiManagement.CustomDomain("customDomainResource", new()
    {
        ApiManagementId = "string",
        DeveloperPortals = new[]
        {
            new Azure.ApiManagement.Inputs.CustomDomainDeveloperPortalArgs
            {
                HostName = "string",
                Certificate = "string",
                CertificatePassword = "string",
                Expiry = "string",
                KeyVaultId = "string",
                NegotiateClientCertificate = false,
                SslKeyvaultIdentityClientId = "string",
                Subject = "string",
                Thumbprint = "string",
            },
        },
        Managements = new[]
        {
            new Azure.ApiManagement.Inputs.CustomDomainManagementArgs
            {
                HostName = "string",
                Certificate = "string",
                CertificatePassword = "string",
                Expiry = "string",
                KeyVaultId = "string",
                NegotiateClientCertificate = false,
                SslKeyvaultIdentityClientId = "string",
                Subject = "string",
                Thumbprint = "string",
            },
        },
        Portals = new[]
        {
            new Azure.ApiManagement.Inputs.CustomDomainPortalArgs
            {
                HostName = "string",
                Certificate = "string",
                CertificatePassword = "string",
                Expiry = "string",
                KeyVaultId = "string",
                NegotiateClientCertificate = false,
                SslKeyvaultIdentityClientId = "string",
                Subject = "string",
                Thumbprint = "string",
            },
        },
        Scms = new[]
        {
            new Azure.ApiManagement.Inputs.CustomDomainScmArgs
            {
                HostName = "string",
                Certificate = "string",
                CertificatePassword = "string",
                Expiry = "string",
                KeyVaultId = "string",
                NegotiateClientCertificate = false,
                SslKeyvaultIdentityClientId = "string",
                Subject = "string",
                Thumbprint = "string",
            },
        },
    });
    
    example, err := apimanagement.NewCustomDomain(ctx, "customDomainResource", &apimanagement.CustomDomainArgs{
    	ApiManagementId: pulumi.String("string"),
    	DeveloperPortals: apimanagement.CustomDomainDeveloperPortalArray{
    		&apimanagement.CustomDomainDeveloperPortalArgs{
    			HostName:                    pulumi.String("string"),
    			Certificate:                 pulumi.String("string"),
    			CertificatePassword:         pulumi.String("string"),
    			Expiry:                      pulumi.String("string"),
    			KeyVaultId:                  pulumi.String("string"),
    			NegotiateClientCertificate:  pulumi.Bool(false),
    			SslKeyvaultIdentityClientId: pulumi.String("string"),
    			Subject:                     pulumi.String("string"),
    			Thumbprint:                  pulumi.String("string"),
    		},
    	},
    	Managements: apimanagement.CustomDomainManagementArray{
    		&apimanagement.CustomDomainManagementArgs{
    			HostName:                    pulumi.String("string"),
    			Certificate:                 pulumi.String("string"),
    			CertificatePassword:         pulumi.String("string"),
    			Expiry:                      pulumi.String("string"),
    			KeyVaultId:                  pulumi.String("string"),
    			NegotiateClientCertificate:  pulumi.Bool(false),
    			SslKeyvaultIdentityClientId: pulumi.String("string"),
    			Subject:                     pulumi.String("string"),
    			Thumbprint:                  pulumi.String("string"),
    		},
    	},
    	Portals: apimanagement.CustomDomainPortalArray{
    		&apimanagement.CustomDomainPortalArgs{
    			HostName:                    pulumi.String("string"),
    			Certificate:                 pulumi.String("string"),
    			CertificatePassword:         pulumi.String("string"),
    			Expiry:                      pulumi.String("string"),
    			KeyVaultId:                  pulumi.String("string"),
    			NegotiateClientCertificate:  pulumi.Bool(false),
    			SslKeyvaultIdentityClientId: pulumi.String("string"),
    			Subject:                     pulumi.String("string"),
    			Thumbprint:                  pulumi.String("string"),
    		},
    	},
    	Scms: apimanagement.CustomDomainScmArray{
    		&apimanagement.CustomDomainScmArgs{
    			HostName:                    pulumi.String("string"),
    			Certificate:                 pulumi.String("string"),
    			CertificatePassword:         pulumi.String("string"),
    			Expiry:                      pulumi.String("string"),
    			KeyVaultId:                  pulumi.String("string"),
    			NegotiateClientCertificate:  pulumi.Bool(false),
    			SslKeyvaultIdentityClientId: pulumi.String("string"),
    			Subject:                     pulumi.String("string"),
    			Thumbprint:                  pulumi.String("string"),
    		},
    	},
    })
    
    var customDomainResource = new CustomDomain("customDomainResource", CustomDomainArgs.builder()
        .apiManagementId("string")
        .developerPortals(CustomDomainDeveloperPortalArgs.builder()
            .hostName("string")
            .certificate("string")
            .certificatePassword("string")
            .expiry("string")
            .keyVaultId("string")
            .negotiateClientCertificate(false)
            .sslKeyvaultIdentityClientId("string")
            .subject("string")
            .thumbprint("string")
            .build())
        .managements(CustomDomainManagementArgs.builder()
            .hostName("string")
            .certificate("string")
            .certificatePassword("string")
            .expiry("string")
            .keyVaultId("string")
            .negotiateClientCertificate(false)
            .sslKeyvaultIdentityClientId("string")
            .subject("string")
            .thumbprint("string")
            .build())
        .portals(CustomDomainPortalArgs.builder()
            .hostName("string")
            .certificate("string")
            .certificatePassword("string")
            .expiry("string")
            .keyVaultId("string")
            .negotiateClientCertificate(false)
            .sslKeyvaultIdentityClientId("string")
            .subject("string")
            .thumbprint("string")
            .build())
        .scms(CustomDomainScmArgs.builder()
            .hostName("string")
            .certificate("string")
            .certificatePassword("string")
            .expiry("string")
            .keyVaultId("string")
            .negotiateClientCertificate(false)
            .sslKeyvaultIdentityClientId("string")
            .subject("string")
            .thumbprint("string")
            .build())
        .build());
    
    custom_domain_resource = azure.apimanagement.CustomDomain("customDomainResource",
        api_management_id="string",
        developer_portals=[{
            "host_name": "string",
            "certificate": "string",
            "certificate_password": "string",
            "expiry": "string",
            "key_vault_id": "string",
            "negotiate_client_certificate": False,
            "ssl_keyvault_identity_client_id": "string",
            "subject": "string",
            "thumbprint": "string",
        }],
        managements=[{
            "host_name": "string",
            "certificate": "string",
            "certificate_password": "string",
            "expiry": "string",
            "key_vault_id": "string",
            "negotiate_client_certificate": False,
            "ssl_keyvault_identity_client_id": "string",
            "subject": "string",
            "thumbprint": "string",
        }],
        portals=[{
            "host_name": "string",
            "certificate": "string",
            "certificate_password": "string",
            "expiry": "string",
            "key_vault_id": "string",
            "negotiate_client_certificate": False,
            "ssl_keyvault_identity_client_id": "string",
            "subject": "string",
            "thumbprint": "string",
        }],
        scms=[{
            "host_name": "string",
            "certificate": "string",
            "certificate_password": "string",
            "expiry": "string",
            "key_vault_id": "string",
            "negotiate_client_certificate": False,
            "ssl_keyvault_identity_client_id": "string",
            "subject": "string",
            "thumbprint": "string",
        }])
    
    const customDomainResource = new azure.apimanagement.CustomDomain("customDomainResource", {
        apiManagementId: "string",
        developerPortals: [{
            hostName: "string",
            certificate: "string",
            certificatePassword: "string",
            expiry: "string",
            keyVaultId: "string",
            negotiateClientCertificate: false,
            sslKeyvaultIdentityClientId: "string",
            subject: "string",
            thumbprint: "string",
        }],
        managements: [{
            hostName: "string",
            certificate: "string",
            certificatePassword: "string",
            expiry: "string",
            keyVaultId: "string",
            negotiateClientCertificate: false,
            sslKeyvaultIdentityClientId: "string",
            subject: "string",
            thumbprint: "string",
        }],
        portals: [{
            hostName: "string",
            certificate: "string",
            certificatePassword: "string",
            expiry: "string",
            keyVaultId: "string",
            negotiateClientCertificate: false,
            sslKeyvaultIdentityClientId: "string",
            subject: "string",
            thumbprint: "string",
        }],
        scms: [{
            hostName: "string",
            certificate: "string",
            certificatePassword: "string",
            expiry: "string",
            keyVaultId: "string",
            negotiateClientCertificate: false,
            sslKeyvaultIdentityClientId: "string",
            subject: "string",
            thumbprint: "string",
        }],
    });
    
    type: azure:apimanagement:CustomDomain
    properties:
        apiManagementId: string
        developerPortals:
            - certificate: string
              certificatePassword: string
              expiry: string
              hostName: string
              keyVaultId: string
              negotiateClientCertificate: false
              sslKeyvaultIdentityClientId: string
              subject: string
              thumbprint: string
        managements:
            - certificate: string
              certificatePassword: string
              expiry: string
              hostName: string
              keyVaultId: string
              negotiateClientCertificate: false
              sslKeyvaultIdentityClientId: string
              subject: string
              thumbprint: string
        portals:
            - certificate: string
              certificatePassword: string
              expiry: string
              hostName: string
              keyVaultId: string
              negotiateClientCertificate: false
              sslKeyvaultIdentityClientId: string
              subject: string
              thumbprint: string
        scms:
            - certificate: string
              certificatePassword: string
              expiry: string
              hostName: string
              keyVaultId: string
              negotiateClientCertificate: false
              sslKeyvaultIdentityClientId: string
              subject: string
              thumbprint: string
    

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

    ApiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    DeveloperPortals List<CustomDomainDeveloperPortal>
    One or more developer_portal blocks as defined below.
    Managements List<CustomDomainManagement>
    One or more management blocks as defined below.
    Portals List<CustomDomainPortal>
    One or more portal blocks as defined below.
    Proxies List<CustomDomainProxy>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    Scms List<CustomDomainScm>
    One or more scm blocks as defined below.
    ApiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    DeveloperPortals []CustomDomainDeveloperPortalArgs
    One or more developer_portal blocks as defined below.
    Managements []CustomDomainManagementArgs
    One or more management blocks as defined below.
    Portals []CustomDomainPortalArgs
    One or more portal blocks as defined below.
    Proxies []CustomDomainProxyArgs
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    Scms []CustomDomainScmArgs
    One or more scm blocks as defined below.
    apiManagementId String
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals List<CustomDomainDeveloperPortal>
    One or more developer_portal blocks as defined below.
    managements List<CustomDomainManagement>
    One or more management blocks as defined below.
    portals List<CustomDomainPortal>
    One or more portal blocks as defined below.
    proxies List<CustomDomainProxy>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms List<CustomDomainScm>
    One or more scm blocks as defined below.
    apiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals CustomDomainDeveloperPortal[]
    One or more developer_portal blocks as defined below.
    managements CustomDomainManagement[]
    One or more management blocks as defined below.
    portals CustomDomainPortal[]
    One or more portal blocks as defined below.
    proxies CustomDomainProxy[]
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms CustomDomainScm[]
    One or more scm blocks as defined below.
    api_management_id str
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developer_portals Sequence[CustomDomainDeveloperPortalArgs]
    One or more developer_portal blocks as defined below.
    managements Sequence[CustomDomainManagementArgs]
    One or more management blocks as defined below.
    portals Sequence[CustomDomainPortalArgs]
    One or more portal blocks as defined below.
    proxies Sequence[CustomDomainProxyArgs]
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms Sequence[CustomDomainScmArgs]
    One or more scm blocks as defined below.
    apiManagementId String
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals List<Property Map>
    One or more developer_portal blocks as defined below.
    managements List<Property Map>
    One or more management blocks as defined below.
    portals List<Property Map>
    One or more portal blocks as defined below.
    proxies List<Property Map>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms List<Property Map>
    One or more scm blocks as defined below.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CustomDomain Resource

    Get an existing CustomDomain 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?: CustomDomainState, opts?: CustomResourceOptions): CustomDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_management_id: Optional[str] = None,
            developer_portals: Optional[Sequence[CustomDomainDeveloperPortalArgs]] = None,
            managements: Optional[Sequence[CustomDomainManagementArgs]] = None,
            portals: Optional[Sequence[CustomDomainPortalArgs]] = None,
            proxies: Optional[Sequence[CustomDomainProxyArgs]] = None,
            scms: Optional[Sequence[CustomDomainScmArgs]] = None) -> CustomDomain
    func GetCustomDomain(ctx *Context, name string, id IDInput, state *CustomDomainState, opts ...ResourceOption) (*CustomDomain, error)
    public static CustomDomain Get(string name, Input<string> id, CustomDomainState? state, CustomResourceOptions? opts = null)
    public static CustomDomain get(String name, Output<String> id, CustomDomainState state, CustomResourceOptions options)
    resources:  _:    type: azure:apimanagement:CustomDomain    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.
    The following state arguments are supported:
    ApiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    DeveloperPortals List<CustomDomainDeveloperPortal>
    One or more developer_portal blocks as defined below.
    Managements List<CustomDomainManagement>
    One or more management blocks as defined below.
    Portals List<CustomDomainPortal>
    One or more portal blocks as defined below.
    Proxies List<CustomDomainProxy>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    Scms List<CustomDomainScm>
    One or more scm blocks as defined below.
    ApiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    DeveloperPortals []CustomDomainDeveloperPortalArgs
    One or more developer_portal blocks as defined below.
    Managements []CustomDomainManagementArgs
    One or more management blocks as defined below.
    Portals []CustomDomainPortalArgs
    One or more portal blocks as defined below.
    Proxies []CustomDomainProxyArgs
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    Scms []CustomDomainScmArgs
    One or more scm blocks as defined below.
    apiManagementId String
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals List<CustomDomainDeveloperPortal>
    One or more developer_portal blocks as defined below.
    managements List<CustomDomainManagement>
    One or more management blocks as defined below.
    portals List<CustomDomainPortal>
    One or more portal blocks as defined below.
    proxies List<CustomDomainProxy>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms List<CustomDomainScm>
    One or more scm blocks as defined below.
    apiManagementId string
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals CustomDomainDeveloperPortal[]
    One or more developer_portal blocks as defined below.
    managements CustomDomainManagement[]
    One or more management blocks as defined below.
    portals CustomDomainPortal[]
    One or more portal blocks as defined below.
    proxies CustomDomainProxy[]
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms CustomDomainScm[]
    One or more scm blocks as defined below.
    api_management_id str
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developer_portals Sequence[CustomDomainDeveloperPortalArgs]
    One or more developer_portal blocks as defined below.
    managements Sequence[CustomDomainManagementArgs]
    One or more management blocks as defined below.
    portals Sequence[CustomDomainPortalArgs]
    One or more portal blocks as defined below.
    proxies Sequence[CustomDomainProxyArgs]
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms Sequence[CustomDomainScmArgs]
    One or more scm blocks as defined below.
    apiManagementId String
    The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
    developerPortals List<Property Map>
    One or more developer_portal blocks as defined below.
    managements List<Property Map>
    One or more management blocks as defined below.
    portals List<Property Map>
    One or more portal blocks as defined below.
    proxies List<Property Map>
    One or more proxy blocks as defined below.

    Deprecated: proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider

    scms List<Property Map>
    One or more scm blocks as defined below.

    Supporting Types

    CustomDomainDeveloperPortal, CustomDomainDeveloperPortalArgs

    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String
    hostName string
    The Hostname to use for the corresponding endpoint.
    certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword string
    The password associated with the certificate provided above.
    expiry string
    keyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId string
    subject string
    thumbprint string
    host_name str
    The Hostname to use for the corresponding endpoint.
    certificate str
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificate_password str
    The password associated with the certificate provided above.
    expiry str
    key_vault_id str
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiate_client_certificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    ssl_keyvault_identity_client_id str
    subject str
    thumbprint str
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String

    CustomDomainManagement, CustomDomainManagementArgs

    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String
    hostName string
    The Hostname to use for the corresponding endpoint.
    certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword string
    The password associated with the certificate provided above.
    expiry string
    keyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId string
    subject string
    thumbprint string
    host_name str
    The Hostname to use for the corresponding endpoint.
    certificate str
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificate_password str
    The password associated with the certificate provided above.
    expiry str
    key_vault_id str
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiate_client_certificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    ssl_keyvault_identity_client_id str
    subject str
    thumbprint str
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String

    CustomDomainPortal, CustomDomainPortalArgs

    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String
    hostName string
    The Hostname to use for the corresponding endpoint.
    certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword string
    The password associated with the certificate provided above.
    expiry string
    keyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId string
    subject string
    thumbprint string
    host_name str
    The Hostname to use for the corresponding endpoint.
    certificate str
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificate_password str
    The password associated with the certificate provided above.
    expiry str
    key_vault_id str
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiate_client_certificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    ssl_keyvault_identity_client_id str
    subject str
    thumbprint str
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String

    CustomDomainProxy, CustomDomainProxyArgs

    HostName string
    The Hostname to use for the API Proxy Endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    DefaultSslBinding bool
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    HostName string
    The Hostname to use for the API Proxy Endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    DefaultSslBinding bool
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    hostName String
    The Hostname to use for the API Proxy Endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    defaultSslBinding Boolean
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String
    hostName string
    The Hostname to use for the API Proxy Endpoint.
    certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword string
    The password associated with the certificate provided above.
    defaultSslBinding boolean
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    expiry string
    keyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId string
    subject string
    thumbprint string
    host_name str
    The Hostname to use for the API Proxy Endpoint.
    certificate str
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificate_password str
    The password associated with the certificate provided above.
    default_ssl_binding bool
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    expiry str
    key_vault_id str
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiate_client_certificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    ssl_keyvault_identity_client_id str
    subject str
    thumbprint str
    hostName String
    The Hostname to use for the API Proxy Endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    defaultSslBinding Boolean
    Is the certificate associated with this Hostname the Default SSL Certificate? This is used when an SNI header isn't specified by a client. Defaults to false.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String

    CustomDomainScm, CustomDomainScmArgs

    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    HostName string
    The Hostname to use for the corresponding endpoint.
    Certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    CertificatePassword string
    The password associated with the certificate provided above.
    Expiry string
    KeyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    NegotiateClientCertificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    SslKeyvaultIdentityClientId string
    Subject string
    Thumbprint string
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String
    hostName string
    The Hostname to use for the corresponding endpoint.
    certificate string
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword string
    The password associated with the certificate provided above.
    expiry string
    keyVaultId string
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId string
    subject string
    thumbprint string
    host_name str
    The Hostname to use for the corresponding endpoint.
    certificate str
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificate_password str
    The password associated with the certificate provided above.
    expiry str
    key_vault_id str
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiate_client_certificate bool
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    ssl_keyvault_identity_client_id str
    subject str
    thumbprint str
    hostName String
    The Hostname to use for the corresponding endpoint.
    certificate String
    The Base64 Encoded Certificate. (Mutually exclusive with key_vault_id.)
    certificatePassword String
    The password associated with the certificate provided above.
    expiry String
    keyVaultId String
    The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type application/x-pkcs12.
    negotiateClientCertificate Boolean
    Should Client Certificate Negotiation be enabled for this Hostname? Defaults to false.
    sslKeyvaultIdentityClientId String
    subject String
    thumbprint String

    Import

    API Management Custom Domains can be imported using the resource id, e.g.

     $ pulumi import azure:apimanagement/customDomain:CustomDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/customDomains/default
    

    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.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial