Skip to main content

backends

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

Overview

Namebackends
TypeResource
Idazure.api_management.backends

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
backendIdtextfield from the properties object
circuit_breakertextfield from the properties object
credentialstextfield from the properties object
pooltextfield from the properties object
propertiestextParameters supplied to the Create Backend operation.
protocoltextfield from the properties object
proxytextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
tlstextfield from the properties object
typetextfield from the properties object
urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackendId, resourceGroupName, serviceName, subscriptionIdGets the details of the backend specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of backends in the specified service instance.
create_or_updateINSERTbackendId, resourceGroupName, serviceName, subscriptionIdCreates or Updates a backend.
deleteDELETEIf-Match, backendId, resourceGroupName, serviceName, subscriptionIdDeletes the specified backend.
updateUPDATEIf-Match, backendId, resourceGroupName, serviceName, subscriptionIdUpdates an existing backend.
reconnectEXECbackendId, resourceGroupName, serviceName, subscriptionIdNotifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.

SELECT examples

Lists a collection of backends in the specified service instance.

SELECT
description,
backendId,
circuit_breaker,
credentials,
pool,
properties,
protocol,
proxy,
resourceGroupName,
resource_id,
serviceName,
subscriptionId,
title,
tls,
type,
url
FROM azure.api_management.vw_backends
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.backends (
backendId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ backendId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a backends resource.

/*+ update */
UPDATE azure.api_management.backends
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND backendId = '{{ backendId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified backends resource.

/*+ delete */
DELETE FROM azure.api_management.backends
WHERE If-Match = '{{ If-Match }}'
AND backendId = '{{ backendId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';