Remove-AzApiManagementApiRelease
Removes a particular API Release
语法
ByApiReleaseId (默认值)
Remove-AzApiManagementApiRelease
-Context <PsApiManagementContext>
-ApiId <String>
-ReleaseId <String>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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.
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Context
Instance of PsApiManagementContext.
This parameter is required.
参数属性
参数集
ByApiReleaseId
Position: Named
必需: True
来自管道的值: True
来自管道的值(按属性名称): True
来自剩余参数的值: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
Instance of PsApiManagementApiRelease. This parameter is required.
ByInputObject
Position: Named
必需: True
来自管道的值: True
来自管道的值(按属性名称): False
来自剩余参数的值: False
-PassThru
If specified will write true in case operation succeeds.
This parameter is optional.
参数属性
参数集
(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.
参数属性
参数集
(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 .
输出