ComputeNodeOperations class
代表 ComputeNodeOperations 的類別。
建構函式
| Compute |
建立 ComputeNodeOperations。 |
方法
建構函式詳細資料
ComputeNodeOperations(BatchServiceClientContext)
建立 ComputeNodeOperations。
new ComputeNodeOperations(client: BatchServiceClientContext)
參數
- client
- BatchServiceClientContext
服務客戶端的參考。
方法詳細資料
addUser(string, string, ComputeNodeUser, ComputeNodeAddUserOptionalParams)
只有當使用者帳戶處於閑置或執行中狀態時,才可以將用戶帳戶新增至計算節點。
function addUser(poolId: string, nodeId: string, user: ComputeNodeUser, options?: ComputeNodeAddUserOptionalParams): Promise<ComputeNodeAddUserResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中建立使用者帳戶之計算機的標識碼。
- user
- ComputeNodeUser
要建立的用戶帳戶。
- options
- ComputeNodeAddUserOptionalParams
選擇性參數
傳回
Promise<ComputeNodeAddUserResponse>
承諾<Models.ComputeNodeAddUserResponse>
addUser(string, string, ComputeNodeUser, ComputeNodeAddUserOptionalParams, ServiceCallback<void>)
function addUser(poolId: string, nodeId: string, user: ComputeNodeUser, options: ComputeNodeAddUserOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中建立使用者帳戶之計算機的標識碼。
- user
- ComputeNodeUser
要建立的用戶帳戶。
- options
- ComputeNodeAddUserOptionalParams
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addUser(string, string, ComputeNodeUser, ServiceCallback<void>)
function addUser(poolId: string, nodeId: string, user: ComputeNodeUser, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中建立使用者帳戶之計算機的標識碼。
- user
- ComputeNodeUser
要建立的用戶帳戶。
- callback
-
ServiceCallback<void>
回呼
deleteUser(string, string, string, ComputeNodeDeleteUserOptionalParams)
只有當使用者帳戶處於閑置或執行中狀態時,才可以將使用者帳戶刪除至計算節點。
function deleteUser(poolId: string, nodeId: string, userName: string, options?: ComputeNodeDeleteUserOptionalParams): Promise<ComputeNodeDeleteUserResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要刪除使用者帳戶之電腦的識別碼。
- userName
-
string
要刪除的用戶帳戶名稱。
選擇性參數
傳回
Promise<ComputeNodeDeleteUserResponse>
Promise<Models.ComputeNodeDeleteUser回應>
deleteUser(string, string, string, ComputeNodeDeleteUserOptionalParams, ServiceCallback<void>)
function deleteUser(poolId: string, nodeId: string, userName: string, options: ComputeNodeDeleteUserOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要刪除使用者帳戶之電腦的識別碼。
- userName
-
string
要刪除的用戶帳戶名稱。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
deleteUser(string, string, string, ServiceCallback<void>)
function deleteUser(poolId: string, nodeId: string, userName: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要刪除使用者帳戶之電腦的識別碼。
- userName
-
string
要刪除的用戶帳戶名稱。
- callback
-
ServiceCallback<void>
回呼
disableScheduling(string, string, ComputeNodeDisableSchedulingOptionalParams)
只有當計算節點上已啟用其目前排程狀態時,您才能停用工作排程。
function disableScheduling(poolId: string, nodeId: string, options?: ComputeNodeDisableSchedulingOptionalParams): Promise<ComputeNodeDisableSchedulingResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要停用工作排程的計算節點識別碼。
選擇性參數
傳回
Promise<ComputeNodeDisableSchedulingResponse>
Promise<Models.ComputeNodeDisableSchedulingResponse>
disableScheduling(string, string, ComputeNodeDisableSchedulingOptionalParams, ServiceCallback<void>)
function disableScheduling(poolId: string, nodeId: string, options: ComputeNodeDisableSchedulingOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要停用工作排程的計算節點識別碼。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
disableScheduling(string, string, ServiceCallback<void>)
function disableScheduling(poolId: string, nodeId: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要停用工作排程的計算節點識別碼。
- callback
-
ServiceCallback<void>
回呼
enableScheduling(string, string, ComputeNodeEnableSchedulingOptionalParams)
只有當計算節點上的目前排程狀態已停用時,您才能在計算節點上啟用工作排程
function enableScheduling(poolId: string, nodeId: string, options?: ComputeNodeEnableSchedulingOptionalParams): Promise<ComputeNodeEnableSchedulingResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中啟用工作排程的計算節點識別碼。
選擇性參數
傳回
Promise<ComputeNodeEnableSchedulingResponse>
Promise<Models.ComputeNodeEnableSchedulingResponse>
enableScheduling(string, string, ComputeNodeEnableSchedulingOptionalParams, ServiceCallback<void>)
function enableScheduling(poolId: string, nodeId: string, options: ComputeNodeEnableSchedulingOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中啟用工作排程的計算節點識別碼。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
enableScheduling(string, string, ServiceCallback<void>)
function enableScheduling(poolId: string, nodeId: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要在其中啟用工作排程的計算節點識別碼。
- callback
-
ServiceCallback<void>
回呼
get(string, string, ComputeNodeGetOptionalParams)
function get(poolId: string, nodeId: string, options?: ComputeNodeGetOptionalParams): Promise<ComputeNodeGetResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您想要取得相關信息之計算節點的識別碼。
- options
- ComputeNodeGetOptionalParams
選擇性參數
傳回
Promise<ComputeNodeGetResponse>
承諾<模型.ComputeNodeGet回應>
get(string, string, ComputeNodeGetOptionalParams, ServiceCallback<ComputeNode>)
function get(poolId: string, nodeId: string, options: ComputeNodeGetOptionalParams, callback: ServiceCallback<ComputeNode>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您想要取得相關信息之計算節點的識別碼。
- options
- ComputeNodeGetOptionalParams
選擇性參數
- callback
回呼
get(string, string, ServiceCallback<ComputeNode>)
function get(poolId: string, nodeId: string, callback: ServiceCallback<ComputeNode>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您想要取得相關信息之計算節點的識別碼。
- callback
回呼
getRemoteDesktop(string, string, ComputeNodeGetRemoteDesktopOptionalParams)
您必須先在計算節點上建立用戶帳戶,才能使用 RDP 檔案存取計算節點。 此 API 只能在使用雲端服務組態建立的集區上叫用。 如需使用虛擬機設定建立的集區,請參閱 GetRemoteLoginSettings API。
function getRemoteDesktop(poolId: string, nodeId: string, options?: ComputeNodeGetRemoteDesktopOptionalParams): Promise<ComputeNodeGetRemoteDesktopResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要取得遠端桌面通訊協定檔案之計算節點的識別碼。
選擇性參數
傳回
Promise<ComputeNodeGetRemoteDesktopResponse>
Promise<Models.ComputeNodeGetRemoteDesktop回應>
getRemoteDesktop(string, string, ComputeNodeGetRemoteDesktopOptionalParams, ServiceCallback<void>)
function getRemoteDesktop(poolId: string, nodeId: string, options: ComputeNodeGetRemoteDesktopOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要取得遠端桌面通訊協定檔案之計算節點的識別碼。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
getRemoteDesktop(string, string, ServiceCallback<void>)
function getRemoteDesktop(poolId: string, nodeId: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要取得遠端桌面通訊協定檔案之計算節點的識別碼。
- callback
-
ServiceCallback<void>
回呼
getRemoteLoginSettings(string, string, ComputeNodeGetRemoteLoginSettingsOptionalParams)
您必須先在計算節點上建立用戶帳戶,才能使用遠端登錄設定從遠端登入計算節點。 此 API 只能在使用虛擬機組態屬性建立的集區上叫用。 如需使用雲端服務設定建立的集區,請參閱 GetRemoteDesktop API。
function getRemoteLoginSettings(poolId: string, nodeId: string, options?: ComputeNodeGetRemoteLoginSettingsOptionalParams): Promise<ComputeNodeGetRemoteLoginSettingsResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
要取得遠端登錄設定之計算節點的標識碼。
選擇性參數
傳回
Promise<Models.ComputeNodeGetRemoteLoginSettingsResponse>
getRemoteLoginSettings(string, string, ComputeNodeGetRemoteLoginSettingsOptionalParams, ServiceCallback<ComputeNodeGetRemoteLoginSettingsResult>)
function getRemoteLoginSettings(poolId: string, nodeId: string, options: ComputeNodeGetRemoteLoginSettingsOptionalParams, callback: ServiceCallback<ComputeNodeGetRemoteLoginSettingsResult>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
要取得遠端登錄設定之計算節點的標識碼。
選擇性參數
回呼
getRemoteLoginSettings(string, string, ServiceCallback<ComputeNodeGetRemoteLoginSettingsResult>)
function getRemoteLoginSettings(poolId: string, nodeId: string, callback: ServiceCallback<ComputeNodeGetRemoteLoginSettingsResult>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
要取得遠端登錄設定之計算節點的標識碼。
回呼
list(string, ComputeNodeListOptionalParams)
function list(poolId: string, options?: ComputeNodeListOptionalParams): Promise<ComputeNodeListResponse>
參數
- poolId
-
string
您要從中列出計算節點的集區識別碼。
- options
- ComputeNodeListOptionalParams
選擇性參數
傳回
Promise<ComputeNodeListResponse>
Promise<Models.ComputeNodeList回應>
list(string, ComputeNodeListOptionalParams, ServiceCallback<ComputeNodeListResult>)
function list(poolId: string, options: ComputeNodeListOptionalParams, callback: ServiceCallback<ComputeNodeListResult>)
參數
- poolId
-
string
您要從中列出計算節點的集區識別碼。
- options
- ComputeNodeListOptionalParams
選擇性參數
- callback
回呼
list(string, ServiceCallback<ComputeNodeListResult>)
function list(poolId: string, callback: ServiceCallback<ComputeNodeListResult>)
參數
- poolId
-
string
您要從中列出計算節點的集區識別碼。
- callback
回呼
listNext(string, ComputeNodeListNextOptionalParams)
function listNext(nextPageLink: string, options?: ComputeNodeListNextOptionalParams): Promise<ComputeNodeListResponse>
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
選擇性參數
傳回
Promise<ComputeNodeListResponse>
Promise<Models.ComputeNodeList回應>
listNext(string, ComputeNodeListNextOptionalParams, ServiceCallback<ComputeNodeListResult>)
function listNext(nextPageLink: string, options: ComputeNodeListNextOptionalParams, callback: ServiceCallback<ComputeNodeListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
選擇性參數
- callback
回呼
listNext(string, ServiceCallback<ComputeNodeListResult>)
function listNext(nextPageLink: string, callback: ServiceCallback<ComputeNodeListResult>)
參數
- nextPageLink
-
string
上一次成功呼叫 List 作業的 NextLink。
- callback
回呼
reboot(string, string, ComputeNodeRebootOptionalParams)
只有在計算節點處於閑置或執行中狀態時,才能重新啟動它。
function reboot(poolId: string, nodeId: string, options?: ComputeNodeRebootOptionalParams): Promise<ComputeNodeRebootResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- options
- ComputeNodeRebootOptionalParams
選擇性參數
傳回
Promise<ComputeNodeRebootResponse>
Promise<Models.ComputeNodeRebootResponse>
reboot(string, string, ComputeNodeRebootOptionalParams, ServiceCallback<void>)
function reboot(poolId: string, nodeId: string, options: ComputeNodeRebootOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- options
- ComputeNodeRebootOptionalParams
選擇性參數
- callback
-
ServiceCallback<void>
回呼
reboot(string, string, ServiceCallback<void>)
function reboot(poolId: string, nodeId: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- callback
-
ServiceCallback<void>
回呼
reimage(string, string, ComputeNodeReimageOptionalParams)
只有當作系統處於閑置或執行中狀態時,才可以在計算節點上重新安裝作系統。 此 API 只能在使用雲端服務組態屬性建立的集區上叫用。
function reimage(poolId: string, nodeId: string, options?: ComputeNodeReimageOptionalParams): Promise<ComputeNodeReimageResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- options
- ComputeNodeReimageOptionalParams
選擇性參數
傳回
Promise<ComputeNodeReimageResponse>
Promise<Models.ComputeNodeReimageResponse>
reimage(string, string, ComputeNodeReimageOptionalParams, ServiceCallback<void>)
function reimage(poolId: string, nodeId: string, options: ComputeNodeReimageOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- options
- ComputeNodeReimageOptionalParams
選擇性參數
- callback
-
ServiceCallback<void>
回呼
reimage(string, string, ServiceCallback<void>)
function reimage(poolId: string, nodeId: string, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要重新啟動之計算節點的識別碼。
- callback
-
ServiceCallback<void>
回呼
updateUser(string, string, string, NodeUpdateUserParameter, ComputeNodeUpdateUserOptionalParams)
此作業會取代帳戶的所有可更新屬性。 例如,如果未指定expiryTime元素,則目前的值會取代為預設值,而不會保留未修改。 只有在計算節點上處於閑置或執行中狀態時,才可以更新用戶帳戶。
function updateUser(poolId: string, nodeId: string, userName: string, nodeUpdateUserParameter: NodeUpdateUserParameter, options?: ComputeNodeUpdateUserOptionalParams): Promise<ComputeNodeUpdateUserResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要更新使用者帳戶之電腦的識別碼。
- userName
-
string
要更新的用戶帳戶名稱。
- nodeUpdateUserParameter
- NodeUpdateUserParameter
要求的參數。
選擇性參數
傳回
Promise<ComputeNodeUpdateUserResponse>
Promise<Models.ComputeNodeUpdateUser回應>
updateUser(string, string, string, NodeUpdateUserParameter, ComputeNodeUpdateUserOptionalParams, ServiceCallback<void>)
function updateUser(poolId: string, nodeId: string, userName: string, nodeUpdateUserParameter: NodeUpdateUserParameter, options: ComputeNodeUpdateUserOptionalParams, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要更新使用者帳戶之電腦的識別碼。
- userName
-
string
要更新的用戶帳戶名稱。
- nodeUpdateUserParameter
- NodeUpdateUserParameter
要求的參數。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
updateUser(string, string, string, NodeUpdateUserParameter, ServiceCallback<void>)
function updateUser(poolId: string, nodeId: string, userName: string, nodeUpdateUserParameter: NodeUpdateUserParameter, callback: ServiceCallback<void>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要更新使用者帳戶之電腦的識別碼。
- userName
-
string
要更新的用戶帳戶名稱。
- nodeUpdateUserParameter
- NodeUpdateUserParameter
要求的參數。
- callback
-
ServiceCallback<void>
回呼
uploadBatchServiceLogs(string, string, UploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptionalParams)
如果您遇到錯誤,而且想要呈報至 Azure 支援,這是為了以自動化方式從計算節點收集 Azure Batch 服務記錄檔。 Azure Batch 服務記錄檔應該與 Azure 支援共用,以協助對 Batch 服務的問題進行偵錯。
function uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: UploadBatchServiceLogsConfiguration, options?: ComputeNodeUploadBatchServiceLogsOptionalParams): Promise<ComputeNodeUploadBatchServiceLogsResponse>
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要上傳 Azure Batch 服務記錄檔的計算節點識別碼。
- uploadBatchServiceLogsConfiguration
- UploadBatchServiceLogsConfiguration
Azure Batch 服務記錄檔上傳組態。
選擇性參數
傳回
承諾<Models.ComputeNodeUploadBatchServiceLogs回應>
uploadBatchServiceLogs(string, string, UploadBatchServiceLogsConfiguration, ComputeNodeUploadBatchServiceLogsOptionalParams, ServiceCallback<UploadBatchServiceLogsResult>)
function uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: UploadBatchServiceLogsConfiguration, options: ComputeNodeUploadBatchServiceLogsOptionalParams, callback: ServiceCallback<UploadBatchServiceLogsResult>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要上傳 Azure Batch 服務記錄檔的計算節點識別碼。
- uploadBatchServiceLogsConfiguration
- UploadBatchServiceLogsConfiguration
Azure Batch 服務記錄檔上傳組態。
選擇性參數
- callback
回呼
uploadBatchServiceLogs(string, string, UploadBatchServiceLogsConfiguration, ServiceCallback<UploadBatchServiceLogsResult>)
function uploadBatchServiceLogs(poolId: string, nodeId: string, uploadBatchServiceLogsConfiguration: UploadBatchServiceLogsConfiguration, callback: ServiceCallback<UploadBatchServiceLogsResult>)
參數
- poolId
-
string
包含計算節點的集區識別碼。
- nodeId
-
string
您要上傳 Azure Batch 服務記錄檔的計算節點識別碼。
- uploadBatchServiceLogsConfiguration
- UploadBatchServiceLogsConfiguration
Azure Batch 服務記錄檔上傳組態。
- callback
回呼