Skip to main content

api_version_sets

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

Overview

Nameapi_version_sets
TypeResource
Idazure.api_management.api_version_sets

Fields

The following fields are returned by SELECT queries:

Gets the specified Api Version Set entity.

NameDatatypeDescription
propertiesobjectAPI VersionSet contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, versionSetId, subscriptionIdGets the details of the Api Version Set specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, subscriptionId$filter, $top, $skipLists a collection of API Version Sets in the specified service instance.
create_or_updateinsertresourceGroupName, serviceName, versionSetId, subscriptionIdIf-MatchCreates or Updates a Api Version Set.
updateupdateresourceGroupName, serviceName, versionSetId, If-Match, subscriptionIdUpdates the details of the Api VersionSet specified by its identifier.
deletedeleteresourceGroupName, serviceName, versionSetId, If-Match, subscriptionIdDeletes specific Api Version Set.

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
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
versionSetIdstringApi Version Set identifier. Must be unique in the current API Management service instance.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Gets the details of the Api Version Set specified by its identifier.

SELECT
properties
FROM azure.api_management.api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND versionSetId = '{{ versionSetId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or Updates a Api Version Set.

INSERT INTO azure.api_management.api_version_sets (
data__properties,
resourceGroupName,
serviceName,
versionSetId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ versionSetId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

UPDATE examples

Updates the details of the Api VersionSet specified by its identifier.

UPDATE azure.api_management.api_version_sets
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND versionSetId = '{{ versionSetId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes specific Api Version Set.

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