O tipo de recurso ALIYUN::FOAS::Project cria um projeto em um cluster.
Sintaxe
{
"Type": "ALIYUN::FOAS::Project",
"Properties": {
"OrderId": String,
"DeployType": String,
"Description": String,
"ManagerIds": String,
"ClusterId": String,
"Name": String
}
}
Propriedades
| Nome da propriedade | Tipo | Obrigatório | Atualizável | Descrição | Restrições |
| OrderId | String | Não | Não | ID da instância para o modo compartilhado. | Obrigatório apenas no modo compartilhado. |
| DeployType | String | Sim | Não | Tipo do cluster. | Valores válidos:
|
| Description | String | Não | Não | Descrição do projeto. | Nenhuma. |
| ManagerIds | String | Sim | Não | IDs das contas dos administradores. | Separe vários IDs de conta por vírgula (,). |
| ClusterId | String | Não | Não | ID do cluster. | Nenhuma. |
| Name | String | Sim | Não | Nome do projeto. | O nome deve ter de 3 a 64 caracteres, começar com letra minúscula e conter apenas letras minúsculas, dígitos e sublinhados (_). |
Valor de retorno
Fn::GetAtt
State: estado do projeto.
Exemplos
Formato 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"
]
}
}
}
}
Formato 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