メンバーの表示名を変更するか、メンバーのタイプを切り替えます。
操作説明
システムが管理操作のオペレーターを記録できるように、リソースディレクトリの管理アカウント内で `AliyunResourceDirectoryFullAccess` ポリシーがアタッチされた RAM ユーザーまたは RAM ロールを使用して、この操作を呼び出す必要があります。
メンバーのタイプをリソースアカウントからクラウドアカウントに切り替える前に、特定の条件が満たされていることを確認してください。 条件の詳細については、「リソースアカウントをクラウドアカウントに切り替える」をご参照ください。
メンバーのタイプをクラウドアカウントからリソースアカウントに切り替える前に、特定の条件が満たされていることを確認してください。 条件の詳細については、「クラウドアカウントをリソースアカウントに切り替える」をご参照ください。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| NewDisplayName |
string |
任意 |
メンバーの新しい表示名。 説明
|
admin |
| NewAccountType |
string |
任意 |
メンバーの新しいタイプ。 有効な値:
説明
|
ResourceAccount |
| AccountId |
string |
必須 |
メンバーの Alibaba Cloud アカウント ID。 |
12323344**** |
| DryRun |
boolean |
任意 |
実際のリクエストを実行せずに、ドライランのみを実行するかどうかを指定します。 有効な値:
|
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返された結果。 |
||
| Account |
object |
メンバーの情報。 |
|
| Status |
string |
メンバーのステータス。 有効な値:
|
CreateSuccess |
| Type |
string |
メンバーのタイプ。 有効な値:
|
ResourceAccount |
| DisplayName |
string |
メンバーの表示名。 |
admin |
| FolderId |
string |
フォルダの ID。 |
fd-bVaRIG**** |
| ResourceDirectoryId |
string |
リソースディレクトリの ID。 |
rd-k3**** |
| JoinTime |
string |
メンバーがリソースディレクトリに参加した時間。 時刻は UTC で表示されます。 |
2015-01-23T12:33:18Z |
| AccountId |
string |
メンバーの Alibaba Cloud アカウント ID。 |
12323344**** |
| JoinMethod |
string |
メンバーがリソースディレクトリに参加する方法。 有効な値:
|
created |
| ModifyTime |
string |
メンバーが変更された時間。 時刻は UTC で表示されます。 |
2015-01-23T12:33:18Z |
| AccountName |
string |
メンバーの Alibaba Cloud アカウント名。 |
ecs-manager@aliyun.com |
| RequestId |
string |
リクエストの ID。 |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
例
成功レスポンス
JSONJSON
{
"Account": {
"Status": "CreateSuccess",
"Type": "ResourceAccount",
"DisplayName": "admin",
"FolderId": "fd-bVaRIG****",
"ResourceDirectoryId": "rd-k3****",
"JoinTime": "2015-01-23T12:33:18Z",
"AccountId": "12323344****",
"JoinMethod": "created",
"ModifyTime": "2015-01-23T12:33:18Z",
"AccountName": "ecs-manager@aliyun.com"
},
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | |
| 404 | EntityNotExists.Account | This resource directory account does not exist. | |
| 409 | InvalidParameter.Account.DisplayName.AlreadyUsed | The displayname of account has been used. | |
| 409 | MissingDisplayNameOrAccountType | Either display name or account type must be specified. | |
| 409 | AccountTypeMismatch | The type or status of the member account cannot satisfy the current operation. | |
| 409 | PrimaryAkInUse | The account has the primary AK in use. | |
| 409 | MissingSecurityInfo | Security information is missing. | |
| 409 | LegalEntityDifferent | The account legal entity is different from the one of the Management Account. | |
| 409 | CallerIdentityError | Please use the RAM user or role of the Management Account. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。