共用方式為


Batch Account - List Outbound Network Dependencies Endpoints

列出此 Batch 帳戶下 Batch 計算節點可呼叫作為 Batch 服務管理的一部分的端點。 如果您要在指定的虛擬網路內部署集區,您必須確定您的網路允許這些端點的輸出存取。 無法允許存取這些端點可能會導致 Batch 將受影響的節點標示為無法使用。 如需在虛擬網路內建立集區的詳細資訊,請參閱 https://learn.microsoft.com/azure/batch/batch-virtual-network

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

URI 參數

名稱 位於 必要 類型 Description
accountName
path True

string

minLength: 3
maxLength: 24
pattern: ^[a-zA-Z0-9]+$

批次帳號的名稱必須在該地區內獨一無二。 批次帳號名稱長度必須介於 3 到 24 字元之間,且只能使用數字和小寫字母。 此名稱作為 DNS 名稱的一部分,用於存取該帳號所建立區域的批次服務。 例如: http://accountname.region.batch.azure.com/

resourceGroupName
path True

string

minLength: 1
maxLength: 90

資源群組的名稱。 名稱不區分大小寫。

subscriptionId
path True

string (uuid)

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

minLength: 1

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

OutboundEnvironmentEndpointCollection

Azure 作業已順利完成。

Other Status Codes

CloudError

未預期的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 流程。

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

ListOutboundNetworkDependencies

範例要求

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

範例回覆

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

定義

名稱 Description
CloudError

Batch 服務的錯誤回應。

CloudErrorBody

Batch 服務的錯誤回應。

EndpointDependency

用來存取相依性之功能變數名稱和連線詳細數據。

EndpointDetail

Batch 服務與端點之間連線的詳細數據。

OutboundEnvironmentEndpoint

來自 Batch 服務需要輸出存取之相同服務的相關端點集合。

OutboundEnvironmentEndpointCollection

List 作業所傳回的值。

CloudError

Batch 服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

錯誤回應的主體。

CloudErrorBody

Batch 服務的錯誤回應。

名稱 類型 Description
code

string

錯誤的識別碼。 程序代碼是不變的,而且是要以程序設計方式取用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中的屬性名稱。

EndpointDependency

用來存取相依性之功能變數名稱和連線詳細數據。

名稱 類型 Description
description

string

人類可讀的相依性及適用時機的補充資訊。

domainName

string

相依性功能變數名稱。 功能變數名稱可能完整或可能包含 * 通配符。

endpointDetails

EndpointDetail[]

此端點的連線詳細數據清單。

EndpointDetail

Batch 服務與端點之間連線的詳細數據。

名稱 類型 Description
port

integer (int32)

端點所連接的埠。

OutboundEnvironmentEndpoint

來自 Batch 服務需要輸出存取之相同服務的相關端點集合。

名稱 類型 Description
category

string

Batch 服務所連線的服務類型。

endpoints

EndpointDependency[]

Batch 服務進行輸出呼叫之此服務的端點。

OutboundEnvironmentEndpointCollection

List 作業所傳回的值。

名稱 類型 Description
nextLink

string (uri)

項目下一頁的連結

value

OutboundEnvironmentEndpoint[]

此頁面上的 OutboundEnvironmentEndpoint 專案