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

NameDatatypeDescription
deletion_datetextfield from the properties object
locationtextAPI Management Service Master Location.
scheduled_purge_datetextfield from the properties object
serviceNametextfield from the properties object
service_idtextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
get_by_nameSELECTlocation, serviceName, subscriptionIdGet soft-deleted Api Management Service by name.
list_by_subscriptionSELECTsubscriptionIdLists all soft-deleted services available for undelete for the given subscription.
purgeEXEClocation, serviceName, subscriptionIdPurges Api Management Service (deletes it with no option to undelete).

SELECT examples

Lists all soft-deleted services available for undelete for the given subscription.

SELECT
deletion_date,
location,
scheduled_purge_date,
serviceName,
service_id,
subscriptionId
FROM azure.api_management.vw_deleted_services
WHERE subscriptionId = '{{ subscriptionId }}';