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 | 是 | 否 | 集群类型。 | 取值范围:
|
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