Skip to main content

api_collections

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

Overview

Nameapi_collections
TypeResource
Idazure.security.api_collections

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
apiIdtextfield from the properties object
base_urltextfield from the properties object
discovered_viatextfield from the properties object
display_nametextfield from the properties object
number_of_api_endpointstextfield from the properties object
number_of_api_endpoints_with_sensitive_data_exposedtextfield from the properties object
number_of_external_api_endpointstextfield from the properties object
number_of_inactive_api_endpointstextfield from the properties object
number_of_unauthenticated_api_endpointstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sensitivity_labeltextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
get_by_azure_api_management_serviceSELECTapiId, resourceGroupName, serviceName, subscriptionIdGets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs. If an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
list_by_azure_api_management_serviceSELECTresourceGroupName, serviceName, subscriptionIdGets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.
list_by_subscriptionSELECTsubscriptionIdGets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.
offboard_azure_api_management_apiEXECapiId, resourceGroupName, serviceName, subscriptionIdOffboard an Azure API Management API from Microsoft Defender for APIs. The system will stop monitoring the operations within the Azure API Management API for intrusive behaviors.
onboard_azure_api_management_apiEXECapiId, resourceGroupName, serviceName, subscriptionIdOnboard an Azure API Management API to Microsoft Defender for APIs. The system will start monitoring the operations within the Azure Management API for intrusive behaviors and provide alerts for attacks that have been detected.

SELECT examples

Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.

SELECT
id,
name,
apiId,
base_url,
discovered_via,
display_name,
number_of_api_endpoints,
number_of_api_endpoints_with_sensitive_data_exposed,
number_of_external_api_endpoints,
number_of_inactive_api_endpoints,
number_of_unauthenticated_api_endpoints,
provisioning_state,
resourceGroupName,
sensitivity_label,
serviceName,
subscriptionId,
type
FROM azure.security.vw_api_collections
WHERE subscriptionId = '{{ subscriptionId }}';