Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.api_center.workspaces

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, subscriptionId, workspaceNameReturns details of the workspace.
listSELECTresourceGroupName, serviceName, subscriptionIdReturns a collection of workspaces.
create_or_updateINSERTresourceGroupName, serviceName, subscriptionId, workspaceNameCreates new or updates existing workspace.
deleteDELETEresourceGroupName, serviceName, subscriptionId, workspaceNameDeletes specified workspace.

SELECT examples

Returns a collection of workspaces.

SELECT
description,
resourceGroupName,
serviceName,
subscriptionId,
title,
workspaceName
FROM azure.api_center.vw_workspaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_center.workspaces (
resourceGroupName,
serviceName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workspaces resource.

/*+ delete */
DELETE FROM azure.api_center.workspaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';