All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ECS::DeploymentSet

更新時間:Sep 10, 2024

DATASOURCE::ECS::DeploymentSet is used to query the information about a deployment set.

Syntax

{
  "Type": "DATASOURCE::ECS::DeploymentSet",
  "Properties": {
    "DeploymentSetId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

DeploymentSetId

String

Yes

Yes

The ID of the deployment set.

None.

Return values

Fn::GetAtt

  • DeploymentSetId: the ID of the deployment set.

  • InstanceAmount: the number of instances in the deployment set.

  • GroupCount: the number of groups in the deployment set.

  • CreateTime: the creation time of the deployment set.

  • Strategy: the deployment strategy.

  • DeploymentSetName: the name of the deployment set.

  • Granularity: the deployment granularity.

  • InstanceIds: the IDs of the instances in the deployment set.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DeploymentSetId:
        Type: String
        Description:
          en: The ID of deployment set.
        Required: true
        AssociationProperty: ALIYUN::ECS::DeploymentSet::DeploymentSetId
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::ECS::DeploymentSet
        Properties:
          DeploymentSetId:
            Ref: DeploymentSetId
    Outputs:
      DeploymentSetId:
        Description: The ID of deployment set.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DeploymentSetId
      InstanceAmount:
        Description: The number of instances in the deployment set.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstanceAmount
      GroupCount:
        Description: The number of deployment set groups in the deployment set.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - GroupCount
      CreateTime:
        Description: The time when the deployment set was created.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - CreateTime
      Strategy:
        Description: The deployment strategy.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Strategy
      DeploymentSetName:
        Description: 'The name of the deployment set. '
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DeploymentSetName
      Granularity:
        Description: The deployment granularity.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Granularity
      InstanceIds:
        Description: The IDs of the instances in the deployment set.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstanceIds
    
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DeploymentSetId": {
          "Type": "String",
          "Description": {
            "en": "The ID of deployment set."
          },
          "Required": true,
          "AssociationProperty": "ALIYUN::ECS::DeploymentSet::DeploymentSetId"
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::ECS::DeploymentSet",
          "Properties": {
            "DeploymentSetId": {
              "Ref": "DeploymentSetId"
            }
          }
        }
      },
      "Outputs": {
        "DeploymentSetId": {
          "Description": "The ID of deployment set.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DeploymentSetId"
            ]
          }
        },
        "InstanceAmount": {
          "Description": "The number of instances in the deployment set.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceAmount"
            ]
          }
        },
        "GroupCount": {
          "Description": "The number of deployment set groups in the deployment set.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "GroupCount"
            ]
          }
        },
        "CreateTime": {
          "Description": "The time when the deployment set was created.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "Strategy": {
          "Description": "The deployment strategy.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Strategy"
            ]
          }
        },
        "DeploymentSetName": {
          "Description": "The name of the deployment set. ",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DeploymentSetName"
            ]
          }
        },
        "Granularity": {
          "Description": "The deployment granularity.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Granularity"
            ]
          }
        },
        "InstanceIds": {
          "Description": "The IDs of the instances in the deployment set.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceIds"
            ]
          }
        }
      }
    }