Skip to main content

workspace_backends

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

Overview

Nameworkspace_backends
TypeResource
Idazure.api_management.workspace_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
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackendId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the details of the backend specified by its identifier.
list_by_workspaceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of backends in the specified workspace.
create_or_updateINSERTbackendId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates or Updates a backend.
deleteDELETEIf-Match, backendId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the specified backend.
updateUPDATEIf-Match, backendId, resourceGroupName, serviceName, subscriptionId, workspaceIdUpdates an existing backend.

SELECT examples

Lists a collection of backends in the specified workspace.

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

INSERT example

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

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

UPDATE example

Updates a workspace_backends resource.

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

DELETE example

Deletes the specified workspace_backends resource.

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