共用方式為


Start Stop Managed Instance Schedules - Delete

刪除受控實例的啟動/停止排程。

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default?api-version=2023-08-01

URI 參數

名稱 位於 必要 類型 Description
managedInstanceName
path True

string

受控實例的名稱。

resourceGroupName
path True

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。

startStopScheduleName
path True

StartStopScheduleName

受控實例的啟動/停止排程名稱。

subscriptionId
path True

string

識別 Azure 訂用帳戶的訂用帳戶標識碼。

api-version
query True

string

要用於要求的 API 版本。

回應

名稱 類型 Description
200 OK

已成功刪除開始/停止排程。

204 No Content

指定的開始/停止排程不存在。

Other Status Codes

ErrorResponse

錯誤回應: ***

  • 204 ManagementServiceStartStopManagedInstanceScheduleNotFound - 指定受控實例的排程不存在。

  • 204 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - 使用者嘗試執行 Start/Stop 排程的 CRUD 作業,其排程名稱與 'default' 不同

  • 400 ManagementServiceStartStopManagedInstanceScheduleSmallTimespan - 兩個連續動作之間的時間小於 1 小時。

  • 400 ManagementServiceStartStopManagedInstanceScheduleSubscriptionNotEnabledForFeature - 使用者嘗試使用啟動/停止功能,而不需針對適當的訂用帳戶功能列出訂用帳戶允許清單。

  • 指定的 SKU 不支援 400 ManagementServiceStartStopManagedInstanceScheduleNotSupportedOnSKU - 排程的啟動/停止作業。

  • 400 ManagementServiceStopManagedInstanceHostedOnRdfePlatform - 停止在未使用 Feature Wave 2022 年 11 月執行的實例上執行

  • 400 StartStopOfManagedInstanceIsDisabled - 未啟用受控實例上的啟動和停止作業。

  • 400 ManagementServiceStartStopManagedInstanceScheduleFeatureDisabled - 用戶嘗試使用已停用的已排程啟動/停止 Azure SQL 受控實例功能。

  • 400 ManagementServiceStartStopManagedInstanceScheduleOverlap - 排程配對重疊。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestParametersInvalid - 要求主體中提供的一組參數是空的或無效的。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestTimeZoneInvalid - 提供的時區參數無效。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestScheduleInvalid - 提供的啟動/停止排程無效。 排程不包含排程清單中的專案,或清單中的某些專案具有無效的值。

  • 404 ServerNotInSubscriptionResourceGroup - 指定的伺服器不存在於指定的資源群組和訂用帳戶中。

  • 404 SubscriptionDoesNotHaveServer - 找不到要求的伺服器

  • 404 ResourceNotFound - 找不到要求的資源。

  • 404 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - 使用者嘗試執行 Start/Stop 排程的 CRUD 作業,其排程名稱與 'default' 不同

  • 409 ManagementServiceStartStopManagedInstanceScheduleConflictingOperation - 嘗試在 Azure SQL 受控實例上建立/更新/刪除排程的啟動/停止排程作業失敗。 排程未建立或無法更新/刪除,因為它正忙於進行中的排程作業。 請稍後再重試您的要求。

範例

Deletes the managed instance's Start/Stop schedule.

範例要求

DELETE https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default?api-version=2023-08-01

範例回覆

定義

名稱 Description
ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

StartStopScheduleName

受控實例的啟動/停止排程名稱。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

StartStopScheduleName

受控實例的啟動/停止排程名稱。

Description
default