Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.api_center.workspaces

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
propertiesobjectThe resource-specific properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, workspaceNameReturns details of the workspace.
listselectsubscriptionId, resourceGroupName, serviceName$filterReturns a collection of workspaces.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, workspaceNameCreates new or updates existing workspace.
deletedeletesubscriptionId, resourceGroupName, serviceName, workspaceNameDeletes specified workspace.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of Azure API Center service.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
workspaceNamestringThe name of the workspace.
$filterstringOData filter parameter.

SELECT examples

Returns details of the workspace.

SELECT
properties
FROM azure.api_center.workspaces
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
;

INSERT examples

Creates new or updates existing workspace.

INSERT INTO azure.api_center.workspaces (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
workspaceName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ workspaceName }}'
RETURNING
properties
;

DELETE examples

Deletes specified workspace.

DELETE FROM azure.api_center.workspaces
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
;