Skip to main content

workspace_api_revision

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

Overview

Nameworkspace_api_revision
TypeResource
Idazure.api_management.workspace_api_revision

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiIdstringIdentifier of the API Revision.
apiRevisionstringRevision number of API.
createdDateTimestring (date-time)The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
descriptionstringDescription of the API Revision.
isCurrentbooleanIndicates if API revision is accessible via the gateway.
isOnlinebooleanIndicates if API revision is the current api revision.
privateUrlstringGateway URL for accessing the non-current API Revision.
updatedDateTimestring (date-time)The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_serviceselectresource_group_name, service_name, workspace_id, api_id, subscription_id$filter, $top, $skipLists all revisions of an 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
api_idstringAPI revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
workspace_idstringWorkspace identifier. Must be unique in the current API Management service instance. Required.
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Lists all revisions of an API.

SELECT
apiId,
apiRevision,
createdDateTime,
description,
isCurrent,
isOnline,
privateUrl,
updatedDateTime
FROM azure.api_management.workspace_api_revision
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND api_id = '{{ api_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;