すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::ResourceManager::ResourceDirectory

最終更新日:Jan 16, 2025

ALIYUN::ResourceManager::ResourceDirectory は、リソースディレクトリを有効にするために使用されます。リソースディレクトリを有効にすると、システムはルートフォルダーを作成し、現在のアカウントをマスターアカウントとして設定します。マスターアカウントは、このリソースディレクトリに対するすべての管理権限を持ちます。

構文

{
 "Type": "ALIYUN::ResourceManager::ResourceDirectory",
 "Properties": {}
}

プロパティ

なし

レスポンスパラメーター

Fn::GetAtt

  • ResourceDirectoryId: リソースディレクトリの ID。
  • MasterAccountName: マスターアカウントの名前。
  • CreateTime: リソースディレクトリが有効になった時刻。
  • RootFolderId: ルートフォルダーの ID。
  • MasterAccountId: マスターアカウントの ID。

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ResourceManagerResourceDirectory": {
      "Type": "ALIYUN::ResourceManager::ResourceDirectory",
      "Properties": {}
    }
  },
  "Outputs": {
    "ResourceDirectoryId": {
      "Description": "The ID of the resource directory", // リソースディレクトリのID
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceDirectory",
          "ResourceDirectoryId"
        ]
      }
    },
    "MasterAccountName": {
      "Description": "The name of the master account", // マスターアカウントの名前
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceDirectory",
          "MasterAccountName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the resource directory was created", // リソースディレクトリが作成された時刻
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceDirectory",
          "CreateTime"
        ]
      }
    },
    "RootFolderId": {
      "Description": "The ID of the root folder", // ルートフォルダーのID
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceDirectory",
          "RootFolderId"
        ]
      }
    },
    "MasterAccountId": {
      "Description": "The ID of the master account", // マスターアカウントのID
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerResourceDirectory",
          "MasterAccountId"
        ]
      }
    }
  }
}

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
 ResourceManagerResourceDirectory:
  Type: 'ALIYUN::ResourceManager::ResourceDirectory'
  Properties: {}
Outputs:
 ResourceDirectoryId:
  Description: The ID of the resource directory # リソースディレクトリのID
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceDirectory
    - ResourceDirectoryId
 MasterAccountName:
  Description: The name of the master account # マスターアカウントの名前
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceDirectory
    - MasterAccountName
 CreateTime:
  Description: The time when the resource directory was created # リソースディレクトリが作成された時刻
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceDirectory
    - CreateTime
 RootFolderId:
  Description: The ID of the root folder # ルートフォルダーのID
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceDirectory
    - RootFolderId
 MasterAccountId:
  Description: The ID of the master account # マスターアカウントのID
  Value:
   'Fn::GetAtt':
    - ResourceManagerResourceDirectory
    - MasterAccountId