你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Remove-AzApiManagementApiRelease

Removes a particular API Release

语法

ByApiReleaseId (默认值)

Remove-AzApiManagementApiRelease
    -Context <PsApiManagementContext>
    -ApiId <String>
    -ReleaseId <String>
    [-PassThru]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByInputObject

Remove-AzApiManagementApiRelease
    -InputObject <PsApiManagementApiRelease>
    [-PassThru]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

The Remove-AzApiManagementApiRelease cmdlet removes an existing API Release.

示例

Example 1: Remove an API Release

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Remove-AzApiManagementApiRelease -Context $apimContext -ApiId "echo-api" -ReleaseId "2"

This command removes the API Release with the specified ApiId and ReleaseId.

参数

-ApiId

Identifier of the API. This parameter is required.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ByApiReleaseId
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Confirm

Prompts you for confirmation before running the cmdlet.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Context

Instance of PsApiManagementContext. This parameter is required.

参数属性

类型:PsApiManagementContext
默认值:None
支持通配符:False
不显示:False

参数集

ByApiReleaseId
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

参数属性

类型:IAzureContextContainer
默认值:None
支持通配符:False
不显示:False
别名:AzContext, AzureRmContext, AzureCredential

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-InputObject

Instance of PsApiManagementApiRelease. This parameter is required.

参数属性

类型:PsApiManagementApiRelease
默认值:None
支持通配符:False
不显示:False

参数集

ByInputObject
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PassThru

If specified will write true in case operation succeeds. This parameter is optional.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ReleaseId

Identifier of the API Release. This parameter is required.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ByApiReleaseId
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):True
来自剩余参数的值:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:wi

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

输入

PsApiManagementContext

PsApiManagementApiRelease

String

输出

Boolean