ALIYUN::FOAS::Project类型用于在集群中创建项目。

语法

{
  "Type": "ALIYUN::FOAS::Project",
  "Properties": {
    "OrderId": String,
    "DeployType": String,
    "Description": String,
    "ManagerIds": String,
    "ClusterId": String,
    "Name": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
OrderId String 共享模式实例ID。 仅共享模式用户需要填写。
DeployType String 集群类型。 取值范围:
  • cell:独享集群。
  • public:共享集群
Description String 项目描述。 无。
ManagerIds String 管理人员的账号ID。 多个账号ID之间以半角逗号(,)分隔。
ClusterId String 集群ID。 无。
Name String 项目名称。 由小写英文字母、数字、下划线(_)组成,必须以英文字母开头,长度为3~64个字符。

返回值

Fn::GetAtt

State:项目状态。

示例

JSON格式:
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Project": {
      "Type": "ALIYUN::FOAS::Project",
      "Properties": {
        "OrderId": {
          "Ref": "OrderId"
        },
        "DeployType": {
          "Ref": "DeployType"
        },
        "Description": {
          "Ref": "Description"
        },
        "ManagerIds": {
          "Ref": "ManagerIds"
        },
        "ClusterId": {
          "Ref": "ClusterId"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Parameters": {
    "OrderId": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Order Id of Shared cluster."
    },
    "DeployType": {
      "Type": "String",
      "Description": "Cluster type: Exclusive cluster: cell. Shared cluster: public",
      "AllowedValues": [
        "cell",
        "public"
      ]
    },
    "Description": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Project description."
    },
    "ManagerIds": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Comma delimited account Id list of managers."
    },
    "ClusterId": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Cluster ID."
    },
    "Name": {
      "AllowedPattern": "[a-z][a-z0-9_]{2,63}",
      "Type": "String",
      "Description": "Project name. It begins with a letter, and contains only lowercase English letters, numbers, underscores (_), and is limited to 3-64 characters."
    }
  },
  "Outputs": {
    "State": {
      "Description": "Project state.",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "State"
        ]
      }
    }
  }
}
YAML格式 :
ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Project:
    Type: ALIYUN::FOAS::Project
    Properties:
      OrderId:
        Ref: OrderId
      DeployType:
        Ref: DeployType
      Description:
        Ref: Description
      ManagerIds:
        Ref: ManagerIds
      ClusterId:
        Ref: ClusterId
      Name:
        Ref: Name
Parameters:
  OrderId:
    MinLength: 1
    Type: String
    Description: Order Id of Shared cluster.
  DeployType:
    Type: String
    Description: 'Cluster type: Exclusive cluster: cell. Shared cluster: public'
    AllowedValues:
    - cell
    - public
  Description:
    MinLength: 1
    Type: String
    Description: Project description.
  ManagerIds:
    MinLength: 1
    Type: String
    Description: Comma delimited account Id list of managers.
  ClusterId:
    MinLength: 1
    Type: String
    Description: Cluster ID.
  Name:
    AllowedPattern: "[a-z][a-z0-9_]{2,63}"
    Type: String
    Description: Project name. It begins with a letter, and contains only lowercase
      English letters, numbers, underscores (_), and is limited to 3-64 characters.
Outputs:
  State:
    Description: Project state.
    Value:
      Fn::GetAtt:
      - Project
      - State