全部产品
Search
文档中心

资源编排:DATASOURCE::ECS::Activation

更新时间:Aug 12, 2024

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"
            ]
          }
        }
      }
    }