Alias - Create

エイリアス サブスクリプションを作成します。

PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/{aliasName}?api-version=2021-10-01

URI パラメーター

名前 / 必須 説明
aliasName
path True

string

AliasName は、サブスクリプション作成要求の名前です。 これはサブスクリプション名と同じではなく、サブスクリプションの作成要求を超える他のライフサイクルの必要はありません。

api-version
query True

string

クライアント要求で使用される API のバージョン。 現在のバージョンは 2021-10-01 です

要求本文

名前 説明
properties

PutAliasRequestProperties

エイリアス要求プロパティを配置します。

応答

名前 説明
200 OK

SubscriptionAliasResponse

成功したクエリの通常の応答。

201 Created

SubscriptionAliasResponse

受理されました。 サブスクリプションの作成が進行中です。

Other Status Codes

ErrorResponseBody

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

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

スコープ

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

CreateAlias

要求のサンプル

PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/aliasForNewSub?api-version=2021-10-01

{
  "properties": {
    "displayName": "Test Subscription",
    "workload": "Production",
    "billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
    "subscriptionId": null,
    "additionalProperties": {
      "managementGroupId": null,
      "subscriptionTenantId": "66f6e4d6-07dc-4aea-94ea-e12d3026a3c8",
      "subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
      "tags": {
        "tag1": "Messi",
        "tag2": "Ronaldo",
        "tag3": "Lebron"
      }
    }
  }
}

応答のサンプル

{
  "id": "string",
  "name": "string",
  "type": "string",
  "properties": {
    "subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072",
    "displayName": "Test Subscription",
    "provisioningState": "Accepted",
    "acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership",
    "acceptOwnershipState": "Pending",
    "billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
    "workload": "Production",
    "resellerId": null,
    "subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
    "managementGroupId": null,
    "tags": {
      "tag1": "Messi",
      "tag2": "Ronaldo",
      "tag3": "Lebron"
    }
  }
}
{
  "id": "string",
  "name": "string",
  "type": "string",
  "properties": {
    "subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072",
    "displayName": "Test Subscription",
    "provisioningState": "Accepted",
    "acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership",
    "acceptOwnershipState": "Pending",
    "billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
    "workload": "Production",
    "resellerId": null,
    "subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
    "managementGroupId": null,
    "tags": {
      "tag1": "Messi",
      "tag2": "Ronaldo",
      "tag3": "Lebron"
    }
  }
}

定義

名前 説明
AcceptOwnership

リソースの所有権の状態を受け入れます。

createdByType

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

ErrorResponse

エラー応答の形式について説明します。

ErrorResponseBody

エラー応答は、サービスが受信要求を処理できないことを示します。 理由は、エラー メッセージに表示されます。

ProvisioningState

リソースのプロビジョニング状態。

PutAliasRequest

新しいサブスクリプションを作成するために必要なパラメーター。

PutAliasRequestAdditionalProperties

サブスクリプションの追加プロパティを配置します。

PutAliasRequestProperties

サブスクリプションのプロパティを配置します。

SubscriptionAliasResponse

エイリアスを含むサブスクリプション情報。

SubscriptionAliasResponseProperties

サブスクリプション作成の結果プロパティを配置します。

systemData

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

workload

サブスクリプションのワークロードの種類。 運用または DevTest のいずれかを指定できます。

AcceptOwnership

リソースの所有権の状態を受け入れます。

名前 説明
Completed

string

Expired

string

Pending

string

createdByType

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

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorResponse

エラー応答の形式について説明します。

名前 説明
code

string

エラー コード

message

string

操作が失敗した理由を示すエラー メッセージ。

ErrorResponseBody

エラー応答は、サービスが受信要求を処理できないことを示します。 理由は、エラー メッセージに表示されます。

名前 説明
code

string

エラー コード

error

ErrorResponse

エラーの詳細。

message

string

操作が失敗した理由を示すエラー メッセージ。

ProvisioningState

リソースのプロビジョニング状態。

名前 説明
Accepted

string

Pending

string

Succeeded

string

PutAliasRequest

新しいサブスクリプションを作成するために必要なパラメーター。

名前 説明
properties

PutAliasRequestProperties

エイリアス要求プロパティを配置します。

PutAliasRequestAdditionalProperties

サブスクリプションの追加プロパティを配置します。

名前 説明
managementGroupId

string

サブスクリプションの管理グループ ID。

subscriptionOwnerId

string

サブスクリプションの所有者 ID

subscriptionTenantId

string

サブスクリプションのテナント ID

tags

object

サブスクリプションのタグ

PutAliasRequestProperties

サブスクリプションのプロパティを配置します。

名前 説明
additionalProperties

PutAliasRequestAdditionalProperties

エイリアス要求の追加プロパティを配置します。

billingScope

string

サブスクリプションの課金スコープ。 CustomerLed と FieldLed の場合 - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName} For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName} For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}

displayName

string

サブスクリプションのフレンドリ名。

resellerId

string

リセラー ID

subscriptionId

string

このパラメーターを使用して、既存のサブスクリプション ID のエイリアスを作成できます

workload

workload

サブスクリプションのワークロードの種類。 運用または DevTest のいずれかを指定できます。

SubscriptionAliasResponse

エイリアスを含むサブスクリプション情報。

名前 説明
id

string

エイリアス リソースの完全修飾 ID。

name

string

エイリアス ID。

properties

SubscriptionAliasResponseProperties

サブスクリプション エイリアスの応答プロパティ。

systemData

systemData

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

type

string

リソースの種類、Microsoft.Subscription/aliases。

SubscriptionAliasResponseProperties

サブスクリプション作成の結果プロパティを配置します。

名前 説明
acceptOwnershipState

AcceptOwnership

リソースの所有権の状態を受け入れます。

acceptOwnershipUrl

string

サブスクリプションの所有権を受け入れる URL。

billingScope

string

サブスクリプションの課金スコープ。 CustomerLed と FieldLed の場合 - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName} For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName} For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}

createdTime

string

Created Time

displayName

string

サブスクリプションの表示名です。

managementGroupId

string

管理グループ ID。

provisioningState

ProvisioningState

リソースのプロビジョニング状態。

resellerId

string

リセラー ID

subscriptionId

string

新しく作成されたサブスクリプション ID。

subscriptionOwnerId

string

サブスクリプションの所有者 ID

tags

object

サブスクリプションのタグ

workload

workload

サブスクリプションのワークロードの種類。 運用または DevTest のいずれかを指定できます。

systemData

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

名前 説明
createdAt

string

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

createdBy

string

リソースを作成した ID。

createdByType

createdByType

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

lastModifiedAt

string

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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

workload

サブスクリプションのワークロードの種類。 運用または DevTest のいずれかを指定できます。

名前 説明
DevTest

string

Production

string