リソースディレクトリを有効化します。リソースディレクトリを有効化すると、システムが自動的にルートフォルダを作成し、現在のアカウントを当該リソースディレクトリのエンタープライズ管理アカウントとして設定します。エンタープライズ管理アカウントは、このリソースディレクトリ上のすべての管理権限を持ちます。
操作説明
アカウントがエンタープライズ実名認証を通過した場合にのみ、リソースディレクトリの有効化が可能です。個人実名認証のみを通過したアカウントでは、リソースディレクトリを有効化できません。
リソースディレクトリの管理者として、エンタープライズ管理アカウントの使用を推奨します。ただし、クラウドリソースの購入にはエンタープライズ管理アカウントを使用しないでください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcemanager:InitResourceDirectory |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
リクエストパラメーターは必要ありません。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID です。 |
CD76D376-2517-4924-92C5-DBC52262F93A |
| ResourceDirectory |
object |
リソースディレクトリの情報です。 |
|
| CreateTime |
string |
リソースディレクトリが有効化された時刻です。 |
2019-02-18T15:32:10.473Z |
| MasterAccountId |
string |
エンタープライズ管理アカウントの ID です。 |
172841235500**** |
| MasterAccountName |
string |
エンタープライズ管理アカウントの名前です。 |
aliyun-**** |
| ResourceDirectoryId |
string |
リソースディレクトリの ID です。 |
rd-Ss**** |
| RootFolderId |
string |
ルートフォルダの ID です。 |
r-Zo**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "CD76D376-2517-4924-92C5-DBC52262F93A",
"ResourceDirectory": {
"CreateTime": "2019-02-18T15:32:10.473Z",
"MasterAccountId": "172841235500****",
"MasterAccountName": "aliyun-****",
"ResourceDirectoryId": "rd-Ss****",
"RootFolderId": "r-Zo****"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 409 | NotSupport.AccountInAnotherResourceDirectory | The specified account is an Alibaba Cloud account or already exists in another resource directory. | |
| 409 | EnterpriseRealNameVerificationError | The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account. | The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account. |
| 409 | Invalid.AccountType | The specified profile type of account is invalid. | The specified AccountType is invalid. |
| 409 | Invalid.EnterpriseName | You must specify the enterprise name. | You must specify the enterprise name. |
| 409 | NotSupport.Account.Site | The caller is not a China site account, which is not supported. | 指定されたアカウントは現在のリージョンに存在しません。 有効なアカウントを指定してください。 |
| 409 | EntityAlreadyExists.ResourceDirectory | The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. | The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。