你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Api Management Service - Backup
创建 API 管理服务到给定的 Azure 存储帐户的备份。 这是长时间运行的操作,可能需要几分钟才能完成。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup?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 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
backupName | True |
string |
要创建/检索的备份文件的名称。 |
containerName | True |
string |
Blob 容器的名称(用于放置/检索备份)。 |
storageAccount | True |
string |
Azure 存储帐户的名称(用于放置/检索备份)。 |
accessKey |
string |
存储帐户访问密钥。 仅当 |
|
accessType |
要用于存储帐户的访问类型。 |
||
clientId |
string |
用户分配的托管标识的客户端 ID。 仅当 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功将 API 管理服务备份到存储帐户。 |
|
202 Accepted |
已接受:位置标头包含可以检查长时间运行操作的状态的 URL。 标头 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 |
ApiManagementBackupWithAccessKey
示例请求
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backup?api-version=2024-05-01
{
"storageAccount": "teststorageaccount",
"containerName": "backupContainer",
"backupName": "apimService1backup_2017_03_19",
"accessType": "AccessKey",
"accessKey": "**************************************************"
}
示例响应
location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2024-05-01
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"tags": {
"tag1": "value1",
"tag2": "value2",
"tag3": "value3"
},
"location": "West US",
"etag": "AAAAAAACXok=",
"properties": {
"publisherEmail": "apim@autorestsdk.com",
"publisherName": "autorestsdk",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2019-12-18T06:26:20.3348609Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"gatewayRegionalUrl": "https://apimService1-westus-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
},
{
"type": "Proxy",
"hostName": "gateway1.msitesting.net",
"negotiateClientCertificate": false,
"certificate": {
"expiry": "2036-01-01T07:00:00+00:00",
"thumbprint": "8E989XXXXXXXXXXXXXXXXB9C2C91F1D174FDB3A2",
"subject": "CN=*.msitesting.net"
},
"defaultSslBinding": true
},
{
"type": "Management",
"hostName": "mgmt.msitesting.net",
"negotiateClientCertificate": false,
"certificate": {
"expiry": "2036-01-01T07:00:00+00:00",
"thumbprint": "8E989XXXXXXXXXXXXXXXXB9C2C91F1D174FDB3A2",
"subject": "CN=*.msitesting.net"
},
"defaultSslBinding": false
},
{
"type": "Portal",
"hostName": "portal1.msitesting.net",
"negotiateClientCertificate": false,
"certificate": {
"expiry": "2036-01-01T07:00:00+00:00",
"thumbprint": "8E989XXXXXXXXXXXXXXXXB9C2C91F1D174FDB3A2",
"subject": "CN=*.msitesting.net"
},
"defaultSslBinding": false
},
{
"type": "ConfigurationApi",
"hostName": "configuration-api.msitesting.net",
"negotiateClientCertificate": false,
"certificate": {
"expiry": "2036-01-01T07:00:00+00:00",
"thumbprint": "8E989XXXXXXXXXXXXXXXXB9C2C91F1D174FDB3A2",
"subject": "CN=*.msitesting.net"
},
"defaultSslBinding": false
}
],
"publicIPAddresses": [
"13.91.32.113"
],
"additionalLocations": [
{
"location": "East US",
"sku": {
"name": "Premium",
"capacity": 1
},
"publicIPAddresses": [
"23.101.138.153"
],
"gatewayRegionalUrl": "https://apimService1-eastus-01.regional.azure-api.net",
"disableGateway": true
}
],
"customProperties": {
"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.Ciphers.TripleDes168": "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": "None",
"disableGateway": false,
"apiVersionConstraint": {
"minApiVersion": "2019-01-01"
}
},
"sku": {
"name": "Premium",
"capacity": 1
}
}
ApiManagementBackupWithSystemManagedIdentity
示例请求
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backup?api-version=2024-05-01
{
"storageAccount": "contosorpstorage",
"containerName": "apim-backups",
"backupName": "backup5",
"accessType": "SystemAssignedManagedIdentity"
}
示例响应
location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2024-05-01
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"tags": {
"Owner": "apimService1"
},
"location": "Central US EUAP",
"etag": "AAAAAAAQM8o=",
"properties": {
"publisherEmail": "apimService1@corp.microsoft.com",
"publisherName": "MS",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2020-04-23T16:26:47.8637967Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"gatewayRegionalUrl": "https://apimService1-centraluseuap-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": true,
"certificateSource": "BuiltIn"
}
],
"publicIPAddresses": [
"52.XXXX.160.66"
],
"customProperties": {
"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.Ciphers.TripleDes168": "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": "None",
"disableGateway": false,
"publicNetworkAccess": "Enabled",
"platformVersion": "stv1"
},
"sku": {
"name": "Premium",
"capacity": 1
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"principalId": "00000000-5fb4-4916-95d4-64b306f9d924",
"tenantId": "00000000-86f1-0000-91ab-2d7cd011db47",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/rg1UserIdentity": {
"principalId": "00000000-a100-4478-0000-d65d98118ba0",
"clientId": "00000000-a154-4830-0000-46a12da1a1e2"
},
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/vpnpremium": {
"principalId": "00000000-9208-4128-af2d-a10d2af9b5a3",
"clientId": "00000000-6328-4db2-0000-ab0e3e7806cf"
}
}
},
"systemData": {
"lastModifiedBy": "contoso@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-30T06:24:57.0008037Z"
}
}
ApiManagementBackupWithUserAssignedManagedIdentity
示例请求
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backup?api-version=2024-05-01
{
"storageAccount": "contosorpstorage",
"containerName": "apim-backups",
"backupName": "backup5",
"accessType": "UserAssignedManagedIdentity",
"clientId": "XXXXX-a154-4830-XXXX-46a12da1a1e2"
}
示例响应
location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2024-05-01
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1",
"name": "apimService1",
"type": "Microsoft.ApiManagement/service",
"tags": {
"Owner": "apimService1"
},
"location": "Central US EUAP",
"etag": "AAAAAAAQM8o=",
"properties": {
"publisherEmail": "apimService1@corp.microsoft.com",
"publisherName": "MS",
"notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2020-04-23T16:26:47.8637967Z",
"gatewayUrl": "https://apimService1.azure-api.net",
"gatewayRegionalUrl": "https://apimService1-centraluseuap-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": true,
"certificateSource": "BuiltIn"
}
],
"publicIPAddresses": [
"52.XXXX.160.66"
],
"customProperties": {
"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.Ciphers.TripleDes168": "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": "None",
"disableGateway": false,
"publicNetworkAccess": "Enabled",
"platformVersion": "stv1"
},
"sku": {
"name": "Premium",
"capacity": 1
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"principalId": "00000000-5fb4-4916-95d4-64b306f9d924",
"tenantId": "00000000-86f1-0000-91ab-2d7cd011db47",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/rg1UserIdentity": {
"principalId": "00000000-a100-4478-0000-d65d98118ba0",
"clientId": "00000000-a154-4830-0000-46a12da1a1e2"
},
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/vpnpremium": {
"principalId": "00000000-9208-4128-af2d-a10d2af9b5a3",
"clientId": "00000000-6328-4db2-0000-ab0e3e7806cf"
}
}
},
"systemData": {
"lastModifiedBy": "contoso@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-30T06:24:57.0008037Z"
}
}
定义
名称 | 说明 |
---|---|
Access |
要用于存储帐户的访问类型。 |
Additional |
其他 API 管理资源位置的说明。 |
Api |
提供给 API 管理服务操作的备份/还原的参数。 |
Api |
Api 管理服务资源的标识属性。 |
Api |
列表或获取响应中的单个 API 管理服务资源。 |
Api |
API 管理服务资源 SKU 属性。 |
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 面向终结点的虚拟网络中进行设置。 |
AccessType
要用于存储帐户的访问类型。
值 | 说明 |
---|---|
AccessKey |
使用访问密钥。 |
SystemAssignedManagedIdentity |
使用系统分配的托管标识。 |
UserAssignedManagedIdentity |
使用用户分配的托管标识。 |
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[] |
一个可用性区域列表,表示资源需要来自何处。 |
ApiManagementServiceBackupRestoreParameters
提供给 API 管理服务操作的备份/还原的参数。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
accessKey |
string |
存储帐户访问密钥。 仅当 |
|
accessType | AccessKey |
要用于存储帐户的访问类型。 |
|
backupName |
string |
要创建/检索的备份文件的名称。 |
|
clientId |
string |
用户分配的托管标识的客户端 ID。 仅当 |
|
containerName |
string |
Blob 容器的名称(用于放置/检索备份)。 |
|
storageAccount |
string |
Azure 存储帐户的名称(用于放置/检索备份)。 |
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 的名称。 |
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 |
该服务不属于任何虚拟网络。 |