クラウドアカウントを作成します。
操作説明
リソースディレクトリは、リソースアカウントとクラウドアカウントの 2 種類のメンバーアカウントをサポートしています。
リソースアカウント(推奨): リソースアカウントはリソースコンテナとしてのみ使用され、リソースディレクトリに完全に依存します。このようなメンバーアカウントはセキュリティが高く、簡単に作成できます。リソースアカウントの作成方法の詳細については、「CreateResourceAccount」をご参照ください。
リソースアカウントはクラウドアカウントにスペックアップできます。詳細については、「PromoteResourceAccount」をご参照ください。
クラウドアカウント: クラウドアカウントは Alibaba Cloud アカウントのすべての機能(ルート権限を含む)を備えています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcemanager:CreateCloudAccount |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DisplayName |
string |
必須 |
メンバーアカウントの表示名です。 名前は 2~50 文字で、英数字、アンダースコア (_)、ピリオド (.)、ハイフン (-) を使用できます。 名前は現在のリソースディレクトリ内で一意である必要があります。 |
admin-**** |
| ParentFolderId |
string |
任意 |
親フォルダーの ID です。 |
fd-bVaRIG**** |
|
string |
必須 |
クラウドアカウントへのログインに使用するメールアドレスです。 |
someone@example.com |
|
| PayerAccountId |
string |
任意 |
決済アカウントの ID です。このパラメーターを指定しない場合、現在のアカウントが決済に使用されます。 |
12323344**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Account |
object |
メンバーアカウントの情報です。 |
|
| AccountId |
string |
メンバーアカウントの ID です。 |
12323344**** |
| AccountName |
string |
メンバーアカウントの名前です。 |
someone@example.com |
| DisplayName |
string |
メンバーアカウントの表示名です。 |
admin-**** |
| FolderId |
string |
フォルダーの ID です。 |
fd-bVaRIG**** |
| JoinMethod |
string |
メンバーアカウントがリソースディレクトリに参加した方法です。有効な値は次のとおりです。
|
created |
| ModifyTime |
string |
メンバーアカウントが変更された時刻です。 |
2015-01-23T12:33:18Z |
| RecordId |
string |
アカウントレコード ID です。 |
06950264-3f0d-4ca9-82dd-6ee7a3d3**** |
| ResourceDirectoryId |
string |
リソースディレクトリの ID です。 |
rd-k3**** |
| Status |
string |
メンバーアカウントのステータスです。有効な値は次のとおりです。
|
CreateVerifying |
| Type |
string |
メンバーアカウントのタイプです。値 CloudAccount は、メンバーアカウントがクラウドアカウントであることを示します。 |
CloudAccount |
| RequestId |
string |
リクエストの ID です。 |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
例
成功レスポンス
JSONJSON
{
"Account": {
"AccountId": "12323344****",
"AccountName": "someone@example.com",
"DisplayName": "admin-****",
"FolderId": "fd-bVaRIG****",
"JoinMethod": "created",
"ModifyTime": "2015-01-23T12:33:18Z",
"RecordId": "06950264-3f0d-4ca9-82dd-6ee7a3d3****",
"ResourceDirectoryId": "rd-k3****",
"Status": "CreateVerifying",
"Type": "CloudAccount"
},
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.Account.DisplayName | You must specify DisplayName. | 指定されたメンバーアカウント名は無効です。 有効な名前を指定してください。 |
| 400 | InvalidParameter.Account.DisplayName | The DisplayName of account is invalid. | 指定されたメンバーアカウント名は無効です。 メンバーアカウント名は英数字、アンダースコア (_)、ピリオド (.) およびハイフン (-) を使用できます。 |
| 400 | InvalidParameter.Account.DisplayName.Length | The DisplayName of the account exceeds the length limit. | 指定されたメンバーアカウント名の文字数が上限を超えました。 名前は 2~50 文字である必要があります。 |
| 400 | InvalidParameter.ParentFolderId | The ParentFolderId is invalid. | 指定された親フォルダー ID は無効です。 ID は r- で始まる 6 文字の文字列か、fd- で始まる 10 文字の文字列である必要があり、 英数字を使用できます。 |
| 400 | MissingParameter.Email | You must specify Email. | The specified email address is invalid. You must specify a valid email address. |
| 400 | InvalidParameter.Email | The Email is invalid. | The format of the specified email address is invalid. |
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. |
| 404 | EntityNotExists.Folder | The resource directory folder does not exist. | 指定されたリソースディレクトリは既に存在しています。 まずリソースディレクトリを作成してください。 |
| 409 | LimitExceeded.Account | The maximum number of member accounts in a resource directory exceeds the limit. | The maximum number of member accounts in a resource directory exceeds the limit. |
| 409 | InvalidParameter.Account.DisplayName.AlreadyUsed | The displayname of account has been used. | メンバーアカウント名は既に存在しています。 他のアカウント名を指定してください。 |
| 409 | EntityAlreadyExists.ResourceDirectory.Account | The email address that the system generates when you create a member account already exists. Try again later. | The email address that the system generates when you create a member account already exists. Try again later. |
| 409 | InvalidParameter.Email.AlreadyUsed | The email has been used. | 指定されたメールアドレスは既に存在しています。 他のメールアドレスを指定してください。 |
| 409 | Invalid.PayRelation | Failed to create a member. The specified billing account is unavailable. Please change to another billing account and try again. | #### #### #### |
| 409 | NotSupport.PayerAccountInAnotherResourceDirectory | The specified settlement account does not exist in the resource directory. You must specify a valid settlement account. | |
| 409 | CreateAccountDisabled | This resource directory is denied to create account. | |
| 409 | PaymentAccountEnterpriseVerifyError | The type of the payment account is not enterprise verified. | |
| 409 | PaymentAccountFinancialRelationshipVerifyError | The payment account must not be the beneficiary account from other financial relationships. | |
| 409 | PaymentAccountEnterpriseTypeError | The type of the payment account is not enterprise. | |
| 409 | PaymentAccountFinancialRelationshipsChangeFrequencyVerifyError | The financial relationship of payment account changes too frequently. Please try again later. | |
| 409 | MemberAccountVirtualCloudOperatorVerifyError | The type of the member account must not be virtual operator. | |
| 409 | MemberAccountResellerVerifyError | The type of the member account must not be reseller. | |
| 409 | PaymentAccountVirtualCloudOperatorVerifyError | The type of the payment account must not be virtual operator. | |
| 409 | PaymentAccountResellerVerifyError | The type of the payment account must not be reseller. | |
| 409 | PaymentAccountCreditIdentityTypeError | The identity of the payment account is not credit. | |
| 409 | InconsistentEnterpriseNameError | The enterprise name of the payment account and the member account must be consistent. | |
| 409 | PaymentAccountEnterpriseInvoiceError | No enterprise invoice header information is set for the payment account. | |
| 409 | UnknownFinancialError | An unknown financial error occurred. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。