Share via


Availability Statuses - Get By Resource

1 つのリソースの現在の可用性状態を取得します

GET https://management.azure.com/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current?api-version=2024-02-01
GET https://management.azure.com/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current?api-version=2024-02-01&$filter={$filter}&$expand={$expand}

URI パラメーター

名前 / 必須 説明
resourceUri
path True

string

リソースの完全修飾 ID。リソース名とリソースの種類が含まれます。 現在、API は入れ子になっていないと 1 つの入れ子レベルのリソースの種類をサポートしています: /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name } と /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}

api-version
query True

string

この操作に使用する API バージョン。

$expand
query

string

url クエリで $expand=recommendedactions を設定すると、応答で推奨されるアクションが展開されます。

$filter
query

string

操作に適用するフィルター。 詳細については、以下を参照してください。 https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN

応答

名前 説明
200 OK

availabilityStatus

1 つのリソースの現在の可用性の状態

Other Status Codes

ErrorResponse

DefaultErrorResponse

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

GetCurrentHealthByResource

Sample Request

GET https://management.azure.com/resourceUri/providers/Microsoft.ResourceHealth/availabilityStatuses/current?api-version=2024-02-01&$expand=recommendedactions

Sample Response

{
  "id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines /rhctestenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
  "name": "current",
  "type": "Microsoft.ResourceHealth/AvailabilityStatuses",
  "location": "eastus",
  "properties": {
    "availabilityState": "Unavailable",
    "title": "Unavailable",
    "summary": "We're sorry, we couldn't automatically recover your virtual machine",
    "reasonType": "Unplanned",
    "context": "Platform Initiated",
    "category": "Unplanned",
    "reasonChronicity": "Persistent",
    "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
    "occuredTime": "2016-03-29T09:12:00Z",
    "reportedTime": "2016-05-04T14:11:29.7598931Z",
    "rootCauseAttributionTime": "2016-03-29T09:13:00Z",
    "resolutionETA": "2016-03-29T09:37:00Z",
    "recommendedActions": [
      {
        "action": "To start this virtual machine, open the resource blade and click Start",
        "actionUrl": "<#ResourceBlade>",
        "actionUrlText": "resource blade"
      },
      {
        "action": "If you are experiencing problems you believe are caused by Azure, contact support",
        "actionUrl": "<#SupportCase>",
        "actionUrlText": "contact support"
      }
    ]
  }
}

定義

名前 説明
AvailabilityStateValues

リソースの影響を受けたリソースの状態。

availabilityStatus

リソースの availabilityStatus。

ErrorResponse

エラーの詳細。

IncidentProperties

サービスに影響を与えるイベントのプロパティ。

Properties

可用性状態のプロパティ。

reasonChronicityTypes

可用性の移行の慢性性。

RecentlyResolved

availabilityState の変更を説明する注釈。reasonType の種類が Unplanned である Availableable から Available

recommendedAction

ユーザーがリソースの現在の availabilityState に基づいて実行できるアクションをListsします。

serviceImpactingEvent

リソースの正常性に影響を与える可能性があるイベントに影響を与えるサービスをListsします。

Status

サービスに影響を与えるイベントの状態。

AvailabilityStateValues

リソースの影響を受けたリソースの状態。

名前 説明
Available

string

Degraded

string

Unavailable

string

Unknown

string

availabilityStatus

リソースの availabilityStatus。

名前 説明
id

string

availabilityStatuses リソースの Azure Resource Manager ID。

location

string

Azure Resource Managerリソースの地理的な場所。

name

string

現在の。

properties

Properties

可用性状態のプロパティ。

type

string

Microsoft.ResourceHealth/AvailabilityStatuses。

ErrorResponse

エラーの詳細。

名前 説明
code

string

エラー コード。

details

string

エラーの詳細です。

message

string

エラー メッセージ。

IncidentProperties

サービスに影響を与えるイベントのプロパティ。

名前 説明
incidentType

string

イベントの種類。

region

string

イベントの影響を受けたリージョン。

service

string

イベントの影響を受けたサービス。

title

string

インシデントのタイトル。

Properties

可用性状態のプロパティ。

名前 説明
articleId

string

アーティクル ID

availabilityState

AvailabilityStateValues

リソースの可用性の状態。 null の場合、この availabilityStatus オブジェクトは可用性に影響を与えるイベントを表します

category

string

コンテキスト フィールドが [プラットフォーム] に設定されている場合、このフィールドには、イベントが計画されたか計画されていないかが反映されます。 コンテキスト フィールドの値が Platform でない場合、このフィールドは無視されます。

context

string

イベントが作成されると、顧客またはリソースのプラットフォームによってトリガーできます。このフィールドはそれを示しています。 このフィールドは、このオブジェクトのカテゴリ フィールドに接続されています。

detailedStatus

string

可用性の状態の詳細。

healthEventCategory

string

可用性に影響を与えるイベントの場合は、PlatformInitiated 正常性に影響を与えるイベントのカテゴリについて説明します。 たとえば、計画済み、計画外などです。

healthEventCause

string

可用性に影響を与えるイベントの場合は、正常性に影響を与えるイベントが発生した場所について説明します。 例としては、PlatformInitiated、UserInitiated などがあります。

healthEventId

string

これは、イベントを識別する一意の ID です

healthEventType

string

可用性に影響を与えるイベントの場合、正常性に影響を与えるイベントが発生した日時が記述されます。 たとえば、ライフサイクル、ダウンタイム、障害分析などです。

occuredTime

string

正常性状態の最後の変更が発生したときのタイムスタンプ。

reasonChronicity

reasonChronicityTypes

可用性の移行の慢性性。

reasonType

string

リソースの availabilityState が使用不可の場合、正常性に影響を与えるイベントが発生した場所が記述されます。 たとえば、計画済み、計画外、ユーザー開始、停止などです。

recentlyResolved

RecentlyResolved

availabilityState の変更を説明する注釈。reasonType の種類が Unplanned である Availableable から Available

recommendedActions

recommendedAction[]

ユーザーがリソースの現在の availabilityState に基づいて実行できるアクションをListsします。

reportedTime

string

正常性が最後にチェックされた日時のタイムスタンプ。

resolutionETA

string

リソースの availabilityState が [利用不可] で reasonType が [ユーザー開始] でない場合、問題が解決されると予想される日時が提供されます。

rootCauseAttributionTime

string

リソースの availabilityState が Unavailable の場合、正常性に影響を与えるイベントが受信された日時のタイムスタンプが提供されます。

serviceImpactingEvents

serviceImpactingEvent[]

リソースの正常性に影響を与える可能性があるイベントに影響を与えるサービスをListsします。

summary

string

可用性の状態の概要の説明。

title

string

可用性の状態のタイトルの説明。

reasonChronicityTypes

可用性の移行の慢性性。

名前 説明
Persistent

string

Transient

string

RecentlyResolved

availabilityState の変更を説明する注釈。reasonType の種類が Unplanned である Availableable から Available

名前 説明
resolvedTime

string

availabilityState が [使用可能] に変更されたときのタイムスタンプ。

unavailableOccuredTime

string

availabilityState が Unavailable に変更されたときのタイムスタンプ

unavailableSummary

string

リソースが使用できなくなる原因の簡単な説明。

recommendedAction

ユーザーがリソースの現在の availabilityState に基づいて実行できるアクションをListsします。

名前 説明
_ActionUrl.Comment

string

アクションのコメント

action

string

推奨されるアクション。

actionUrl

string

アクションへのリンク

actionUrlText

string

アクションの部分文字列。アクション URL をホストするテキストが記述されています。

serviceImpactingEvent

リソースの正常性に影響を与える可能性があるイベントに影響を与えるサービスをListsします。

名前 説明
correlationId

string

イベントの関連付け ID

eventStartTime

string

イベントが開始されたときのタイムスタンプ。

eventStatusLastModifiedTime

string

イベントが送信または検出された日時のタイムスタンプ。

incidentProperties

IncidentProperties

サービスに影響を与えるイベントのプロパティ。

status

Status

サービスに影響を与えるイベントの状態。

Status

サービスに影響を与えるイベントの状態。

名前 説明
value

string

イベントの現在の状態