你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GlobalSchedules interface
Interface representing a GlobalSchedules.
Methods
Method Details
beginExecute(string, string, GlobalSchedulesExecuteOptionalParams)
Execute a schedule. This operation can take a while to complete.
function beginExecute(resourceGroupName: string, name: string, options?: GlobalSchedulesExecuteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginExecuteAndWait(string, string, GlobalSchedulesExecuteOptionalParams)
Execute a schedule. This operation can take a while to complete.
function beginExecuteAndWait(resourceGroupName: string, name: string, options?: GlobalSchedulesExecuteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
The options parameters.
Returns
Promise<void>
beginRetarget(string, string, RetargetScheduleProperties, GlobalSchedulesRetargetOptionalParams)
Updates a schedule's target resource Id. This operation can take a while to complete.
function beginRetarget(resourceGroupName: string, name: string, retargetScheduleProperties: RetargetScheduleProperties, options?: GlobalSchedulesRetargetOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
- retargetScheduleProperties
- RetargetScheduleProperties
Properties for retargeting a virtual machine schedule.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginRetargetAndWait(string, string, RetargetScheduleProperties, GlobalSchedulesRetargetOptionalParams)
Updates a schedule's target resource Id. This operation can take a while to complete.
function beginRetargetAndWait(resourceGroupName: string, name: string, retargetScheduleProperties: RetargetScheduleProperties, options?: GlobalSchedulesRetargetOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
- retargetScheduleProperties
- RetargetScheduleProperties
Properties for retargeting a virtual machine schedule.
The options parameters.
Returns
Promise<void>
createOrUpdate(string, string, Schedule, GlobalSchedulesCreateOrUpdateOptionalParams)
Create or replace an existing schedule.
function createOrUpdate(resourceGroupName: string, name: string, schedule: Schedule, options?: GlobalSchedulesCreateOrUpdateOptionalParams): Promise<Schedule>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
- schedule
- Schedule
A schedule.
The options parameters.
Returns
Promise<Schedule>
delete(string, string, GlobalSchedulesDeleteOptionalParams)
Delete schedule.
function delete(resourceGroupName: string, name: string, options?: GlobalSchedulesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
The options parameters.
Returns
Promise<void>
get(string, string, GlobalSchedulesGetOptionalParams)
Get schedule.
function get(resourceGroupName: string, name: string, options?: GlobalSchedulesGetOptionalParams): Promise<Schedule>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
- options
- GlobalSchedulesGetOptionalParams
The options parameters.
Returns
Promise<Schedule>
listByResourceGroup(string, GlobalSchedulesListByResourceGroupOptionalParams)
List schedules in a resource group.
function listByResourceGroup(resourceGroupName: string, options?: GlobalSchedulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Schedule, Schedule[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group.
The options parameters.
Returns
listBySubscription(GlobalSchedulesListBySubscriptionOptionalParams)
List schedules in a subscription.
function listBySubscription(options?: GlobalSchedulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Schedule, Schedule[], PageSettings>
Parameters
The options parameters.
Returns
update(string, string, ScheduleFragment, GlobalSchedulesUpdateOptionalParams)
Allows modifying tags of schedules. All other properties will be ignored.
function update(resourceGroupName: string, name: string, schedule: ScheduleFragment, options?: GlobalSchedulesUpdateOptionalParams): Promise<Schedule>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- name
-
string
The name of the schedule.
- schedule
- ScheduleFragment
A schedule.
The options parameters.
Returns
Promise<Schedule>