Skip to content

Commit f82d963

Browse files
authored
{Security} az security api-collection apim onboard/offboard: Fix the documentation (#30716)
* Update _onboard.py Fix example * Update _offboard.py
1 parent ab64e83 commit f82d963

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/azure-cli/azure/cli/command_modules/security/aaz/latest/security/api_collection/apim/_offboard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
)
1919
class Offboard(AAZCommand):
2020
"""Offboard 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.
21+
22+
:example: Onboard an Azure API Management API to Microsoft Defender for APIs.
23+
az security api-collection apim offboard --resource-group MyResourceGroup --service-name MyApiManagementServiceName --api-id echo-api
2124
"""
2225

2326
_aaz_info = {

src/azure-cli/azure/cli/command_modules/security/aaz/latest/security/api_collection/apim/_onboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Onboard(AAZCommand):
1919
"""Onboard 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.
2020
2121
:example: Onboard an Azure API Management API to Microsoft Defender for APIs.
22-
az security api-collections create --resource-group MyResourceGroup --service-name MyApiServiceName --api-id EchoApi
22+
az security api-collection apim onboard --resource-group MyResourceGroup --service-name MyApiManagementServiceName --api-id echo-api
2323
"""
2424

2525
_aaz_info = {

0 commit comments

Comments
 (0)