Skip to main content

api_version_sets

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

Overview

Nameapi_version_sets
TypeResource
Idazure.api_management.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

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, subscriptionId, versionSetIdGets the details of the Api Version Set specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of API Version Sets in the specified service instance.
create_or_updateINSERTresourceGroupName, serviceName, subscriptionId, versionSetIdCreates or Updates a Api Version Set.
deleteDELETEIf-Match, resourceGroupName, serviceName, subscriptionId, versionSetIdDeletes specific Api Version Set.
updateUPDATEIf-Match, resourceGroupName, serviceName, subscriptionId, versionSetIdUpdates the details of the Api VersionSet specified by its identifier.

SELECT examples

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

SELECT
description,
display_name,
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
version_header_name,
version_query_name,
versioning_scheme
FROM azure.api_management.vw_api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a api_version_sets resource.

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

DELETE example

Deletes the specified api_version_sets resource.

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