Skip to main content

deleted_services

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

Overview

Namedeleted_services
TypeResource
Idazure.api_management.deleted_services

Fields

The following fields are returned by SELECT queries:

Soft-deleted Api Management Service.

NameDatatypeDescription
locationstringAPI Management Service Master Location.
propertiesobjectDeleted API Management Service details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_nameselectserviceName, subscriptionId, locationGet soft-deleted Api Management Service by name.
list_by_subscriptionselectsubscriptionIdLists all soft-deleted services available for undelete for the given subscription.
purgeexecserviceName, subscriptionId, locationPurges Api Management Service (deletes it with no option to undelete).

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
locationstringThe location of the deleted API Management service.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get soft-deleted Api Management Service by name.

SELECT
location,
properties
FROM azure.api_management.deleted_services
WHERE serviceName = '{{ serviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
;

Lifecycle Methods

Purges Api Management Service (deletes it with no option to undelete).

EXEC azure.api_management.deleted_services.purge 
@serviceName='{{ serviceName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
;