Jobs class
代表作業的類別。
建構函式
| Jobs(Batch |
建立作業。 |
方法
建構函式詳細資料
Jobs(BatchAIManagementClientContext)
建立作業。
new Jobs(client: BatchAIManagementClientContext)
參數
服務客戶端的參考。
方法詳細資料
beginCreate(string, string, string, string, JobCreateParameters, RequestOptionsBase)
在指定的實驗中建立作業。
function beginCreate(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, parameters: JobCreateParameters, options?: RequestOptionsBase): Promise<LROPoller>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- parameters
- JobCreateParameters
用於建立作業的參數。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<@azure/ms-rest-azure-js.LROPoller>
承諾<msRestAzure.LROPoller>
beginDeleteMethod(string, string, string, string, RequestOptionsBase)
刪除作業。
function beginDeleteMethod(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<LROPoller>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<@azure/ms-rest-azure-js.LROPoller>
承諾<msRestAzure.LROPoller>
beginTerminate(string, string, string, string, RequestOptionsBase)
終止作業。
function beginTerminate(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<LROPoller>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<@azure/ms-rest-azure-js.LROPoller>
承諾<msRestAzure.LROPoller>
create(string, string, string, string, JobCreateParameters, RequestOptionsBase)
在指定的實驗中建立作業。
function create(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, parameters: JobCreateParameters, options?: RequestOptionsBase): Promise<JobsCreateResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- parameters
- JobCreateParameters
用於建立作業的參數。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<JobsCreateResponse>
承諾<Models.JobsCreateResponse>
deleteMethod(string, string, string, string, RequestOptionsBase)
刪除作業。
function deleteMethod(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<RestResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<RestResponse>
承諾<msRest.RestResponse>
get(string, string, string, string, RequestOptionsBase)
取得作業的相關信息。
function get(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<JobsGetResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<JobsGetResponse>
承諾<Models.JobsGetResponse>
get(string, string, string, string, RequestOptionsBase, ServiceCallback<Job>)
function get(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options: RequestOptionsBase, callback: ServiceCallback<Job>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
get(string, string, string, string, ServiceCallback<Job>)
function get(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, callback: ServiceCallback<Job>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- callback
回呼
listByExperiment(string, string, string, JobsListByExperimentOptionalParams)
取得指定實驗內的作業清單。
function listByExperiment(resourceGroupName: string, workspaceName: string, experimentName: string, options?: JobsListByExperimentOptionalParams): Promise<JobsListByExperimentResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
選擇性參數
傳回
Promise<JobsListByExperimentResponse>
承諾<Models.JobsListByExperimentResponse>
listByExperiment(string, string, string, JobsListByExperimentOptionalParams, ServiceCallback<JobListResult>)
function listByExperiment(resourceGroupName: string, workspaceName: string, experimentName: string, options: JobsListByExperimentOptionalParams, callback: ServiceCallback<JobListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
選擇性參數
- callback
回呼
listByExperiment(string, string, string, ServiceCallback<JobListResult>)
function listByExperiment(resourceGroupName: string, workspaceName: string, experimentName: string, callback: ServiceCallback<JobListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- callback
回呼
listByExperimentNext(string, RequestOptionsBase)
取得指定實驗內的作業清單。
function listByExperimentNext(nextPageLink: string, options?: RequestOptionsBase): Promise<JobsListByExperimentNextResponse>
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<JobsListByExperimentNextResponse>
承諾<Models.JobsListByExperimentNextResponse>
listByExperimentNext(string, RequestOptionsBase, ServiceCallback<JobListResult>)
function listByExperimentNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<JobListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
listByExperimentNext(string, ServiceCallback<JobListResult>)
function listByExperimentNext(nextPageLink: string, callback: ServiceCallback<JobListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- callback
回呼
listOutputFiles(string, string, string, string, JobsListOutputFilesOptions, RequestOptionsBase)
列出作業輸出目錄指定目錄中的所有目錄和檔案(如果輸出目錄位於 Azure 檔案共用或 Azure 記憶體容器上)。
function listOutputFiles(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, jobsListOutputFilesOptions: JobsListOutputFilesOptions, options?: RequestOptionsBase): Promise<JobsListOutputFilesResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobsListOutputFilesOptions
- JobsListOutputFilesOptions
作業的其他參數
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<JobsListOutputFilesResponse>
Promise<Models.JobsListOutputFiles回應>
listOutputFiles(string, string, string, string, JobsListOutputFilesOptions, RequestOptionsBase, ServiceCallback<FileListResult>)
function listOutputFiles(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, jobsListOutputFilesOptions: JobsListOutputFilesOptions, options: RequestOptionsBase, callback: ServiceCallback<FileListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobsListOutputFilesOptions
- JobsListOutputFilesOptions
作業的其他參數
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
listOutputFiles(string, string, string, string, JobsListOutputFilesOptions, ServiceCallback<FileListResult>)
function listOutputFiles(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, jobsListOutputFilesOptions: JobsListOutputFilesOptions, callback: ServiceCallback<FileListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobsListOutputFilesOptions
- JobsListOutputFilesOptions
作業的其他參數
- callback
回呼
listOutputFilesNext(string, RequestOptionsBase)
列出作業輸出目錄指定目錄中的所有目錄和檔案(如果輸出目錄位於 Azure 檔案共用或 Azure 記憶體容器上)。
function listOutputFilesNext(nextPageLink: string, options?: RequestOptionsBase): Promise<JobsListOutputFilesNextResponse>
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<JobsListOutputFilesNextResponse>
承諾<Models.JobsListOutputFilesNextResponse>
listOutputFilesNext(string, RequestOptionsBase, ServiceCallback<FileListResult>)
function listOutputFilesNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<FileListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
listOutputFilesNext(string, ServiceCallback<FileListResult>)
function listOutputFilesNext(nextPageLink: string, callback: ServiceCallback<FileListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- callback
回呼
listRemoteLoginInformation(string, string, string, string, RequestOptionsBase)
取得目前用於作業執行的現有節點清單。 傳回的資訊包含節點標識碼、其公用IP和SSH埠。
function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<JobsListRemoteLoginInformationResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
承諾<Models.JobsListRemoteLoginInformationResponse>
listRemoteLoginInformation(string, string, string, string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)
function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options: RequestOptionsBase, callback: ServiceCallback<RemoteLoginInformationListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
回呼
listRemoteLoginInformation(string, string, string, string, ServiceCallback<RemoteLoginInformationListResult>)
function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, callback: ServiceCallback<RemoteLoginInformationListResult>)
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
回呼
listRemoteLoginInformationNext(string, RequestOptionsBase)
取得目前用於作業執行的現有節點清單。 傳回的資訊包含節點標識碼、其公用IP和SSH埠。
function listRemoteLoginInformationNext(nextPageLink: string, options?: RequestOptionsBase): Promise<JobsListRemoteLoginInformationNextResponse>
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<Models.JobsListRemoteLoginInformationNext回應>
listRemoteLoginInformationNext(string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)
function listRemoteLoginInformationNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<RemoteLoginInformationListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- options
- RequestOptionsBase
選擇性參數
回呼
listRemoteLoginInformationNext(string, ServiceCallback<RemoteLoginInformationListResult>)
function listRemoteLoginInformationNext(nextPageLink: string, callback: ServiceCallback<RemoteLoginInformationListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
回呼
terminate(string, string, string, string, RequestOptionsBase)
終止作業。
function terminate(resourceGroupName: string, workspaceName: string, experimentName: string, jobName: string, options?: RequestOptionsBase): Promise<RestResponse>
參數
- resourceGroupName
-
string
資源所屬的資源群組名稱。
- workspaceName
-
string
工作區的名稱。 工作區名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- experimentName
-
string
實驗的名稱。 實驗名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- jobName
-
string
指定資源群組內的作業名稱。 作業名稱只能包含英數位元與破折號 (-) 和底線 (_) 的組合。 名稱長度必須介於 1 到 64 個字元之間。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<RestResponse>
承諾<msRest.RestResponse>