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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
deletionDatestring (date-time)UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
locationstringAPI Management Service Master Location.
scheduledPurgeDatestring (date-time)UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
serviceIdstringFully-qualified API Management Service Resource ID.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_nameselectservice_name, location, subscription_idGet soft-deleted Api Management Service by name.
list_by_subscriptionselectsubscription_idLists all soft-deleted services available for undelete for the given subscription.
purgedeleteservice_name, location, subscription_idPurges 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 name of the Azure region. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

Get soft-deleted Api Management Service by name.

SELECT
id,
name,
deletionDate,
location,
scheduledPurgeDate,
serviceId,
systemData,
type
FROM azure.api_management.deleted_services
WHERE service_name = '{{ service_name }}' -- required
AND location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

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

DELETE FROM azure.api_management.deleted_services
WHERE service_name = '{{ service_name }}' --required
AND location = '{{ location }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;