Start Stop Managed Instance Schedules - Get

マネージド インスタンスの開始/停止スケジュールを取得します。

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

URI パラメーター

名前 / 必須 説明
managedInstanceName
path True

string

マネージド インスタンスの名前。

resourceGroupName
path True

string

リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。

startStopScheduleName
path True

StartStopScheduleName

マネージド インスタンスの開始/停止スケジュールの名前。

subscriptionId
path True

string

Azure サブスクリプションを識別するサブスクリプション ID。

api-version
query True

string

要求で使用する API のバージョン。

応答

名前 説明
200 OK

StartStopManagedInstanceSchedule

Start/Stop スケジュールが正常に取得されました。

Other Status Codes

ErrorResponse

エラー応答: ***

  • 204 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - ユーザーが 'default' とは異なるスケジュール名で Start/Stop schedule の CRUD 操作を実行しようとしました

  • 400 StartStopOfManagedInstanceIsDisabled - マネージド インスタンスでの開始操作と停止操作が有効になっていません。

  • 400 ManagementServiceStartStopManagedInstanceScheduleSubscriptionNotEnabledForFeature - ユーザーは、適切なサブスクリプション機能に対してサブスクリプションの許可リストを作成せずに、Start/Stop 機能を使用しようとしました。

  • 400 ManagementServiceStartStopManagedInstanceScheduleFeatureDisabled - ユーザーがスケジュールされた Start/Stop Azure SQL Managed Instance機能を使用しようとしましたが、これは無効になっています。

  • 400 ManagementServiceStartStopManagedInstanceScheduleNotSupportedOnSKU - 指定された SKU でスケジュールされた開始/停止操作はサポートされていません。

  • 400 ManagementServiceStopManagedInstanceHostedOnRdfePlatform - Feature Wave 2022 年 11 月に実行されていないインスタンスで実行を停止する

  • 400 ManagementServiceStartStopManagedInstanceScheduleOverlap - スケジュール ペアで重複します。

  • 400 ManagementServiceStartStopManagedInstanceScheduleSmallTimespan - 連続する 2 つのアクション間の時間が 1 時間未満です。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestParametersInvalid - 要求の本文で指定されたパラメーターのセットが空であるか無効です。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestTimeZoneInvalid - 指定されたタイム ゾーン パラメーターが無効です。

  • 400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestScheduleInvalid - 指定された Start/Stop スケジュールが無効です。 スケジュールにスケジュール リストにアイテムが含まれないか、リスト内の一部のアイテムに無効な値が含まれています。

  • 404 SubscriptionDoesNotHaveServer - 要求されたサーバーが見つかりませんでした

  • 404 ServerNotInSubscriptionResourceGroup - 指定されたサーバーが、指定されたリソース グループとサブスクリプションに存在しません。

  • 404 ResourceNotFound - 要求されたリソースが見つかりませんでした。

  • 404 ManagementServiceStartStopManagedInstanceScheduleNotFound - 特定のマネージド インスタンスにスケジュールが存在しません。

  • 404 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - ユーザーが 'default' とは異なるスケジュール名で Start/Stop schedule の CRUD 操作を実行しようとしました

  • 409 ManagementServiceStartStopManagedInstanceScheduleConflictingOperation - Azure SQL Managed Instanceの Start/Stop スケジュールの作成/更新/削除操作が失敗しました。 スケジュールが作成されなかったか、進行中のスケジュールされた操作でビジー状態であったため、更新または削除できませんでした。 後で要求を再試行してください。

Gets the managed instance's Start/Stop schedule.

Sample Request

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

Sample Response

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/schedulerg/providers/Microsoft.Sql/managedInstances/schedulemi/startStopSchedules/default",
  "name": "default",
  "systemData": {
    "createdBy": "string",
    "createdByType": "User",
    "createdAt": "2021-08-26T04:41:33.937Z",
    "lastModifiedBy": "string",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-08-27T04:41:33.937Z"
  },
  "properties": {
    "description": "This is a schedule for our Dev/Test environment.",
    "nextExecutionTime": "2021-08-26T14:00:00",
    "nextRunAction": "Stop",
    "scheduleList": [
      {
        "startDay": "Thursday",
        "startTime": "06:00 PM",
        "stopDay": "Thursday",
        "stopTime": "05:00 PM"
      },
      {
        "startDay": "Thursday",
        "startTime": "03:00 PM",
        "stopDay": "Thursday",
        "stopTime": "02:00 PM"
      }
    ],
    "timeZoneId": "Central European Standard Time"
  },
  "type": "Microsoft.Sql/managedInstances/startStopSchedules"
}

定義

名前 説明
createdByType

リソースを作成した ID の種類。

DayOfWeek

開始日。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

ScheduleItem

サーバーを開始または停止するタイミングを説明するスケジュール情報。

StartStopManagedInstanceSchedule

マネージド インスタンスの開始/停止スケジュール。

StartStopScheduleName

マネージド インスタンスの開始/停止スケジュールの名前。

systemData

リソースの作成と最後の変更に関連するメタデータ。

createdByType

リソースを作成した ID の種類。

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

DayOfWeek

開始日。

名前 説明
Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細です。

message

string

エラー メッセージ。

target

string

エラーのターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

error オブジェクト。

ScheduleItem

サーバーを開始または停止するタイミングを説明するスケジュール情報。

名前 説明
startDay

DayOfWeek

開始日。

startTime

string

開始時刻。

stopDay

DayOfWeek

1 日を終了します。

stopTime

string

停止時間。

StartStopManagedInstanceSchedule

マネージド インスタンスの開始/停止スケジュール。

名前 既定値 説明
id

string

リソースの ID

name

string

リソース名。

properties.description

string

スケジュールの説明。

properties.nextExecutionTime

string

対応するスケジュール タイム ゾーンで次のアクションが実行されたときのタイムスタンプ。

properties.nextRunAction

string

実行される次のアクション (開始または停止)

properties.scheduleList

ScheduleItem[]

スケジュール リスト。

properties.timeZoneId

string

UTC

スケジュールのタイム ゾーン。

systemData

systemData

スケジュールされたリソースのシステム データ。

type

string

リソースの種類。

StartStopScheduleName

マネージド インスタンスの開始/停止スケジュールの名前。

名前 説明
default

string

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string

リソースの最終変更のタイムスタンプ (UTC)

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。