File - List From Compute Node

指定したコンピューティング ノードのタスク ディレクトリ内のすべてのファイルを一覧表示します。

GET {batchUrl}/pools/{poolId}/nodes/{nodeId}/files?api-version=2023-11-01.18.0
GET {batchUrl}/pools/{poolId}/nodes/{nodeId}/files?$filter={$filter}&recursive={recursive}&maxresults={maxresults}&timeout={timeout}&api-version=2023-11-01.18.0

URI パラメーター

名前 / 必須 説明
batchUrl
path True

string

すべてのAzure Batchサービス要求のベース URL。

nodeId
path True

string

ファイルを一覧表示するコンピューティング ノードの ID。

poolId
path True

string

コンピューティング ノードを含むプールの ID。

api-version
query True

string

クライアント API のバージョン。

$filter
query

string

OData $filter 句。 このフィルターの構築の詳細については、「」を参照してください https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files

maxresults
query

integer

int32

応答で返される項目の最大数。 最大 1,000 個のファイルを返すことができます。

recursive
query

boolean

ディレクトリの子を一覧表示するかどうか。

timeout
query

integer

int32

サーバーが要求の処理に費やすことができる最大時間 (秒単位)。 既定値は 30 秒です。

要求ヘッダー

Media Types: "application/json; odata=minimalmetadata"

名前 必須 説明
client-request-id

string

uuid

呼び出し元によって生成された要求 ID。中かっこなどの装飾のない GUID の形式 (9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 など)。

return-client-request-id

boolean

サーバーが応答で client-request-id を返す必要があるかどうか。

ocp-date

string

date-time-rfc1123

要求が発行された時刻。 クライアント ライブラリは通常、これを現在のシステム クロック時間に設定します。REST API を直接呼び出す場合は、明示的に設定します。

応答

名前 説明
200 OK

NodeFileListResult

ファイルの一覧を含む応答。

Headers

  • client-request-id: string
  • request-id: string
  • ETag: string
  • Last-Modified: string
Other Status Codes

BatchError

Batch サービスからのエラー。

セキュリティ

azure_auth

Microsoft Entra OAuth 2.0 認証コード フロー

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

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Authorization

Type: apiKey
In: header

File list from node

Sample Request

GET account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_1-20161122t193202z/files?recursive=False&api-version=2023-11-01.18.0


Sample Response

{
  "value": [
    {
      "name": "shared",
      "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/shared",
      "isDirectory": true
    },
    {
      "name": "startup\\ProcessEnv.cmd",
      "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\ProcessEnv.cmd",
      "isDirectory": false,
      "properties": {
        "creationTime": "2014-09-19T21:56:17.679195Z",
        "lastModified": "2014-09-19T21:56:17.679195Z",
        "contentLength": 1813,
        "contentType": "application/octet-stream"
      }
    },
    {
      "name": "startup\\stderr.txt",
      "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\stderr.txt",
      "isDirectory": false,
      "properties": {
        "creationTime": "2014-09-19T21:56:17.5590855Z",
        "lastModified": "2014-09-19T21:56:17.5590855Z",
        "contentLength": 0,
        "contentType": "application/octet-stream"
      }
    }
  ]
}

定義

名前 説明
BatchError

Azure Batch サービスから受信したエラー応答。

BatchErrorDetail

Azure Batchエラー応答に含まれる追加情報の項目。

ErrorMessage

Azure Batchエラー応答で受信したエラー メッセージ。

FileProperties

コンピューティング ノード上のファイルのプロパティ。

NodeFile

コンピューティング ノード上のファイルまたはディレクトリに関する情報。

NodeFileListResult

コンピューティング ノード上のファイル、またはコンピューティング ノード上のタスクに関連付けられているファイルを一覧表示した結果。

BatchError

Azure Batch サービスから受信したエラー応答。

名前 説明
code

string

エラーの識別子。 コードは不変であり、プログラムによって使用されることを意図しています。

message

ErrorMessage

ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。

values

BatchErrorDetail[]

エラーに関する追加の詳細を含むキーと値のペアのコレクション。

BatchErrorDetail

Azure Batchエラー応答に含まれる追加情報の項目。

名前 説明
key

string

Value プロパティの意味を指定する識別子。

value

string

エラー応答に含まれる追加情報。

ErrorMessage

Azure Batchエラー応答で受信したエラー メッセージ。

名前 説明
lang

string

エラー メッセージの言語コード

value

string

メッセージのテキストです。

FileProperties

コンピューティング ノード上のファイルのプロパティ。

名前 説明
contentLength

integer

ファイルの長さ。

contentType

string

ファイルのコンテンツの種類。

creationTime

string

ファイルの作成時刻。
Linux コンピューティング ノード上のファイルの作成時間は返されません。

fileMode

string

ファイル モード属性 (8 進数形式)。
ファイル モードは、Linux コンピューティング ノード上のファイルに対してのみ返されます。

lastModified

string

ファイルが最後に変更された時刻。

NodeFile

コンピューティング ノード上のファイルまたはディレクトリに関する情報。

名前 説明
isDirectory

boolean

オブジェクトがディレクトリを表すかどうか。

name

string

ファイル パス。

properties

FileProperties

ファイルのプロパティ。

url

string

ファイルの URL。

NodeFileListResult

コンピューティング ノード上のファイル、またはコンピューティング ノード上のタスクに関連付けられているファイルを一覧表示した結果。

名前 説明
odata.nextLink

string

次の結果セットを取得する URL。

value

NodeFile[]

ファイルの一覧。