次の方法で共有


Apply Updates - Create Or Update Or Cancel

リソースに更新を適用する
メンテナンス更新プログラムをリソースに適用する

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}?api-version=2023-09-01-preview

URI パラメーター

名前 / 必須 説明
applyUpdateName
path True

string

ApplyUpdate name

providerName
path True

string

リソース プロバイダー名

resourceGroupName
path True

string

リソース グループ名

resourceName
path True

string

リソース識別子

resourceType
path True

string

リソースの種類

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、全ての修理依頼についてURI の一部を生じさせます。

api-version
query True

string

クライアント要求で使用される API のバージョン。

要求本文

名前 説明
properties.lastUpdateTime

string

最終更新日時

properties.resourceId

string

resourceId

properties.status

UpdateStatus

状態

応答

名前 説明
200 OK

ApplyUpdate

ApplyUpdate 更新要求が受け入れられます

201 Created

ApplyUpdate

ApplyUpdate 作成要求が受け入れられます

Other Status Codes

MaintenanceError

BadRequest

ApplyUpdates_CreateOrUpdateOnly_NoCancellation
ApplyUpdates_CreateOrUpdateOrCancel

ApplyUpdates_CreateOrUpdateOnly_NoCancellation

要求のサンプル

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/20230901121200?api-version=2023-09-01-preview

{}

応答のサンプル

{
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
  "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
  "type": "Microsoft.Maintenance/applyUpdates",
  "properties": {
    "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
    "status": "Pending"
  }
}
{
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/providers/Microsoft.Maintenance/applyUpdates/e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
  "name": "e9b9685d-78e4-44c4-a81c-64a14f9b87b6",
  "type": "Microsoft.Maintenance/applyUpdates",
  "properties": {
    "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1",
    "status": "Pending"
  }
}

ApplyUpdates_CreateOrUpdateOrCancel

要求のサンプル

PUT https://management.azure.com/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/maintenanceConfig1/providers/Microsoft.Maintenance/applyUpdates/20230901121200?api-version=2023-09-01-preview

{
  "properties": {
    "status": "Cancel"
  }
}

応答のサンプル

{
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1/providers/microsoft.maintenance/applyupdates/20230901121200",
  "name": "maintenanceConfig1",
  "type": "Microsoft.Maintenance/applyUpdates",
  "properties": {
    "status": "Cancelled",
    "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1"
  }
}
{
  "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1/providers/microsoft.maintenance/applyupdates/20230901121200",
  "name": "maintenanceConfig1",
  "type": "Microsoft.Maintenance/applyUpdates",
  "properties": {
    "status": "Cancelled",
    "resourceId": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/microsoft.maintenance/maintenanceconfigurations/maintenanceconfig1"
  }
}

定義

名前 説明
ApplyUpdate

更新要求を適用する

createdByType

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

ErrorDetails

Azure メンテナンス サービスから受信したエラー応答の詳細。

MaintenanceError

Azure メンテナンス サービスから受信したエラー応答。

systemData

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

UpdateStatus

状態

ApplyUpdate

更新要求を適用する

名前 説明
id

string

リソースの完全修飾識別子

name

string

リソースの名前

properties.lastUpdateTime

string

最終更新日時

properties.resourceId

string

resourceId

properties.status

UpdateStatus

状態

systemData

systemData

createdBy および modifiedBy 情報を含む Azure Resource Manager メタデータ。

type

string

リソースの種類

createdByType

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

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorDetails

Azure メンテナンス サービスから受信したエラー応答の詳細。

名前 説明
code

string

サービスによって定義されたエラー コード。 このコードは、応答に指定された HTTP エラー コードのサブステータスとして機能します。

message

string

人が判読できるエラーの表現。

MaintenanceError

Azure メンテナンス サービスから受信したエラー応答。

名前 説明
error

ErrorDetails

エラーの詳細

systemData

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

名前 説明
createdAt

string

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

createdBy

string

リソースを作成した ID。

createdByType

createdByType

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

lastModifiedAt

string

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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

UpdateStatus

状態

名前 説明
Cancel

string

スケジュールをキャンセルし、その一部のリソースの PMR の作成を停止します。 メンテナンス構成リソースの種類にのみ適用されます。

Cancelled

string

スケジュールを取り消す要求が来た場合は、キャンセルされた応答をユーザーに送信します。 メンテナンス構成リソースの種類にのみ適用されます。

Completed

string

すべての更新プログラムが正常に適用されます。

InProgress

string

更新インストールが進行中です。

NoUpdatesPending

string

更新は保留中です。

Pending

string

インストールする保留中の更新プログラムがあります。

RetryLater

string

インストール更新失敗し、後で再試行する必要があります。

RetryNow

string

更新インストールは失敗しましたが、もう一度再試行する準備ができています。