Créez un cluster de passerelle pour Cloud Storage Gateway (CSG).
Syntaxe
{
"Type": "ALIYUN::CloudStorageGateway::StorageBundle",
"Properties": {
"Description": String,
"StorageBundleName": String
}
}
Propriétés
|**Propriété**
|
**Type**
|
**Obligatoire**
|
**Modifiable**
|
**Description**
|
**Contrainte**
| | --- | --- | --- | --- | --- | --- | |
StorageBundleName
|
String
|
Oui
|
Oui
|
Nom du cluster de passerelle.
|
Le nom doit comporter entre 1 et 60 caractères et peut contenir des lettres, des chiffres, des points (.), des traits de soulignement (_) et des tirets (-). Il doit commencer par une lettre.
| |
Description
|
String
|
Non
|
Oui
|
Description du cluster de passerelle.
|
La description peut comporter jusqu’à 128 caractères.
|
Valeurs renvoyées
Fn::GetAtt
Description : description du cluster de passerelle.
CreateTime : horodatage de création du cluster de passerelle.
StorageBundleId : ID du cluster de passerelle.
StorageBundleName : nom du cluster de passerelle.
Exemples
Format YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
AssociationProperty: TextArea
Description:
en: The description of the gateway cluster. The description must be 0 to 128
characters in length.
Required: false
Type: String
StorageBundleName:
Description:
en: The name of the gateway cluster. The name must be 1 to 60 characters in
length and can contain letters, digits, periods (.), underscores (_), and
hyphens (-). It must start with a letter.
Required: true
Type: String
Resources:
ExtensionResource:
Properties:
Description:
Ref: Description
StorageBundleName:
Ref: StorageBundleName
Type: ALIYUN::CloudStorageGateway::StorageBundle
Outputs:
CreateTime:
Description: Create a gateway cluster timestamp.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description:
Description: Gateway cluster description.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
StorageBundleId:
Description: The ID of the gateway cluster.
Value:
Fn::GetAtt:
- ExtensionResource
- StorageBundleId
StorageBundleName:
Description: Gateway cluster name.
Value:
Fn::GetAtt:
- ExtensionResource
- StorageBundleName
Format JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "The description of the gateway cluster. The description must be 0 to 128 characters in length."
},
"Required": false
},
"StorageBundleName": {
"Type": "String",
"Description": {
"en": "The name of the gateway cluster. The name must be 1 to 60 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CloudStorageGateway::StorageBundle",
"Properties": {
"Description": {
"Ref": "Description"
},
"StorageBundleName": {
"Ref": "StorageBundleName"
}
}
}
},
"Outputs": {
"Description": {
"Description": "Gateway cluster description.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CreateTime": {
"Description": "Create a gateway cluster timestamp.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"StorageBundleId": {
"Description": "The ID of the gateway cluster.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StorageBundleId"
]
}
},
"StorageBundleName": {
"Description": "Gateway cluster name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StorageBundleName"
]
}
}
}
}