Skip to main content

api_revisions

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

Overview

Nameapi_revisions
TypeResource
Idazure.api_management.api_revisions

Fields

NameDatatypeDescription
descriptionstringDescription of the API Revision.
apiIdstringIdentifier of the API Revision.
apiRevisionstringRevision number of API.
createdDateTimestringThe 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.
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.
updatedDateTimestringThe 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

NameAccessible byRequired ParamsDescription
list_by_serviceSELECTapiId, resourceGroupName, serviceName, subscriptionIdLists all revisions of an API.

SELECT examples

Lists all revisions of an API.

SELECT
description,
apiId,
apiRevision,
createdDateTime,
isCurrent,
isOnline,
privateUrl,
updatedDateTime
FROM azure.api_management.api_revisions
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';