From f06453076b585e15910daaadbbdd349600f6b573 Mon Sep 17 00:00:00 2001 From: Saurav Raghuvanshi <47741547+sauravraghuvanshi@users.noreply.github.com> Date: Wed, 9 Aug 2023 22:48:06 +0530 Subject: [PATCH] Added the example to remove an API from Managed Gateway and also changed the name from Attach to remove. (#2677) * Update Remove-AzApiManagementApiFromGateway.md Added the example to remove an API from Managed Gateway since it cannot be achieved from example one. Also change the name to * Update Remove-AzApiManagementApiFromGateway.md Added the example to remove an API from a Managed Gateway also changed the name from Attach to Remove --- .../Remove-AzApiManagementApiFromGateway.md | 10 +++++++++- .../Remove-AzApiManagementApiFromGateway.md | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/azps-10.2.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md b/azps-10.2.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md index 7f0f6fc9f2..451d702307 100644 --- a/azps-10.2.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md +++ b/azps-10.2.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md @@ -10,7 +10,7 @@ original_content_git_url: https://github.com/Azure/azure-powershell/blob/main/sr # Remove-AzApiManagementApiFromGateway ## SYNOPSIS -Attaches an API to a gateway. +Remove an API from a gateway. ## SYNTAX @@ -32,6 +32,14 @@ Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "012345 This command removes the specified API from a gateway. +### Example 2: Remove an API from a managed gateway +```powershell +$ApiMgmtContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso" +Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "managed" -ApiId "0001" -PassThru +``` + +This command removes the specified API from the managed gateway. + ## PARAMETERS ### -ApiId diff --git a/azps-9.7.1/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md b/azps-9.7.1/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md index 7f0f6fc9f2..451d702307 100644 --- a/azps-9.7.1/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md +++ b/azps-9.7.1/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md @@ -10,7 +10,7 @@ original_content_git_url: https://github.com/Azure/azure-powershell/blob/main/sr # Remove-AzApiManagementApiFromGateway ## SYNOPSIS -Attaches an API to a gateway. +Remove an API from a gateway. ## SYNTAX @@ -32,6 +32,14 @@ Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "012345 This command removes the specified API from a gateway. +### Example 2: Remove an API from a managed gateway +```powershell +$ApiMgmtContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso" +Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "managed" -ApiId "0001" -PassThru +``` + +This command removes the specified API from the managed gateway. + ## PARAMETERS ### -ApiId