Skip to main content

deleted_services

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

Overview

Namedeleted_services
TypeResource
Idazure.api_center.deleted_services

Fields

NameDatatypeDescription
deletedServiceNametextfield from the properties object
resourceGroupNametextfield from the properties object
scheduled_purge_datetextfield from the properties object
soft_deletion_datetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeletedServiceName, resourceGroupName, subscriptionIdReturns details of the soft-deleted service.
listSELECTresourceGroupName, subscriptionIdLists soft-deleted services.
list_by_subscriptionSELECTsubscriptionIdLists services within an Azure subscription.
deleteDELETEdeletedServiceName, resourceGroupName, subscriptionIdPermanently deletes specified service.

SELECT examples

Lists services within an Azure subscription.

SELECT
deletedServiceName,
resourceGroupName,
scheduled_purge_date,
soft_deletion_date,
subscriptionId
FROM azure.api_center.vw_deleted_services
WHERE subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified deleted_services resource.

/*+ delete */
DELETE FROM azure.api_center.deleted_services
WHERE deletedServiceName = '{{ deletedServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';