Skip to content

Commit

Permalink
Added the example to remove an API from Managed Gateway and also chan…
Browse files Browse the repository at this point in the history
…ged 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
  • Loading branch information
sauravraghuvanshi committed Aug 9, 2023
1 parent e46e3eb commit f064530
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
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,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
Expand Down
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,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
Expand Down

0 comments on commit f064530

Please sign in to comment.