Skip to main content

api_portal_custom_domains

Creates, updates, deletes, gets or lists an api_portal_custom_domains resource.

Overview

Nameapi_portal_custom_domains
TypeResource
Idazure.spring_apps.api_portal_custom_domains

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding API portal custom domain.

NameDatatypeDescription
propertiesobjectThe properties of custom domain for API portal

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, apiPortalName, domainNameGet the API portal custom domain.
listselectsubscriptionId, resourceGroupName, serviceName, apiPortalNameHandle requests to list all API portal custom domains.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, apiPortalName, domainNameCreate or update the API portal custom domain.
deletedeletesubscriptionId, resourceGroupName, serviceName, apiPortalName, domainNameDelete the API portal custom domain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
apiPortalNamestringThe name of API portal.
domainNamestringThe name of the API portal custom domain.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get the API portal custom domain.

SELECT
properties
FROM azure.spring_apps.api_portal_custom_domains
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiPortalName = '{{ apiPortalName }}' -- required
AND domainName = '{{ domainName }}' -- required
;

INSERT examples

Create or update the API portal custom domain.

INSERT INTO azure.spring_apps.api_portal_custom_domains (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
apiPortalName,
domainName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ apiPortalName }}',
'{{ domainName }}'
RETURNING
properties
;

DELETE examples

Delete the API portal custom domain.

DELETE FROM azure.spring_apps.api_portal_custom_domains
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND apiPortalName = '{{ apiPortalName }}' --required
AND domainName = '{{ domainName }}' --required
;