次の方法で共有


Cloud Service Operating Systems - Get OS Version

クラウド サービスの XML サービス構成 (.cscfg) で指定できるゲスト オペレーティング システム バージョンのプロパティを取得します。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}?api-version=2024-11-04

URI パラメーター

名前 / 必須 説明
location
path True

string

OS バージョンが関係する場所の名前。

osVersionName
path True

string

OS バージョンの名前。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

api-version
query True

string

クライアント API のバージョン。

応答

名前 説明
200 OK

OSVersion

わかりました

Other Status Codes

CloudError

エラー

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

Get Cloud Service OS Version

要求のサンプル

GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOsVersions/WA-GUEST-OS-3.90_202010-02?api-version=2024-11-04

応答のサンプル

{
  "name": "WA-GUEST-OS-3.90_202010-02",
  "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02",
  "type": "Microsoft.Compute/locations/cloudServiceOsVersions",
  "location": "westus2",
  "properties": {
    "version": "WA-GUEST-OS-3.90_202010-02",
    "label": "Windows Azure Guest OS 3.90 (Release 202010-02)",
    "isDefault": true,
    "isActive": true,
    "family": "3",
    "familyLabel": "Windows Server 2012"
  }
}

定義

名前 説明
ApiError

API エラー。

ApiErrorBase

API エラーベース。

CloudError

コンピューティング サービスからのエラー応答。

InnerError

内部エラーの詳細。

OSVersion

クラウド サービスの OS バージョンについて説明します。

OSVersionProperties

OS バージョンのプロパティ。

ApiError

API エラー。

名前 説明
code

string

エラー コード。

details

ApiErrorBase[]

Api エラーの詳細

innererror

InnerError

Api 内部エラー

message

string

エラー メッセージ。

target

string

特定のエラーのターゲット。

ApiErrorBase

API エラーベース。

名前 説明
code

string

エラー コード。

message

string

エラー メッセージ。

target

string

特定のエラーのターゲット。

CloudError

コンピューティング サービスからのエラー応答。

名前 説明
error

ApiError

API エラー。

InnerError

内部エラーの詳細。

名前 説明
errordetail

string

内部エラー メッセージまたは例外ダンプ。

exceptiontype

string

例外の種類。

OSVersion

クラウド サービスの OS バージョンについて説明します。

名前 説明
id

string

リソース ID。

location

string

リソースの場所。

name

string

リソース名。

properties

OSVersionProperties

OS バージョンのプロパティ。

type

string

リソースの種類。

OSVersionProperties

OS バージョンのプロパティ。

名前 説明
family

string

この OS バージョンのファミリ。

familyLabel

string

この OS バージョンのファミリ ラベル。

isActive

boolean

この OS バージョンがアクティブかどうかを指定します。

isDefault

boolean

これがファミリの既定の OS バージョンであるかどうかを指定します。

label

string

OS バージョン ラベル。

version

string

OS のバージョン。