From 7279d0fb15b7831ca6812f5591068384dc511d67 Mon Sep 17 00:00:00 2001 From: Saurav Raghuvanshi <47741547+sauravraghuvanshi@users.noreply.github.com> Date: Wed, 9 Aug 2023 22:48:38 +0530 Subject: [PATCH] Update Remove-AzApiManagementApiFromGateway.md (#2678) Added the example to remove an API from a Managed Gateway also changed the name from Attach to Remove --- .../Remove-AzApiManagementApiFromGateway.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azps-10.1.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md b/azps-10.1.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md index 7f0f6fc9f2..eed9c3b261 100644 --- a/azps-10.1.0/Az.ApiManagement/Remove-AzApiManagementApiFromGateway.md +++ b/azps-10.1.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,13 @@ 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