Skip to main content

api_portals

Creates, updates, deletes, gets or lists a api_portals resource.

Overview

Nameapi_portals
TypeResource
Idazure.spring_apps.api_portals

Fields

NameDatatypeDescription
apiPortalNametextfield from the properties object
api_try_out_enabled_statetextfield from the properties object
gateway_idstextfield from the properties object
https_onlytextfield from the properties object
instancestextfield from the properties object
provisioning_statetextfield from the properties object
publictextfield from the properties object
resourceGroupNametextfield from the properties object
resource_requeststextfield from the properties object
serviceNametextfield from the properties object
skutextSku of Azure Spring Apps
source_urlstextfield from the properties object
sso_propertiestextfield from the properties object
subscriptionIdtextfield from the properties object
urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiPortalName, resourceGroupName, serviceName, subscriptionIdGet the API portal and its properties.
listSELECTresourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in a Service.
create_or_updateINSERTapiPortalName, resourceGroupName, serviceName, subscriptionIdCreate the default API portal or update the existing API portal.
deleteDELETEapiPortalName, resourceGroupName, serviceName, subscriptionIdDelete the default API portal.
validate_domainEXECapiPortalName, resourceGroupName, serviceName, subscriptionId, data__nameCheck the domains are valid as well as not in use.

SELECT examples

Handles requests to list all resources in a Service.

SELECT
apiPortalName,
api_try_out_enabled_state,
gateway_ids,
https_only,
instances,
provisioning_state,
public,
resourceGroupName,
resource_requests,
serviceName,
sku,
source_urls,
sso_properties,
subscriptionId,
url
FROM azure.spring_apps.vw_api_portals
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new api_portals resource.

/*+ create */
INSERT INTO azure.spring_apps.api_portals (
apiPortalName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
sku
)
SELECT
'{{ apiPortalName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ sku }}'
;

DELETE example

Deletes the specified api_portals resource.

/*+ delete */
DELETE FROM azure.spring_apps.api_portals
WHERE apiPortalName = '{{ apiPortalName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';