Skip to main content

workspace_api_releases

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

Overview

Nameworkspace_api_releases
TypeResource
Idazure.api_management.workspace_api_releases

Fields

The following fields are returned by SELECT queries:

The operation returns the details of an API Release.

NameDatatypeDescription
propertiesobjectApiRelease entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, workspaceId, apiId, releaseId, subscriptionIdReturns the details of an API release.
list_by_serviceselectresourceGroupName, serviceName, workspaceId, apiId, subscriptionId$filter, $top, $skipLists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters.
create_or_updateinsertresourceGroupName, serviceName, workspaceId, apiId, releaseId, subscriptionIdIf-MatchCreates a new Release for the API.
updateupdateresourceGroupName, serviceName, workspaceId, apiId, releaseId, If-Match, subscriptionIdUpdates the details of the release of the API specified by its identifier.
deletedeleteresourceGroupName, serviceName, workspaceId, apiId, releaseId, If-Match, subscriptionIdDeletes the specified release in the API.

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.
apiIdstringAPI identifier. Must be unique in the current API Management service instance.
releaseIdstringRelease identifier within an API. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
workspaceIdstringWorkspace identifier. Must be unique in the current API Management service instance.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</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

Returns the details of an API release.

SELECT
properties
FROM azure.api_management.workspace_api_releases
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND workspaceId = '{{ workspaceId }}' -- required
AND apiId = '{{ apiId }}' -- required
AND releaseId = '{{ releaseId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new Release for the API.

INSERT INTO azure.api_management.workspace_api_releases (
data__properties,
resourceGroupName,
serviceName,
workspaceId,
apiId,
releaseId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ workspaceId }}',
'{{ apiId }}',
'{{ releaseId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

UPDATE examples

Updates the details of the release of the API specified by its identifier.

UPDATE azure.api_management.workspace_api_releases
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND workspaceId = '{{ workspaceId }}' --required
AND apiId = '{{ apiId }}' --required
AND releaseId = '{{ releaseId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes the specified release in the API.

DELETE FROM azure.api_management.workspace_api_releases
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND workspaceId = '{{ workspaceId }}' --required
AND apiId = '{{ apiId }}' --required
AND releaseId = '{{ releaseId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;