你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

App Service Environments - Get Vip Info

获取分配给应用服务环境的 IP 地址的说明。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip?api-version=2023-12-01

URI 参数

名称 必需 类型 说明
name
path True

string

应用服务环境的名称。

resourceGroupName
path True

string

资源所属的资源组的名称。

Regex pattern: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

Azure 订阅 ID。 这是 GUID 格式的字符串 (例如 00000000-0000-0000-0000-0000-0000000000000) 。

api-version
query True

string

API 版本

响应

名称 类型 说明
200 OK

AddressResponse

确定

Other Status Codes

DefaultErrorResponse

App 服务错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Get IP addresses assigned to an App Service Environment.

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/capacities/virtualip?api-version=2023-12-01

Sample Response

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/Microsoft.Web/hostingEnvironments/test-ase/capacities/virtualip",
  "name": "test-ase",
  "type": "Microsoft.Web/hostingEnvironments/capacities",
  "properties": {
    "serviceIpAddress": "20.112.141.120",
    "internalIpAddress": null,
    "outboundIpAddresses": [
      "20.112.141.120"
    ],
    "vipMappings": [
      {
        "virtualIP": "20.112.141.135",
        "internalHttpPort": 20003,
        "internalHttpsPort": 20001,
        "inUse": false,
        "serviceName": null
      },
      {
        "virtualIP": "20.112.141.150",
        "internalHttpPort": 20004,
        "internalHttpsPort": 20002,
        "inUse": false,
        "serviceName": null
      }
    ]
  }
}

定义

名称 说明
AddressResponse

描述main公共 IP 地址和任何额外的虚拟 IP。

DefaultErrorResponse

App 服务错误响应。

Details
Error

错误模型。

VirtualIPMapping

虚拟 IP 映射。

AddressResponse

描述main公共 IP 地址和任何额外的虚拟 IP。

名称 类型 说明
id

string

资源 ID。

kind

string

资源类型。

name

string

资源名称。

properties.internalIpAddress

string

如果应用服务环境处于内部负载均衡模式,则虚拟网络内部 IP 地址。

properties.outboundIpAddresses

string[]

出站连接上显示的 IP 地址。

properties.serviceIpAddress

string

主公共虚拟 IP。

properties.vipMappings

VirtualIPMapping[]

其他虚拟 IP。

type

string

资源类型。

DefaultErrorResponse

App 服务错误响应。

名称 类型 说明
error

Error

错误模型。

Details

名称 类型 说明
code

string

用于以编程方式识别错误的标准化字符串。

message

string

详细的错误说明和调试信息。

target

string

详细的错误说明和调试信息。

Error

错误模型。

名称 类型 说明
code

string

用于以编程方式识别错误的标准化字符串。

details

Details[]

详细错误。

innererror

string

调试错误的详细信息。

message

string

详细的错误说明和调试信息。

target

string

详细的错误说明和调试信息。

VirtualIPMapping

虚拟 IP 映射。

名称 类型 说明
inUse

boolean

是否正在使用虚拟 IP 映射。

internalHttpPort

integer

内部 HTTP 端口。

internalHttpsPort

integer

内部 HTTPS 端口。

serviceName

string

虚拟 IP 分配到的服务的名称

virtualIP

string

虚拟 IP 地址。