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