ALIYUN::DEVOPS::VariableGroup is used to create a variable group.
Syntax
{
"Type": "ALIYUN::DEVOPS::VariableGroup",
"Properties": {
"Variables": List,
"Description": String,
"OrganizationId": String,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Variables | List | Yes | Yes | The variables in JSON format. | A JSON string consists of the isEncrypted, name, and value fields. The name field specifies the variable name and the value field specifies the variable value. Example:
For more information, see Variables properties. |
Description | String | No | Yes | The description of the variable group. | None. |
OrganizationId | String | Yes | No | The enterprise ID. | The enterprise ID is of the String type. You can obtain the enterprise ID by accessing the Apsara DevOps endpoint. Example:
|
Name | String | Yes | Yes | The name of the variable group. | None. |
Variables syntax
"Variables": [
{
"isEncrypted": Boolean,
"name": String,
"value": String
}
]
Variables properties
Property | Type | Required | Editable | Description | Constraint |
isEncrypted | Boolean | Yes | No | Specifies whether to encrypt the variable group. | Valid values:
|
name | String | Yes | No | The variable name. | None. |
value | String | Yes | No | The variable value. | None. |
Return values
Fn::GetAtt
VariableGroupId: the ID of the variable group.