Skip to content

Commit

Permalink
Update Remove-AzApiManagementApiFromGateway.md
Browse files Browse the repository at this point in the history
Added the example to remove an API from a Managed Gateway also changed the name from Attach to Remove
  • Loading branch information
sauravraghuvanshi committed Aug 8, 2023
1 parent e46e3eb commit f60d5ef
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit f60d5ef

Please sign in to comment.