你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Api Management Service - Update
更新现有的 API 管理服务。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}?api-version=2024-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
API 管理服务的名称。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
identity |
Api 管理服务的托管服务标识。 |
|
properties.additionalLocations |
API 管理服务的其他数据中心位置。 |
|
properties.apiVersionConstraint |
API 管理服务的控制平面 API 版本约束。 |
|
properties.certificates |
需要在 API 管理服务中安装的证书列表。 可安装的最大支持证书为 10。 |
|
properties.configurationApi |
API 管理服务的配置 API 配置。 |
|
properties.customProperties |
object |
API 管理服务的自定义属性。 |
properties.developerPortalStatus |
此 API 管理服务中开发人员门户的状态。 |
|
properties.disableGateway |
boolean |
属性仅适用于部署在多个位置的 Api 管理服务。 这可用于禁用主区域中的网关。 |
properties.enableClientCertificate |
boolean |
仅用于消耗 SKU 服务的属性。 这会强制在向网关的每个请求上显示客户端证书。 这样,便可以在网关上的策略中对证书进行身份验证。 |
properties.hostnameConfigurations |
API 管理服务的自定义主机名配置。 |
|
properties.legacyPortalStatus |
API 管理服务中旧门户的状态。 |
|
properties.natGatewayState |
属性可用于为此 API 管理服务启用 NAT 网关。 |
|
properties.notificationSenderEmail |
string maxLength: 100 |
将从中发送通知的电子邮件地址。 |
properties.privateEndpointConnections |
此服务的专用终结点连接列表。 |
|
properties.publicIpAddressId |
string |
要与区域中部署的虚拟网络服务关联的基于公共标准 SKU IP V4 的 IP 地址。 仅支持在虚拟网络中部署开发人员和高级 SKU。 |
properties.publicNetworkAccess |
是否允许此 API 管理服务访问公共终结点。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled”。 如果为“Disabled”,则专用终结点是独占访问方法。 默认值为“Enabled” |
|
properties.publisherEmail |
string maxLength: 100 |
发布者电子邮件。 |
properties.publisherName |
string maxLength: 100 |
发布者名称。 |
properties.restore |
boolean |
取消删除 Api 管理服务(如果以前是软删除的)。 如果指定了此标志并设置为 True,将忽略所有其他属性。 |
properties.virtualNetworkConfiguration |
API 管理服务的虚拟网络配置。 |
|
properties.virtualNetworkType |
需要在其中配置 API 管理服务的 VPN 类型。 无(默认值)表示 API 管理服务不是任何虚拟网络的一部分,外部意味着 API 管理部署是在具有面向 Internet 的终结点的虚拟网络内设置的,内部意味着 API 管理部署仅在具有 Intranet 面向终结点的虚拟网络中进行设置。 |
|
sku |
API 管理服务的 SKU 属性。 |
|
tags |
object |
资源标记。 |
zones |
string[] |
一个可用性区域列表,表示资源需要来自何处。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
服务已成功更新。 |
|
202 Accepted |
服务更新请求已接受。 标头 location: string |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Api |
Api |
Api |
ApiManagementUpdateServiceDisableTls10
示例请求
PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1?api-version=2024-05-01
{
"properties": {
"customProperties": {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false"
}
}
}
示例响应
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"tags": {
"Owner": "sasolank",
"UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3",
"Reserved": "",
"TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT",
"Pool": "Manual",
"TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT"
},
"location": "West US",
"etag": "AAAAAAAYRPs=",
"properties": {
"publisherEmail": "admin@live.com",
"publisherName": "Contoso",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2017-06-29T17:50:42.3191122Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"portalUrl": "https://apimService1.portal.azure-api.net",
"managementApiUrl": "https://apimService1.management.azure-api.net",
"scmUrl": "https://apimService1.scm.azure-api.net",
"hostnameConfigurations": [],
"publicIPAddresses": [
"40.86.176.232"
],
"customProperties": {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False"
},
"virtualNetworkType": "None"
},
"sku": {
"name": "Standard",
"capacity": 1
}
}
ApiManagementUpdateServicePublisherDetails
示例请求
PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1?api-version=2024-05-01
{
"properties": {
"publisherEmail": "foobar@live.com",
"publisherName": "Contoso Vnext"
}
}
示例响应
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"tags": {
"Owner": "sasolank",
"UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3",
"Reserved": "",
"TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT",
"Pool": "Manual",
"TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT"
},
"location": "West US",
"etag": "AAAAAAAYRPs=",
"properties": {
"publisherEmail": "foobar@live.com",
"publisherName": "Contoso Vnext",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2017-06-29T17:50:42.3191122Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"portalUrl": "https://apimService1.portal.azure-api.net",
"managementApiUrl": "https://apimService1.management.azure-api.net",
"scmUrl": "https://apimService1.scm.azure-api.net",
"hostnameConfigurations": [],
"publicIPAddresses": [
"40.86.176.232"
],
"customProperties": {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False"
},
"virtualNetworkType": "None"
},
"sku": {
"name": "Standard",
"capacity": 1
}
}
ApiManagementUpdateServiceToNewVnetAndAvailabilityZones
示例请求
PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1?api-version=2024-05-01
{
"properties": {
"additionalLocations": [
{
"location": "Australia East",
"sku": {
"name": "Premium",
"capacity": 3
},
"zones": [
"1",
"2",
"3"
],
"virtualNetworkConfiguration": {
"subnetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/apimaeavnet/subnets/default"
},
"publicIpAddressId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/apim-australia-east-publicip"
}
],
"virtualNetworkConfiguration": {
"subnetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-apim-japaneast/subnets/apim2"
},
"virtualNetworkType": "External",
"publicIpAddressId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/publicip-apim-japan-east"
},
"sku": {
"name": "Premium",
"capacity": 3
},
"zones": [
"1",
"2",
"3"
]
}
示例响应
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-05-01&asyncResponse
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"location": "Japan East",
"etag": "AAAAAAAWBIU=",
"properties": {
"publisherEmail": "contoso@microsoft.com",
"publisherName": "apimPublisher",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-04-08T23:41:35.6447381Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"gatewayRegionalUrl": "https://apimService1-japaneast-01.regional.azure-api.net",
"portalUrl": "https://apimService1.portal.azure-api.net",
"developerPortalUrl": "https://apimService1.developer.azure-api.net",
"managementApiUrl": "https://apimService1.management.azure-api.net",
"scmUrl": "https://apimService1.scm.azure-api.net",
"hostnameConfigurations": [
{
"type": "Proxy",
"hostName": "apimService1.azure-api.net",
"negotiateClientCertificate": false,
"defaultSslBinding": false,
"certificateSource": "BuiltIn"
},
{
"type": "Proxy",
"hostName": "mycustomdomain.int-azure-api.net",
"negotiateClientCertificate": false,
"certificate": {
"expiry": "2022-06-09T23:59:59+00:00",
"thumbprint": "2994B5FFB8F76B3C687D324A8DEE0432C1ED18CD",
"subject": "CN=mycustomdomain.int-azure-api.net"
},
"defaultSslBinding": true,
"certificateSource": "Managed"
}
],
"publicIPAddresses": [
"20.78.248.217"
],
"additionalLocations": [
{
"location": "Australia East",
"sku": {
"name": "Premium",
"capacity": 3
},
"zones": [
"1",
"2",
"3"
],
"publicIPAddresses": [
"20.213.1.35"
],
"virtualNetworkConfiguration": {
"subnetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/apimaeavnet/subnets/default"
},
"gatewayRegionalUrl": "https://apimService1-australiaeast-01.regional.azure-api.net",
"disableGateway": false,
"publicIpAddressId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/apim-australia-east-publicip",
"platformVersion": "stv2"
}
],
"virtualNetworkConfiguration": {
"subnetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-apim-japaneast/subnets/apim2"
},
"customProperties": {
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_GCM_SHA256": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA256": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_256_CBC_SHA": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "false",
"Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "false"
},
"virtualNetworkType": "Internal",
"disableGateway": false,
"publicIpAddressId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/publicip-apim-japan-east",
"publicNetworkAccess": "Enabled",
"platformVersion": "stv2"
},
"sku": {
"name": "Premium",
"capacity": 3
},
"zones": [
"1",
"2",
"3"
],
"systemData": {
"lastModifiedBy": "contoso@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-01-21T20:04:21.6108974Z"
}
}
定义
名称 | 说明 |
---|---|
Additional |
其他 API 管理资源位置的说明。 |
Api |
Api 管理服务资源的标识属性。 |
Api |
列表或获取响应中的单个 API 管理服务资源。 |
Api |
API 管理服务资源 SKU 属性。 |
Api |
提供给更新 Api 管理服务的参数。 |
Apim |
用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从服务中删除任何标识。 |
Api |
API 管理服务的控制平面 API 版本约束。 |
Arm |
ARM 资源 ID 的包装器 |
Certificate |
证书配置,由不受信任的中间证书和根证书组成。 |
Certificate |
SSL 证书信息。 |
Certificate |
证书源。 |
Certificate |
证书状态。 |
Configuration |
有关 API 管理服务的配置 API 的信息。 |
created |
创建资源的标识的类型。 |
developer |
此 API 管理服务中开发人员门户的状态。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Hostname |
自定义主机名配置。 |
Hostname |
主机名类型。 |
Legacy |
指示是否应在 API 管理服务上公开旧配置 API (v1)。 值是可选的,但必须是“Enabled”或“Disabled”。 如果“已禁用”,旧版配置 API(v1)将不适用于自承载网关。 默认值为“Enabled” |
Legacy |
API 管理服务中旧门户的状态。 |
Nat |
属性可用于为此 API 管理服务启用 NAT 网关。 |
Platform |
运行服务的计算平台版本。 |
Private |
专用终结点连接状态。 |
Private |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
Public |
是否允许此 API 管理服务访问公共终结点。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled”。 如果为“Disabled”,则专用终结点是独占访问方法。 默认值为“Enabled” |
Remote |
远程专用终结点连接资源。 |
Sku |
Sku 的名称。 |
system |
与创建和上次修改资源相关的元数据。 |
User |
|
Virtual |
配置部署 API 管理服务的虚拟网络。 |
Virtual |
需要在其中配置 API 管理服务的 VPN 类型。 无(默认值)表示 API 管理服务不是任何虚拟网络的一部分,外部意味着 API 管理部署是在具有面向 Internet 的终结点的虚拟网络内设置的,内部意味着 API 管理部署仅在具有 Intranet 面向终结点的虚拟网络中进行设置。 |
AdditionalLocation
其他 API 管理资源位置的说明。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
disableGateway |
boolean |
False |
属性仅适用于部署在多个位置的 Api 管理服务。 这可用于在此附加位置中禁用网关。 |
gatewayRegionalUrl |
string |
区域中 API 管理服务的网关 URL。 |
|
location |
string |
Azure 数据中心区域中其他区域的位置名称。 |
|
natGatewayState | Disabled |
属性可用于为此 API 管理服务启用 NAT 网关。 |
|
outboundPublicIPAddresses |
string[] |
与 NAT 网关部署的服务关联的出站公共 IPV4 地址前缀。 仅适用于 stv2 平台上的高级 SKU。 |
|
platformVersion |
运行服务的计算平台版本。 |
||
privateIPAddresses |
string[] |
API 管理服务的专用静态负载均衡 IP 地址,该地址部署在特定附加位置的内部虚拟网络中。 仅适用于基本、标准、高级和独立 SKU。 |
|
publicIPAddresses |
string[] |
API 管理服务的公共静态负载均衡 IP 地址位于其他位置。 仅适用于基本、标准、高级和独立 SKU。 |
|
publicIpAddressId |
string |
要与位置中部署的虚拟网络服务关联的基于公共标准 SKU IP V4 的 IP 地址。 仅支持在虚拟网络中部署高级 SKU。 |
|
sku |
API 管理服务的 SKU 属性。 |
||
virtualNetworkConfiguration |
位置的虚拟网络配置。 |
||
zones |
string[] |
一个可用性区域列表,表示资源需要来自何处。 |
ApiManagementServiceIdentity
Api 管理服务资源的标识属性。
名称 | 类型 | 说明 |
---|---|---|
principalId |
string (uuid) |
标识的主体 ID。 |
tenantId |
string (uuid) |
标识的客户端租户 ID。 |
type |
用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从服务中删除任何标识。 |
|
userAssignedIdentities |
<string,
User |
与资源关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 |
ApiManagementServiceResource
列表或获取响应中的单个 API 管理服务资源。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
etag |
string |
资源的 ETag。 |
|
id |
string |
资源 ID。 |
|
identity |
Api 管理服务的托管服务标识。 |
||
location |
string |
资源位置。 |
|
name |
string |
资源名称。 |
|
properties.additionalLocations |
API 管理服务的其他数据中心位置。 |
||
properties.apiVersionConstraint |
API 管理服务的控制平面 API 版本约束。 |
||
properties.certificates |
需要在 API 管理服务中安装的证书列表。 可安装的最大支持证书为 10。 |
||
properties.configurationApi |
API 管理服务的配置 API 配置。 |
||
properties.createdAtUtc |
string (date-time) |
API 管理服务的创建 UTC 日期。日期符合以下格式:按 ISO 8601 标准指定的 |
|
properties.customProperties |
object |
API 管理服务的自定义属性。 |
|
properties.developerPortalStatus | Enabled |
此 API 管理服务中开发人员门户的状态。 |
|
properties.developerPortalUrl |
string |
API 管理服务的 DEveloper 门户终结点 URL。 |
|
properties.disableGateway |
boolean |
False |
属性仅适用于部署在多个位置的 Api 管理服务。 这可用于禁用主区域中的网关。 |
properties.enableClientCertificate |
boolean |
False |
仅用于消耗 SKU 服务的属性。 这会强制在向网关的每个请求上显示客户端证书。 这样,便可以在网关上的策略中对证书进行身份验证。 |
properties.gatewayRegionalUrl |
string |
默认区域中 API 管理服务的网关 URL。 |
|
properties.gatewayUrl |
string |
API 管理服务的网关 URL。 |
|
properties.hostnameConfigurations |
API 管理服务的自定义主机名配置。 |
||
properties.legacyPortalStatus | Enabled |
API 管理服务中旧门户的状态。 |
|
properties.managementApiUrl |
string |
API 管理服务的管理 API 终结点 URL。 |
|
properties.natGatewayState | Disabled |
属性可用于为此 API 管理服务启用 NAT 网关。 |
|
properties.notificationSenderEmail |
string maxLength: 100 |
将从中发送通知的电子邮件地址。 |
|
properties.outboundPublicIPAddresses |
string[] |
与 NAT 网关部署的服务关联的出站公共 IPV4 地址前缀。 仅适用于 stv2 平台上的高级 SKU。 |
|
properties.platformVersion |
在此位置运行服务的计算平台版本。 |
||
properties.portalUrl |
string |
API 管理服务的发布者门户终结点 URL。 |
|
properties.privateEndpointConnections |
此服务的专用终结点连接列表。 |
||
properties.privateIPAddresses |
string[] |
主要区域中部署在内部虚拟网络中的 API 管理服务的专用静态负载均衡 IP 地址。 仅适用于基本、标准、高级和独立 SKU。 |
|
properties.provisioningState |
string |
API 管理服务的当前预配状态,可以是下列项之一:Created/Activating/Succeeded/Updateing/Failed/Stopped/Terminating/TerminationFailed/Deleted。 |
|
properties.publicIPAddresses |
string[] |
主要区域中 API 管理服务的公共静态负载均衡 IP 地址。 仅适用于基本、标准、高级和独立 SKU。 |
|
properties.publicIpAddressId |
string |
要与区域中部署的虚拟网络服务关联的基于公共标准 SKU IP V4 的 IP 地址。 仅支持在虚拟网络中部署开发人员和高级 SKU。 |
|
properties.publicNetworkAccess |
是否允许此 API 管理服务访问公共终结点。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled”。 如果为“Disabled”,则专用终结点是独占访问方法。 默认值为“Enabled” |
||
properties.publisherEmail |
string maxLength: 100 |
发布者电子邮件。 |
|
properties.publisherName |
string maxLength: 100 |
发布者名称。 |
|
properties.restore |
boolean |
False |
取消删除 Api 管理服务(如果以前是软删除的)。 如果指定了此标志并设置为 True,将忽略所有其他属性。 |
properties.scmUrl |
string |
API 管理服务的 SCM 终结点 URL。 |
|
properties.targetProvisioningState |
string |
API 管理服务的预配状态,该服务以长时间运行的作为目标。 |
|
properties.virtualNetworkConfiguration |
API 管理服务的虚拟网络配置。 |
||
properties.virtualNetworkType | None |
需要在其中配置 API 管理服务的 VPN 类型。 无(默认值)表示 API 管理服务不是任何虚拟网络的一部分,外部意味着 API 管理部署是在具有面向 Internet 的终结点的虚拟网络内设置的,内部意味着 API 管理部署仅在具有 Intranet 面向终结点的虚拟网络中进行设置。 |
|
sku |
API 管理服务的 SKU 属性。 |
||
systemData |
与创建和上次修改资源相关的元数据。 |
||
tags |
object |
资源标记。 |
|
type |
string |
API 管理资源的资源类型设置为 Microsoft.ApiManagement。 |
|
zones |
string[] |
一个可用性区域列表,表示资源需要来自何处。 |
ApiManagementServiceSkuProperties
API 管理服务资源 SKU 属性。
名称 | 类型 | 说明 |
---|---|---|
capacity |
integer (int32) |
SKU 的容量(SKU 的已部署单位数)。 对于消耗 SKU 容量,必须指定为 0。 |
name |
Sku 的名称。 |
ApiManagementServiceUpdateParameters
提供给更新 Api 管理服务的参数。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
etag |
string |
资源的 ETag。 |
|
id |
string |
资源 ID。 |
|
identity |
Api 管理服务的托管服务标识。 |
||
name |
string |
资源名称。 |
|
properties.additionalLocations |
API 管理服务的其他数据中心位置。 |
||
properties.apiVersionConstraint |
API 管理服务的控制平面 API 版本约束。 |
||
properties.certificates |
需要在 API 管理服务中安装的证书列表。 可安装的最大支持证书为 10。 |
||
properties.configurationApi |
API 管理服务的配置 API 配置。 |
||
properties.createdAtUtc |
string (date-time) |
API 管理服务的创建 UTC 日期。日期符合以下格式:按 ISO 8601 标准指定的 |
|
properties.customProperties |
object |
API 管理服务的自定义属性。 |
|
properties.developerPortalStatus | Enabled |
此 API 管理服务中开发人员门户的状态。 |
|
properties.developerPortalUrl |
string |
API 管理服务的 DEveloper 门户终结点 URL。 |
|
properties.disableGateway |
boolean |
False |
属性仅适用于部署在多个位置的 Api 管理服务。 这可用于禁用主区域中的网关。 |
properties.enableClientCertificate |
boolean |
False |
仅用于消耗 SKU 服务的属性。 这会强制在向网关的每个请求上显示客户端证书。 这样,便可以在网关上的策略中对证书进行身份验证。 |
properties.gatewayRegionalUrl |
string |
默认区域中 API 管理服务的网关 URL。 |
|
properties.gatewayUrl |
string |
API 管理服务的网关 URL。 |
|
properties.hostnameConfigurations |
API 管理服务的自定义主机名配置。 |
||
properties.legacyPortalStatus | Enabled |
API 管理服务中旧门户的状态。 |
|
properties.managementApiUrl |
string |
API 管理服务的管理 API 终结点 URL。 |
|
properties.natGatewayState | Disabled |
属性可用于为此 API 管理服务启用 NAT 网关。 |
|
properties.notificationSenderEmail |
string maxLength: 100 |
将从中发送通知的电子邮件地址。 |
|
properties.outboundPublicIPAddresses |
string[] |
与 NAT 网关部署的服务关联的出站公共 IPV4 地址前缀。 仅适用于 stv2 平台上的高级 SKU。 |
|
properties.platformVersion |
在此位置运行服务的计算平台版本。 |
||
properties.portalUrl |
string |
API 管理服务的发布者门户终结点 URL。 |
|
properties.privateEndpointConnections |
此服务的专用终结点连接列表。 |
||
properties.privateIPAddresses |
string[] |
主要区域中部署在内部虚拟网络中的 API 管理服务的专用静态负载均衡 IP 地址。 仅适用于基本、标准、高级和独立 SKU。 |
|
properties.provisioningState |
string |
API 管理服务的当前预配状态,可以是下列项之一:Created/Activating/Succeeded/Updateing/Failed/Stopped/Terminating/TerminationFailed/Deleted。 |
|
properties.publicIPAddresses |
string[] |
主要区域中 API 管理服务的公共静态负载均衡 IP 地址。 仅适用于基本、标准、高级和独立 SKU。 |
|
properties.publicIpAddressId |
string |
要与区域中部署的虚拟网络服务关联的基于公共标准 SKU IP V4 的 IP 地址。 仅支持在虚拟网络中部署开发人员和高级 SKU。 |
|
properties.publicNetworkAccess |
是否允许此 API 管理服务访问公共终结点。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled”。 如果为“Disabled”,则专用终结点是独占访问方法。 默认值为“Enabled” |
||
properties.publisherEmail |
string maxLength: 100 |
发布者电子邮件。 |
|
properties.publisherName |
string maxLength: 100 |
发布者名称。 |
|
properties.restore |
boolean |
False |
取消删除 Api 管理服务(如果以前是软删除的)。 如果指定了此标志并设置为 True,将忽略所有其他属性。 |
properties.scmUrl |
string |
API 管理服务的 SCM 终结点 URL。 |
|
properties.targetProvisioningState |
string |
API 管理服务的预配状态,该服务以长时间运行的作为目标。 |
|
properties.virtualNetworkConfiguration |
API 管理服务的虚拟网络配置。 |
||
properties.virtualNetworkType | None |
需要在其中配置 API 管理服务的 VPN 类型。 无(默认值)表示 API 管理服务不是任何虚拟网络的一部分,外部意味着 API 管理部署是在具有面向 Internet 的终结点的虚拟网络内设置的,内部意味着 API 管理部署仅在具有 Intranet 面向终结点的虚拟网络中进行设置。 |
|
sku |
API 管理服务的 SKU 属性。 |
||
tags |
object |
资源标记。 |
|
type |
string |
API 管理资源的资源类型设置为 Microsoft.ApiManagement。 |
|
zones |
string[] |
一个可用性区域列表,表示资源需要来自何处。 |
ApimIdentityType
用于资源的标识类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将从服务中删除任何标识。
值 | 说明 |
---|---|
None | |
SystemAssigned | |
SystemAssigned, UserAssigned | |
UserAssigned |
ApiVersionConstraint
API 管理服务的控制平面 API 版本约束。
名称 | 类型 | 说明 |
---|---|---|
minApiVersion |
string |
限制对 API 管理服务的控制平面 API 调用,其版本等于或高于此值。 |
ArmIdWrapper
ARM 资源 ID 的包装器
名称 | 类型 | 说明 |
---|---|---|
id |
string |
CertificateConfiguration
证书配置,由不受信任的中间证书和根证书组成。
名称 | 类型 | 说明 |
---|---|---|
certificate |
证书信息。 |
|
certificatePassword |
string |
证书密码。 |
encodedCertificate |
string |
Base64 编码证书。 |
storeName |
enum:
|
System.Security.Cryptography.x509certificates.StoreName 证书存储位置。 只有 Root 和 CertificateAuthority 是有效位置。 |
CertificateInformation
SSL 证书信息。
名称 | 类型 | 说明 |
---|---|---|
expiry |
string (date-time) |
证书的到期日期。 日期符合以下格式:按 ISO 8601 标准指定的 |
subject |
string |
证书的使用者。 |
thumbprint |
string |
证书的指纹。 |
CertificateSource
证书源。
值 | 说明 |
---|---|
BuiltIn | |
Custom | |
KeyVault | |
Managed |
CertificateStatus
证书状态。
值 | 说明 |
---|---|
Completed | |
Failed | |
InProgress |
ConfigurationApi
有关 API 管理服务的配置 API 的信息。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
legacyApi | Enabled |
指示是否应在 API 管理服务上公开旧配置 API (v1)。 值是可选的,但必须是“Enabled”或“Disabled”。 如果“已禁用”,旧版配置 API(v1)将不适用于自承载网关。 默认值为“Enabled” |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
developerPortalStatus
此 API 管理服务中开发人员门户的状态。
值 | 说明 |
---|---|
Disabled |
为服务禁用开发人员门户。 |
Enabled |
开发人员门户已为该服务启用。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
HostnameConfiguration
自定义主机名配置。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
certificate |
证书信息。 |
||
certificatePassword |
string |
证书密码。 |
|
certificateSource |
证书源。 |
||
certificateStatus |
证书状态。 |
||
defaultSslBinding |
boolean |
False |
指定 true 以设置与此主机名关联的证书作为默认 SSL 证书。 如果客户端未发送 SNI 标头,则这是将质询的证书。 如果某个服务启用了多个自定义主机名,并且需要确定默认 ssl 证书,则此属性非常有用。 此设置仅适用于网关主机名类型。 |
encodedCertificate |
string |
Base64 编码证书。 |
|
hostName |
string |
在 Api 管理服务上配置的主机名。 |
|
identityClientId |
string |
Azure AD 生成的系统或用户分配的托管标识 clientId,该客户端有权访问包含 SSL 证书的 keyVault。 |
|
keyVaultId |
string |
包含 Ssl 证书的 KeyVault 机密的 URL。 如果提供了包含版本的绝对 URL,则 ssl 证书的自动更新将不起作用。 这要求使用 aka.ms/apimmsi 配置 Api 管理服务。 机密的类型应 为 application/x-pkcs12 |
|
negotiateClientCertificate |
boolean |
False |
指定 true 以始终协商主机名上的客户端证书。 默认值为 false。 |
type |
主机名类型。 |
HostnameType
主机名类型。
值 | 说明 |
---|---|
ConfigurationApi | |
DeveloperPortal | |
Management | |
Portal | |
Proxy | |
Scm |
LegacyApiState
指示是否应在 API 管理服务上公开旧配置 API (v1)。 值是可选的,但必须是“Enabled”或“Disabled”。 如果“已禁用”,旧版配置 API(v1)将不适用于自承载网关。 默认值为“Enabled”
值 | 说明 |
---|---|
Disabled |
旧版配置 API(v1)已为服务禁用,自承载网关无法连接到它。 |
Enabled |
为服务启用了旧配置 API(v1),自承载网关可以连接到该服务。 |
LegacyPortalStatus
API 管理服务中旧门户的状态。
值 | 说明 |
---|---|
Disabled |
为服务禁用旧门户。 |
Enabled |
为服务启用旧门户。 |
NatGatewayState
属性可用于为此 API 管理服务启用 NAT 网关。
值 | 说明 |
---|---|
Disabled |
为服务禁用 Nat 网关。 |
Enabled |
为服务启用 Nat 网关。 |
PlatformVersion
运行服务的计算平台版本。
值 | 说明 |
---|---|
mtv1 |
在多租户 V1 平台上运行服务的平台。 |
stv1 |
在单租户 V1 平台上运行服务的平台。 |
stv2 |
在单租户 V2 平台上运行服务的平台。 |
stv2.1 |
在较新的硬件上的单租户 V2 平台上运行服务的平台。 |
undetermined |
无法确定平台版本,因为未部署计算平台。 |
PrivateEndpointServiceConnectionStatus
专用终结点连接状态。
值 | 说明 |
---|---|
Approved | |
Pending | |
Rejected |
PrivateLinkServiceConnectionState
有关服务使用者与提供程序之间的连接状态的信息集合。
名称 | 类型 | 说明 |
---|---|---|
actionsRequired |
string |
一条消息,指示服务提供商上的更改是否需要对使用者进行任何更新。 |
description |
string |
批准/拒绝连接的原因。 |
status |
指示连接是否已被服务的所有者批准/拒绝/删除。 |
PublicNetworkAccess
是否允许此 API 管理服务访问公共终结点。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled”。 如果为“Disabled”,则专用终结点是独占访问方法。 默认值为“Enabled”
值 | 说明 |
---|---|
Disabled | |
Enabled |
RemotePrivateEndpointConnectionWrapper
远程专用终结点连接资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点连接资源 ID |
name |
string |
专用终结点连接名称 |
properties.groupIds |
string[] |
所有组 ID。 |
properties.privateEndpoint |
专用终结点的资源。 |
|
properties.privateLinkServiceConnectionState |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
|
properties.provisioningState |
string |
专用终结点连接资源的预配状态。 |
type |
string |
专用终结点连接资源类型 |
SkuType
Sku 的名称。
值 | 说明 |
---|---|
Basic |
Api 管理的基本 SKU。 |
BasicV2 |
Api 管理的 BasicV2 SKU。 |
Consumption |
API 管理的消耗 SKU。 |
Developer |
Api 管理的开发人员 SKU。 |
Isolated |
独立 API 管理的 SKU。 |
Premium |
Api 管理的高级 SKU。 |
Standard |
Api 管理的标准 SKU。 |
StandardV2 |
Api 管理的 StandardV2 SKU。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
UserIdentityProperties
名称 | 类型 | 说明 |
---|---|---|
clientId |
string |
用户分配标识的客户端 ID。 |
principalId |
string |
用户分配标识的主体 ID。 |
VirtualNetworkConfiguration
配置部署 API 管理服务的虚拟网络。
名称 | 类型 | 说明 |
---|---|---|
subnetResourceId |
string pattern: ^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$ |
要在其中部署 API 管理服务的虚拟网络中子网的完整资源 ID。 |
subnetname |
string |
子网的名称。 |
vnetid |
string |
虚拟网络 ID。 这通常是 GUID。 默认情况下,需要 NULL GUID。 |
VirtualNetworkType
需要在其中配置 API 管理服务的 VPN 类型。 无(默认值)表示 API 管理服务不是任何虚拟网络的一部分,外部意味着 API 管理部署是在具有面向 Internet 的终结点的虚拟网络内设置的,内部意味着 API 管理部署仅在具有 Intranet 面向终结点的虚拟网络中进行设置。
值 | 说明 |
---|---|
External |
该服务是虚拟网络的一部分,可从 Internet 访问。 |
Internal |
该服务是虚拟网络的一部分,它只能从虚拟网络内部访问。 |
None |
该服务不属于任何虚拟网络。 |