Skip to main content

workspace_api_version_sets

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

Overview

Nameworkspace_api_version_sets
TypeResource
Idazure.api_management.workspace_api_version_sets

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
display_nametextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
versionSetIdtextfield from the properties object
version_header_nametextfield from the properties object
version_query_nametextfield from the properties object
versioning_schemetextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, subscriptionId, versionSetId, workspaceIdGets the details of the Api Version Set specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of API Version Sets in the specified workspace with a service instance.
create_or_updateINSERTresourceGroupName, serviceName, subscriptionId, versionSetId, workspaceIdCreates or Updates a Api Version Set.
deleteDELETEIf-Match, resourceGroupName, serviceName, subscriptionId, versionSetId, workspaceIdDeletes specific Api Version Set.
updateUPDATEIf-Match, resourceGroupName, serviceName, subscriptionId, versionSetId, workspaceIdUpdates the details of the Api VersionSet specified by its identifier.

SELECT examples

Lists a collection of API Version Sets in the specified workspace with a service instance.

SELECT
description,
display_name,
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
version_header_name,
version_query_name,
versioning_scheme,
workspaceId
FROM azure.api_management.vw_workspace_api_version_sets
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_api_version_sets resource.

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

UPDATE example

Updates a workspace_api_version_sets resource.

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

DELETE example

Deletes the specified workspace_api_version_sets resource.

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