Web Apps - Install Site Extension
在网站或部署槽上安装站点扩展的说明。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
网站名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
site
|
path | True |
string |
站点扩展名。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
api-version
|
query | True |
string |
API 版本 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
站点扩展已创建。 |
|
| 201 Created |
站点扩展已创建。 |
|
| 429 Too Many Requests |
正在另一个请求上安装站点扩展:拒绝当前请求。 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
定义
| 名称 | 说明 |
|---|---|
|
Default |
应用服务错误响应。 |
| Details | |
| Error |
错误模型。 |
|
Site |
站点扩展信息。 |
|
Site |
站点扩展类型。 |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
Details
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Error
错误模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| details |
Details[] |
详细错误。 |
| innererror |
string |
调试错误的更多信息。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
SiteExtensionInfo
站点扩展信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| kind |
string |
资源类型。 |
| name |
string |
资源名称。 |
| properties.authors |
string[] |
作者名单。 |
| properties.comment |
string |
站点扩展注释。 |
| properties.description |
string |
详细说明。 |
| properties.download_count |
integer (int32) |
下载次数。 |
| properties.extension_id |
string |
站点扩展 ID。 |
| properties.extension_type |
站点扩展类型。 |
|
| properties.extension_url |
string |
扩展 URL。 |
| properties.feed_url |
string |
源 URL。 |
| properties.icon_url |
string |
图标 URL。 |
| properties.installed_date_time |
string (date-time) |
已安装的时间戳。 |
| properties.installer_command_line_params |
string |
安装程序命令行参数。 |
| properties.license_url |
string |
许可证 URL。 |
| properties.local_is_latest_version |
boolean |
|
| properties.local_path |
string |
本地路径。 |
| properties.project_url |
string |
项目 URL。 |
| properties.provisioningState |
string |
预配状态。 |
| properties.published_date_time |
string (date-time) |
已发布的时间戳。 |
| properties.summary |
string |
摘要描述。 |
| properties.title |
string |
|
| properties.version |
string |
版本信息。 |
| type |
string |
资源类型。 |
SiteExtensionType
站点扩展类型。
| 值 | 说明 |
|---|---|
| Gallery | |
| WebRoot |