GlobalSchedules interface
表示 GlobalSchedules 的介面。
方法
方法詳細資料
beginExecute(string, string, GlobalSchedulesExecuteOptionalParams)
執行排程。 此作業可能需要一段時間才能完成。
function beginExecute(resourceGroupName: string, name: string, options?: GlobalSchedulesExecuteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
選項參數。
傳回
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginExecuteAndWait(string, string, GlobalSchedulesExecuteOptionalParams)
執行排程。 此作業可能需要一段時間才能完成。
function beginExecuteAndWait(resourceGroupName: string, name: string, options?: GlobalSchedulesExecuteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
選項參數。
傳回
Promise<void>
beginRetarget(string, string, RetargetScheduleProperties, GlobalSchedulesRetargetOptionalParams)
更新排程的目標資源標識碼。此作業可能需要一段時間才能完成。
function beginRetarget(resourceGroupName: string, name: string, retargetScheduleProperties: RetargetScheduleProperties, options?: GlobalSchedulesRetargetOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
- retargetScheduleProperties
- RetargetScheduleProperties
重新設定虛擬機排程目標的屬性。
選項參數。
傳回
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginRetargetAndWait(string, string, RetargetScheduleProperties, GlobalSchedulesRetargetOptionalParams)
更新排程的目標資源標識碼。此作業可能需要一段時間才能完成。
function beginRetargetAndWait(resourceGroupName: string, name: string, retargetScheduleProperties: RetargetScheduleProperties, options?: GlobalSchedulesRetargetOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
- retargetScheduleProperties
- RetargetScheduleProperties
重新設定虛擬機排程目標的屬性。
選項參數。
傳回
Promise<void>
createOrUpdate(string, string, Schedule, GlobalSchedulesCreateOrUpdateOptionalParams)
建立或取代現有的排程。
function createOrUpdate(resourceGroupName: string, name: string, schedule: Schedule, options?: GlobalSchedulesCreateOrUpdateOptionalParams): Promise<Schedule>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
- schedule
- Schedule
排程。
選項參數。
傳回
Promise<Schedule>
delete(string, string, GlobalSchedulesDeleteOptionalParams)
刪除排程。
function delete(resourceGroupName: string, name: string, options?: GlobalSchedulesDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
選項參數。
傳回
Promise<void>
get(string, string, GlobalSchedulesGetOptionalParams)
取得排程。
function get(resourceGroupName: string, name: string, options?: GlobalSchedulesGetOptionalParams): Promise<Schedule>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
- options
- GlobalSchedulesGetOptionalParams
選項參數。
傳回
Promise<Schedule>
listByResourceGroup(string, GlobalSchedulesListByResourceGroupOptionalParams)
列出資源群組中的排程。
function listByResourceGroup(resourceGroupName: string, options?: GlobalSchedulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Schedule, Schedule[], PageSettings>
參數
- resourceGroupName
-
string
資源群組的名稱。
選項參數。
傳回
listBySubscription(GlobalSchedulesListBySubscriptionOptionalParams)
列出訂用帳戶中的排程。
function listBySubscription(options?: GlobalSchedulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Schedule, Schedule[], PageSettings>
參數
選項參數。
傳回
update(string, string, ScheduleFragment, GlobalSchedulesUpdateOptionalParams)
允許修改排程的標記。 將會忽略所有其他屬性。
function update(resourceGroupName: string, name: string, schedule: ScheduleFragment, options?: GlobalSchedulesUpdateOptionalParams): Promise<Schedule>
參數
- resourceGroupName
-
string
資源群組的名稱。
- name
-
string
排程的名稱。
- schedule
- ScheduleFragment
排程。
選項參數。
傳回
Promise<Schedule>