All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ECS::Activation

更新時間:Sep 05, 2024

DATASOURCE::ECS::Activation is used to query the information about an activation code.

Syntax

{
  "Type": "DATASOURCE::ECS::Activation",
  "Properties": {
    "ActivationId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

ActivationId

String

Yes

Yes

The ID of the activation code.

None.

Return values

Fn::GetAtt

  • InstanceName: the prefix of the instance name.

  • DeregisteredCount: the number of deregistered instances.

  • InstanceCount: the maximum number of times that the activation code can be used to register managed instances.

  • Description: the description of the activiation code.

  • CreateTime: the creation time.

  • ActivationId: the ID of the activation code.

  • RegisteredCount: the number of registered instances.

  • TimeToLiveInHours: the validity period of the activation code. Unit: hour.

  • Disabled: indicates whether the activation code is disabled.

  • IpAddressRange: the IP addresses of hosts that are allowed to use the activation code.

Examples

  • YAML format

    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 format

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