DATASOURCE::ECS::Activation類型用于查詢單個激活碼詳情。
語法
{
"Type": "DATASOURCE::ECS::Activation",
"Properties": {
"ActivationId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
ActivationId | String | 是 | 是 | 激活碼 ID。 | 無 |
返回值
Fn::GetAtt
InstanceName:實例名稱前綴。
DeregisteredCount:已注銷的實例數。
InstanceCount:激活碼用于注冊托管實例的使用次數上限。
Description:激活碼對應的描述。
CreateTime:創建時間。
ActivationId:激活碼 ID。
RegisteredCount:已注冊的實例數。
TimeToLiveInHours:激活碼的有效時間。單位:小時。
Disabled:激活碼是否被禁用。
IpAddressRange:允許使用該激活碼的主機 IP。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: ActivationId: Type: String Description: en: Activation code ID. Required: true Resources: ExtensionDataSource: Type: DATASOURCE::ECS::Activation Properties: ActivationId: Ref: ActivationId Outputs: InstanceName: Description: The default prefix of the instance name. Value: Fn::GetAtt: - ExtensionDataSource - InstanceName DeregisteredCount: Description: The number of instances that have been logged out. Value: Fn::GetAtt: - ExtensionDataSource - DeregisteredCount InstanceCount: Description: The maximum number of times that the activation code can be used to register managed instances. Value: Fn::GetAtt: - ExtensionDataSource - InstanceCount Description: Description: The description of the activation code. Value: Fn::GetAtt: - ExtensionDataSource - Description CreateTime: Description: The time when the activation code was created. Value: Fn::GetAtt: - ExtensionDataSource - CreateTime ActivationId: Description: Activation code ID. Value: Fn::GetAtt: - ExtensionDataSource - ActivationId RegisteredCount: Description: The number of instances that were registered. Value: Fn::GetAtt: - ExtensionDataSource - RegisteredCount TimeToLiveInHours: Description: 'The validity period of the activation code. Unit: hours.' Value: Fn::GetAtt: - ExtensionDataSource - TimeToLiveInHours Disabled: Description: Indicates whether the activation code is disabled. Value: Fn::GetAtt: - ExtensionDataSource - Disabled IpAddressRange: Description: The IP address of the host that allows the activation code to be used. Value: Fn::GetAtt: - ExtensionDataSource - IpAddressRange
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "ActivationId": { "Type": "String", "Description": { "en": "Activation code ID." }, "Required": true } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::Activation", "Properties": { "ActivationId": { "Ref": "ActivationId" } } } }, "Outputs": { "InstanceName": { "Description": "The default prefix of the instance name.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceName" ] } }, "DeregisteredCount": { "Description": "The number of instances that have been logged out.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DeregisteredCount" ] } }, "InstanceCount": { "Description": "The maximum number of times that the activation code can be used to register managed instances.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceCount" ] } }, "Description": { "Description": "The description of the activation code.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Description" ] } }, "CreateTime": { "Description": "The time when the activation code was created.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CreateTime" ] } }, "ActivationId": { "Description": "Activation code ID.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "ActivationId" ] } }, "RegisteredCount": { "Description": "The number of instances that were registered.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RegisteredCount" ] } }, "TimeToLiveInHours": { "Description": "The validity period of the activation code. Unit: hours.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "TimeToLiveInHours" ] } }, "Disabled": { "Description": "Indicates whether the activation code is disabled.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Disabled" ] } }, "IpAddressRange": { "Description": "The IP address of the host that allows the activation code to be used.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "IpAddressRange" ] } } } }
文檔內容是否對您有幫助?