Gallery Applications - Update
更新库应用程序定义。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}?api-version=2023-07-03
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
gallery
|
path | True |
string |
要更新的库应用程序定义的名称。 允许的字符是字母和数字,中间允许点、短划线和句点。 最大长度为 80 个字符。 |
gallery
|
path | True |
string |
要在其中更新应用程序定义的共享应用程序库的名称。 |
resource
|
path | True |
string |
资源组的名称。 |
subscription
|
path | True |
string |
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
properties.supportedOSType | True |
此属性允许指定应用程序为其构建的 OS 支持的类型。 可能的值包括:Windows、Linux。 |
|
properties.customActions |
可以使用此库应用程序中的所有库应用程序版本执行的自定义作列表。 |
||
properties.description |
string |
此库应用程序定义资源的说明。 此属性可更新。 |
|
properties.endOfLifeDate |
string (date-time) |
库应用程序定义的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。 |
|
properties.eula |
string |
库应用程序定义的 Eula 协议。 |
|
properties.privacyStatementUri |
string |
隐私声明 URI。 |
|
properties.releaseNoteUri |
string |
发行说明 URI。 |
|
tags |
object |
资源标记 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Update a simple gallery Application.
示例请求
PATCH https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName?api-version=2023-07-03
{
"properties": {
"description": "This is the gallery application description.",
"eula": "This is the gallery application EULA.",
"privacyStatementUri": "myPrivacyStatementUri}",
"releaseNoteUri": "myReleaseNoteUri",
"supportedOSType": "Windows",
"customActions": [
{
"name": "myCustomAction",
"script": "myCustomActionScript",
"description": "This is the custom action description.",
"parameters": [
{
"name": "myCustomActionParameter",
"required": false,
"type": "String",
"defaultValue": "default value of parameter.",
"description": "This is the description of the parameter"
}
]
}
]
}
}
示例响应
{
"properties": {
"description": "This is the gallery application description.",
"eula": "This is the gallery application EULA.",
"privacyStatementUri": "myPrivacyStatementUri}",
"releaseNoteUri": "myReleaseNoteUri",
"supportedOSType": "Windows",
"customActions": [
{
"name": "myCustomAction",
"script": "myCustomActionScript",
"description": "This is the custom action description.",
"parameters": [
{
"name": "myCustomActionParameter",
"required": false,
"type": "String",
"defaultValue": "default value of parameter.",
"description": "This is the description of the parameter"
}
]
}
]
},
"location": "West US",
"name": "myGalleryApplicationName",
"type": "Microsoft.Compute/galleries",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName"
}
定义
名称 | 说明 |
---|---|
Api |
Api 错误。 |
Api |
Api 错误基数。 |
Cloud |
来自计算服务的错误响应。 |
Gallery |
指定要创建或更新的库应用程序定义的信息。 |
Gallery |
可以使用库应用程序版本执行的自定义作。 |
Gallery |
可传递给库应用程序版本的自定义作的参数的定义。 |
Gallery |
指定自定义作参数的类型。 可能的值包括:String、ConfigurationDataBlob 或 LogOutputBlob |
Gallery |
指定要更新的库应用程序定义的信息。 |
Inner |
内部错误详细信息。 |
Operating |
此属性允许指定应用程序为其构建的 OS 支持的类型。 可能的值包括:Windows、Linux。 |
ApiError
Api 错误。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
API 错误详细信息 |
|
innererror |
Api 内部错误 |
|
message |
string |
错误消息。 |
target |
string |
特定错误的目标。 |
ApiErrorBase
Api 错误基数。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
错误消息。 |
target |
string |
特定错误的目标。 |
CloudError
来自计算服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
Api 错误。 |
GalleryApplication
指定要创建或更新的库应用程序定义的信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID |
location |
string |
资源位置 |
name |
string |
资源名称 |
properties.customActions |
可以使用此库应用程序中的所有库应用程序版本执行的自定义作列表。 |
|
properties.description |
string |
此库应用程序定义资源的说明。 此属性可更新。 |
properties.endOfLifeDate |
string (date-time) |
库应用程序定义的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。 |
properties.eula |
string |
库应用程序定义的 Eula 协议。 |
properties.privacyStatementUri |
string |
隐私声明 URI。 |
properties.releaseNoteUri |
string |
发行说明 URI。 |
properties.supportedOSType |
此属性允许指定应用程序为其构建的 OS 支持的类型。 可能的值包括:Windows、Linux。 |
|
tags |
object |
资源标记 |
type |
string |
资源类型 |
GalleryApplicationCustomAction
可以使用库应用程序版本执行的自定义作。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
帮助用户了解此自定义作的作用的说明。 |
name |
string |
自定义作的名称。 库应用程序版本内必须是唯一的。 |
parameters |
此自定义作使用的参数 |
|
script |
string |
执行此自定义作时要运行的脚本。 |
GalleryApplicationCustomActionParameter
可传递给库应用程序版本的自定义作的参数的定义。
名称 | 类型 | 说明 |
---|---|---|
defaultValue |
string |
参数的默认值。 仅适用于字符串类型 |
description |
string |
帮助用户了解此参数的含义的说明 |
name |
string |
自定义作的名称。 库应用程序版本内必须是唯一的。 |
required |
boolean |
指示运行自定义作时是否必须传递此参数。 |
type |
指定自定义作参数的类型。 可能的值包括:String、ConfigurationDataBlob 或 LogOutputBlob |
GalleryApplicationCustomActionParameterType
指定自定义作参数的类型。 可能的值包括:String、ConfigurationDataBlob 或 LogOutputBlob
值 | 说明 |
---|---|
ConfigurationDataBlob | |
LogOutputBlob | |
String |
GalleryApplicationUpdate
指定要更新的库应用程序定义的信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID |
name |
string |
资源名称 |
properties.customActions |
可以使用此库应用程序中的所有库应用程序版本执行的自定义作列表。 |
|
properties.description |
string |
此库应用程序定义资源的说明。 此属性可更新。 |
properties.endOfLifeDate |
string (date-time) |
库应用程序定义的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。 |
properties.eula |
string |
库应用程序定义的 Eula 协议。 |
properties.privacyStatementUri |
string |
隐私声明 URI。 |
properties.releaseNoteUri |
string |
发行说明 URI。 |
properties.supportedOSType |
此属性允许指定应用程序为其构建的 OS 支持的类型。 可能的值包括:Windows、Linux。 |
|
tags |
object |
资源标记 |
type |
string |
资源类型 |
InnerError
内部错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
errordetail |
string |
内部错误消息或异常转储。 |
exceptiontype |
string |
异常类型。 |
OperatingSystemTypes
此属性允许指定应用程序为其构建的 OS 支持的类型。 可能的值包括:Windows、Linux。
值 | 说明 |
---|---|
Linux | |
Windows |