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

Batch Account - List Outbound Network Dependencies Endpoints

Lists此 Batch 帐户下的 Batch 计算节点作为 Batch 服务管理的一部分可以调用的终结点。 如果要在指定的虚拟网络中部署池,则必须确保网络允许对这些终结点进行出站访问。 未能允许访问这些终结点可能会导致 Batch 将受影响的节点标记为不可用。 有关在虚拟网络中创建池的详细信息,请参阅 https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints?api-version=2024-02-01

URI 参数

名称 必需 类型 说明
accountName
path True

string

Batch 帐户的名称。

Regex pattern: ^[a-zA-Z0-9]+$

resourceGroupName
path True

string

包含 Batch 帐户的资源组的名称。

subscriptionId
path True

string

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

api-version
query True

string

要与 HTTP 请求一起使用的 API 版本。

响应

名称 类型 说明
200 OK

OutboundEnvironmentEndpointCollection

操作成功。 响应包含出站网络依赖项的列表。

Other Status Codes

CloudError

描述操作失败原因的错误响应。

安全性

azure_auth

Microsoft Entra OAuth 2.0 身份验证代码流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

ListOutboundNetworkDependencies

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/outboundNetworkDependenciesEndpoints?api-version=2024-02-01

Sample Response

{
  "value": [
    {
      "category": "Azure Batch",
      "endpoints": [
        {
          "domainName": "sampleacct.japaneast.batch.azure.com",
          "description": "Applicable to job manager tasks, tasks that use job scoped authentication, or any task that makes calls to Batch.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        },
        {
          "domainName": "japaneast.service.batch.azure.com",
          "description": "Applicable to all Azure Batch pools.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        }
      ]
    },
    {
      "category": "Azure Storage",
      "endpoints": [
        {
          "domainName": "autostorageaccountname.blob.core.windows.net",
          "description": "AutoStorage endpoint for this Batch account. Applicable to all Azure Batch pools under this account.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        },
        {
          "domainName": "*.blob.core.windows.net",
          "description": "Applicable to all Azure Batch pools.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        },
        {
          "domainName": "*.table.core.windows.net",
          "description": "Applicable to all Azure Batch pools.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        },
        {
          "domainName": "*.queue.core.windows.net",
          "description": "Applicable to all Azure Batch pools.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        }
      ]
    },
    {
      "category": "Microsoft Package Repository",
      "endpoints": [
        {
          "domainName": "packages.microsoft.com",
          "description": "Only applicable to pools containing a Mount Configuration. Learn about Mount Configurations in Batch at https://docs.microsoft.com/azure/batch/virtual-file-mount.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        }
      ]
    },
    {
      "category": "Azure Key Vault",
      "endpoints": [
        {
          "domainName": "*.vault.azure.net",
          "description": "Only applicable to pools containing a Disk Encryption Configuration and whose VM size does not support encryption at host. Learn more about disk encryption in Azure Batch at https://docs.microsoft.com/azure/batch/disk-encryption. Learn more about encryption at host and supported VM sizes at https://docs.microsoft.com/azure/virtual-machines/disks-enable-host-based-encryption-portal.",
          "endpointDetails": [
            {
              "port": 443
            }
          ]
        }
      ]
    }
  ]
}

定义

名称 说明
CloudError

Batch 服务的错误响应。

CloudErrorBody

Batch 服务的错误响应。

EndpointDependency

用于访问依赖项的域名和连接详细信息。

EndpointDetail

有关 Batch 服务与终结点之间的连接的详细信息。

OutboundEnvironmentEndpoint

Batch 服务需要出站访问权限的同一服务中相关终结点的集合。

OutboundEnvironmentEndpointCollection

List 操作返回的值。

CloudError

Batch 服务的错误响应。

名称 类型 说明
error

CloudErrorBody

错误响应的正文。

CloudErrorBody

Batch 服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,该消息适用于在用户界面中显示。

target

string

特定错误的目标。 例如,属性的名称出错。

EndpointDependency

用于访问依赖项的域名和连接详细信息。

名称 类型 说明
description

string

有关依赖项及其适用时间的可读补充信息。

domainName

string

依赖项的域名。 域名可能完全限定,也可能包含 * 通配符。

endpointDetails

EndpointDetail[]

此终结点的连接详细信息列表。

EndpointDetail

有关 Batch 服务与终结点之间的连接的详细信息。

名称 类型 说明
port

integer

终结点连接到的端口。

OutboundEnvironmentEndpoint

Batch 服务需要出站访问权限的同一服务中相关终结点的集合。

名称 类型 说明
category

string

Batch 服务连接到的服务类型。

endpoints

EndpointDependency[]

Batch 服务对此服务进行出站调用的终结点。

OutboundEnvironmentEndpointCollection

List 操作返回的值。

名称 类型 说明
nextLink

string

继续标记。

value

OutboundEnvironmentEndpoint[]

列出操作返回的出站网络依赖项终结点的集合。