From f60d5ef66d941d38c4da3bcca0b68d71be04bb9c Mon Sep 17 00:00:00 2001 From: Saurav Raghuvanshi <47741547+sauravraghuvanshi@users.noreply.github.com> Date: Tue, 8 Aug 2023 13:05:44 +0530 Subject: [PATCH] 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 | 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