全部产品
Search
文档中心

资源编排:CAS资源

更新时间:Mar 16, 2026

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CAS::Certificate::CertificateId

SLB实例的证书。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Certificate": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CAS::Certificate::CertificateId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Certificate:
        Type: String
        AssociationProperty: ALIYUN::CAS::Certificate::CertificateId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数Certificate的AssociationProperty属性为ALIYUN::CAS::Certificate::CertificateId,AssociationPropertyMetadata属性为RegionId,获取当前地域下SLB服务证书。

CEN资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CEN::Instance::CenId

查询当前阿里云账号下的云企业网实例信息。

  • ResourceGroupId:云企业网实例所属的资源组ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
    },
    "CenId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::Instance::CenId",
      "AssociationPropertyMetadata": {
        "ResourceGroupId": "${ResourceGroupId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ResourceGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  CenId:
    Type: String
    AssociationProperty: ALIYUN::CEN::Instance::CenId
    AssociationPropertyMetadata:
      ResourceGroupId: ${ResourceGroupId}

ALIYUN::CEN::TransitRouter::TransitRouterId

查询云企业网实例下转发路由器实例的信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • CenId:云企业网实例ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
    },
    "CenId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::Instance::CenId",
      "AssociationPropertyMetadata": {
        "ResourceGroupId": "${ResourceGroupId}"
      }
    },
    "TransitRouterId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::TransitRouter::TransitRouterId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "CenId": "${CenId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ResourceGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  CenId:
    Type: String
    AssociationProperty: ALIYUN::CEN::Instance::CenId
    AssociationPropertyMetadata:
      ResourceGroupId: ${ResourceGroupId}
  TransitRouterId:
    Type: String
    AssociationProperty: ALIYUN::CEN::TransitRouter::TransitRouterId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      CenId: ${CenId}

CMS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CMS::Alarm::MetricSelector

查询云监控开放的监控项详情。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CMSMetricSelector": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CMS::Alarm::MetricSelector"
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CMSMetricSelector:
    Type: String
    AssociationProperty: ALIYUN::CMS::Alarm::MetricSelector

ALIYUN::CMS::Alarm::Rule

阈值报警规则。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Rule": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::Rule",
          "Type": "String",
          "Description": {
            "zh-cn": "选择阈值报警规则",
            "en": "AlarmRule"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Rule:
        AssociationProperty: ALIYUN::CMS::Alarm::Rule
        Type: String
        Description:
          zh-cn: 选择阈值报警规则
          en: AlarmRule
  • 示例说明

    示例中通过指定参数Rule的AssociationProperty属性为ALIYUN::CMS::Alarm::Rule,获取阈值报警规则。

ALIYUN::CMS::Alarm::SilenceTime

报警沉默周期。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "SilenceTime": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::SilenceTime",
          "Type": "String",
          "Description": {
            "zh-cn": "报警沉默周期",
            "en": "SilenceTime"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      SilenceTime:
        AssociationProperty: ALIYUN::CMS::Alarm::SilenceTime
        Type: String
        Description:
          zh-cn: 报警沉默周期
          en: SilenceTime
  • 示例说明

    示例中通过指定参数SilenceTime的AssociationProperty属性为ALIYUN::CMS::Alarm::SilenceTime,获取报警沉默周期。

ALIYUN::CMS::Alarm::TriggerResources

报警资源触发器。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TriggerResources": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::TriggerResources",
          "Type": "String",
          "Description": {
            "zh-cn": "选择报警资源触发器",
            "en": "TriggerResources"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TriggerResources:
        AssociationProperty: ALIYUN::CMS::Alarm::TriggerResources
        Type: String
        Description:
          zh-cn: 选择报警资源触发器
          en: TriggerResources
  • 示例说明

    示例中通过指定参数TriggerResources的AssociationProperty属性为ALIYUN::CMS::Alarm::TriggerResources,获取报警资源触发器。

ALIYUN::CMS::Event::EventFilterRule

事件报警规则。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventRule": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventFilterRule",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警规则",
            "en": "EventRule"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventRule:
        AssociationProperty: ALIYUN::CMS::Event::EventFilterRule
        Type: String
        Description:
          zh-cn: 选择事件报警规则
          en: EventRule
  • 示例说明

    示例中通过指定参数EventRule的AssociationProperty属性为ALIYUN::CMS::Event::EventFilterRule,获取事件报警规则。

ALIYUN::CMS::Event::EventLevel

事件报警级别。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventLevel": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventLevel",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警级别",
            "en": "EventLevel"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventLevel:
        AssociationProperty: ALIYUN::CMS::Event::EventLevel
        Type: String
        Description:
          zh-cn: 选择事件报警级别
          en: EventLevel
  • 示例说明

    示例中通过指定参数EventLevel的AssociationProperty属性为ALIYUN::CMS::Event::EventLevel,获取事件报警级别。

ALIYUN::CMS::Event::EventName

事件报警名称。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventName": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventName",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警名称",
            "en": "EventName"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventName:
        AssociationProperty: ALIYUN::CMS::Event::EventName
        Type: String
        Description:
          zh-cn: 选择事件报警名称
          en: EventName
  • 示例说明

    示例中通过指定参数EventName的AssociationProperty属性为ALIYUN::CMS::Event::EventName,获取事件报警名称。

ALIYUN::CMS::Product::ProductType

事件支持的云服务。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ProductType": {
          "AssociationProperty": "ALIYUN::CMS::Product::ProductType",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警名称",
            "en": "ProductType"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ProductType:
        AssociationProperty: ALIYUN::CMS::Product::ProductType
        Type: String
        Description:
          zh-cn: 选择事件报警名称
          en: ProductType
  • 示例说明

    示例中通过指定参数ProductType的AssociationProperty属性为ALIYUN::CMS::Product::ProductType,获取事件支持的云服务。

CR资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CR::Instance::InstanceId

查询企业版容器镜像实例信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • InstanceStatus:实例状态。取值:

    • PENDING:初始化中。

    • INIT_ERROR:初始化失败。

    • STARTING:启动中。

    • RUNNING:运行中。

    • STOPPING:停止中。

    • STOPPED:已停止。

    • DELETING:删除中。

    • DELETED:已删除。

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "CRInstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CR::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "InstanceStatus": "RUNNING"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      CRInstanceId:
        Type: String
        AssociationProperty: ALIYUN::CR::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          InstanceStatus: RUNNING

ALIYUN::CR::NameSpace::Name

查询企业版容器镜像命名空间信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • NamespaceStatus:命名空间状态,取值:

    • NORMAL:正常。

    • DELETING:删除中。

  • InstanceId:实例ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRNameSpace": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::NameSpace::Name",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "NamespaceStatus": "NORMAL"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRNameSpace:
    Type: String
    AssociationProperty: ALIYUN::CR::NameSpace::Name
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      NamespaceStatus: NORMAL

ALIYUN::CR::Repository::RepoName

查询企业版容器镜像仓库信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • RepoStatus:仓库状态,取值:

    • NORMAL:正常。

    • DELETING:删除中。

    • DELETED:已删除。

    • ALL:所有仓库状态。

  • InstanceId:实例ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRRepository": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::Repository::RepoName",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "RepoStatus": "NORMAL"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRRepository:
    Type: String
    AssociationProperty: ALIYUN::CR::Repository::RepoName
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      RepoStatus: NORMAL

ALIYUN::CR::Repository::Tag

查询企业版容器镜像版本(Tag)信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • RepoId:仓库ID。

  • InstanceId:实例ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRRepositoryTag": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::Repository::Tag",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRRepositoryTag:
    Type: String
    AssociationProperty: ALIYUN::CR::Repository::Tag
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

CS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CS::Cluster::ClusterId

容器集群ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ClusterState: 集群状态。

    • running:运行中。

    • initial:初始化中。

    • unavailable:不可用。

    • all:任意状态。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ClusterId":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ClusterId:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数ClusterId的AssociationProperty属性为ALIYUN::CS::Cluster::ClusterId,获取容器集群ID。

ALIYUN::CS::Cluster::ClusterNodePool

容器集群内的节点池。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ClusterId:容器集群ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ClusterId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CS::Cluster::ClusterId"
        },
        "ClusterNodePool":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ClusterId": "${ClusterId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClusterId:
        Type: String
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
      ClusterNodePool:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          ClusterId: ${ClusterId}
  • 示例说明

    示例中通过指定参数ClusterNodePool的AssociationProperty属性为ALIYUN::CS::Cluster::ClusterNodePool,获取容器集群内的节点池。

ALIYUN::CS::Cluster::KubernetesVersion

查询Kubernetes版本信息。

  • ClusterType:集群类型。

    • Kubernetes: ACK 专有版集群。

    • ManagedKubernetes:ACK 托管版集群,包括 ACK Pro 版集群、ACK 基础版集群、ACK Serverless Pro 版集群、ACK Serverless 基础版集群、ACK Edge Pro 版集群、ACK Edge 基础版。

    • ExternalKubernetes:ACK 注册集群。

  • Profile:面向场景时的集群类型。

    • Default:非边缘场景集群。

    • Edge:边缘场景集群。

    • Serverless:ASK 集群。

  • Runtime:运行时类型。

    • docker:docker 运行时。

    • containerd:containerd 运行时。

    • Sandboxed-Container.runv:安全沙箱。

  • KubernetesVersionPrefix:版本前缀。

  • AutoSelectLastest:自动选择最新版。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CSManagedKubernetesClusterServiceCidr": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CS::Cluster::KubernetesVersion",
      "AssociationPropertyMetadata": {
        "AutoSelectLastest": true
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CSManagedKubernetesClusterServiceCidr:
    Type: String
    AssociationProperty: ALIYUN::CS::Cluster::KubernetesVersion
    AssociationPropertyMetadata:
      AutoSelectLastest: true

ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr

查询Kubernetes托管版集群Service CIDR信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ClusterType:集群类型。

  • VpcId:专有网络ID。

  • NodeCidrMask:节点的最大IP地址数量。

  • ContainerCidr:容器网段。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "CSManagedKubernetesClusterServiceCidr": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "VpcId": "${VpcId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  CSManagedKubernetesClusterServiceCidr:
    Type: String
    AssociationProperty: ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      VpcId: ${VpcId}

ComputeNest资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ComputeNest::Artifact::ArtifactId

查询计算巢部署物信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ArtifactType:部署物类型。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ComputeNestArtifactArtifactId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ComputeNest::Artifact::ArtifactId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ComputeNestArtifactArtifactId:
    Type: String
    AssociationProperty: ALIYUN::ComputeNest::Artifact::ArtifactId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ALIYUN::ComputeNest::Artifact::ArtifactIdVersion

查询计算巢部署物版本信息。

  • ArtifactId:部署物ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ComputeNestArtifactArtifactId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ComputeNest::Artifact::ArtifactId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "ComputeNestArtifactArtifactIdVersion": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ComputeNest::Artifact::ArtifactIdVersion",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "ArtifactId": "${ComputeNestArtifactArtifactId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ComputeNestArtifactArtifactId:
    Type: String
    AssociationProperty: ALIYUN::ComputeNest::Artifact::ArtifactId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  ComputeNestArtifactArtifactIdVersion:
    Type: String
    AssociationProperty: ALIYUN::ComputeNest::Artifact::ArtifactIdVersion
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      ArtifactId: ${ComputeNestArtifactArtifactId}

ALIYUN::ComputeNest::Service::ServiceId

计算巢服务ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • InUsed:是否被使用。

  • IsVendor:是否有服务商。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ServiceId":{
          "AssociationProperty":"ALIYUN::ComputeNest::Service::ServiceId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ServiceId:
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数ServiceId的AssociationProperty属性为ALIYUN::ComputeNest::Service::ServiceId,获取计算巢服务ID。

ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId

计算巢服务实例ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ServiceType:服务类型。

  • DeployType:部署类型。

  • Status:服务状态。

  • ServiceId:服务ID。

  • Version:服务版本。

  • IsVendor:是否有服务商。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ServiceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ComputeNest::Service::ServiceId"
        },
        "ServiceInstanceId":{
          "AssociationProperty":"ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ServiceId": "${ServiceId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ServiceId:
        Type: String
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
      ServiceInstanceId:
        AssociationProperty: ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId
        Type: String
        AssociationPropertyMetadata:
          ServiceId: ${ServiceId}
  • 示例说明

    示例中通过指定参数ServiceInstanceId的AssociationProperty属性为ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId,获取计算巢服务实例ID。

ALIYUN::ComputeNestSupplier::Service::ServiceVersion

计算巢服务版本。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ServiceId:服务ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ServiceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ComputeNest::Service::ServiceId"
        },
        "ServiceVersion":{
          "AssociationProperty":"ALIYUN::ComputeNestSupplier::Service::ServiceVersion",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ServiceId": "${ServiceId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ServiceId:
        Type: String
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
      ServiceVersion:
        AssociationProperty: ALIYUN::ComputeNestSupplier::Service::ServiceVersion
        Type: String
        AssociationPropertyMetadata:
          ServiceId: ${ServiceId}
  • 示例说明

    示例中通过指定参数ServiceVersion的AssociationProperty属性为ALIYUN::ComputeNestSupplier::Service::ServiceVersion,获取计算巢服务版本。

ComputeNestSupplier资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ComputeNestSupplier::Service::ServiceVersion

计算巢服务版本。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ServiceId:服务ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ServiceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ComputeNest::Service::ServiceId"
        },
        "ServiceVersion":{
          "AssociationProperty":"ALIYUN::ComputeNestSupplier::Service::ServiceVersion",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ServiceId": "${ServiceId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ServiceId:
        Type: String
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
      ServiceVersion:
        AssociationProperty: ALIYUN::ComputeNestSupplier::Service::ServiceVersion
        Type: String
        AssociationPropertyMetadata:
          ServiceId: ${ServiceId}
  • 示例说明

    示例中通过指定参数ServiceVersion的AssociationProperty属性为ALIYUN::ComputeNestSupplier::Service::ServiceVersion,获取计算巢服务版本。

DNS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::DNS::Domain::ValidateDomain

检验DNS域名可用性。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • DomainType:域名类型。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "DNSValidateDomain": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::DNS::Domain::ValidateDomain",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  DNSValidateDomain:
    Type: String
    AssociationProperty: ALIYUN::DNS::Domain::ValidateDomain
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

DashVector资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::DashVector::ApiKey

查询向量检索API-KEY

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DashVectorApiKey": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::DashVector::ApiKey"
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DashVectorApiKey:
    Type: String
    AssociationProperty: ALIYUN::DashVector::ApiKey

Domain资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::Domain::DomainName

查询域名信息。

  • ShowDomainPrefixInput:是否允许输入域名前缀。

  • MaxLength:域名长度限制。

  • CheckICP:检查ICP备案状态。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Domain::DomainName "
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Type: String
    AssociationProperty: 'ALIYUN::Domain::DomainName'

EAS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::EAS::Instance::InstanceType

查询EAS的实例规格

  • RegionId:地域ID(默认为资源栈所属地域)。

  • SubscriptionType:付费类型,取值:

    • Subscription:预付费。

    • PayAsYouGo:后付费。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "EASInstanceType": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::EAS::Instance::InstanceType",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "SubscriptionType": "PayAsYouGo"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  EASInstanceType:
    Type: String
    AssociationProperty: ALIYUN::EAS::Instance::InstanceType
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      SubscriptionType: PayAsYouGo

ALIYUN::EAS::Resource::ResourceId

查询EAS的资源组信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "EASResourceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::EAS::Resource::ResourceId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  EASResourceId:
    Type: String
    AssociationProperty: ALIYUN::EAS::Resource::ResourceId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ECD资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ECD::Bundle::DesktopType

查询云桌面规格详细信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "DesktopType": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECD::Bundle::DesktopType",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  DesktopType:
    Type: String
    AssociationProperty: ALIYUN::ECD::Bundle::DesktopType
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ECI资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ECI::ContainerGroup::ContainerGroupId

查询ECI实例容器组的信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • VSwitchId:实例所属的虚拟交换机 ID。

  • ZoneId:实例所属的可用区。

  • SecurityGroupId:实例所属的安全组 ID。

  • ComputeCategory:算力类别。

  • Status:实例状态。取值范围:

    • Pending:启动中。

    • Running:运行中。

    • Succeeded:运行成功。

    • Failed:运行失败。

    • Scheduling:创建中。

    • ScheduleFailed:创建失败。

    • Restarting:重启中。

    • Updating:更新中。

    • Terminating:终止中。

    • Expired:过期。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ECIContainerGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECI::ContainerGroup::ContainerGroupId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "Status": "Running"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ECIContainerGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECI::ContainerGroup::ContainerGroupId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      Status: Running

ECS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ECS::ZoneId

查询ECS可用区ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • SystemDiskCategory:系统盘类型。

  • InstanceType:实例类型。

  • InstanceChargeType:实例付费类型。

  • WithAvailableResource:是否筛选有任意实例规格库存的可用区。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}

ALIYUN::ECS::Command::CommandId

云助手命令或阿里云命令ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ImageId:镜像ID。

    通过镜像的OSType来限制需要显示的命令的类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "CommandId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Command::CommandId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      CommandId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Command::CommandId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数CommandId的AssociationProperty属性为ALIYUN::ECS::Command::CommandId,AssociationPropertyMetadata属性为RegionId,获取当前地域下的ECS云助手命令或者阿里云提供的公共命令。

ALIYUN::ECS::DeploymentSet::DeploymentSetId

查询ECS部署集的部署集 ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • Strategy:部署策略。取值范围:

    • Availability:高可用策略。

    • AvailabilityGroup:部署集群高可用策略。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ECSDeploymentSetId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::DeploymentSet::DeploymentSetId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "Strategy": "Availability"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ECSDeploymentSetId:
    Type: String
    AssociationProperty: ALIYUN::ECS::DeploymentSet::DeploymentSetId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      Strategy: Availability

ALIYUN::ECS::Disk::DataDiskCategory

数据盘类型。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ZoneId:可用区ID。

  • InstanceType:实例类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        },
        "DataDiskCategory": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DataDiskCategory",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "InstanceType": "${InstanceType}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
      DataDiskCategory:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DataDiskCategory
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          InstanceType: ${InstanceType}
  • 示例说明

    示例中通过指定参数DataDiskCategory的AssociationProperty属性为ALIYUN::ECS::Disk::DataDiskCategory ,AssociationPropertyMetadata属性为RegionId、ZoneId、InstanceType,获取ECS数据盘类型。

ALIYUN::ECS::Disk::DiskId

磁盘ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ZoneId:可用区ID。

  • InstanceId:实例ID。

  • DiskType:磁盘类型。

  • Category:实例类型。

  • SnapshotId:快照ID。

  • DiskChargeType:磁盘计费方式。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "DiskId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DiskId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      DiskId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DiskId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数DiskId的AssociationProperty属性为ALIYUN::ECS::Disk::DiskId,AssociationPropertyMetadata属性为RegionId,获取当前可用区下的ECS云盘ID。

ALIYUN::ECS::Disk::SystemDiskCategory

系统盘类型。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ZoneId:可用区ID。

  • InstanceType:实例类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        },
        "SystemDiskCategory": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::SystemDiskCategory",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "InstanceType": "${InstanceType}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
      SystemDiskCategory:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::SystemDiskCategory
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          InstanceType: ${InstanceType}
  • 示例说明

    示例中通过指定参数SystemDiskCategory的AssociationProperty属性为ALIYUN::ECS::Disk::SystemDiskCategory ,AssociationPropertyMetadata属性为RegionId,ZoneId、InstanceType,获取ECS系统盘类型。

ALIYUN::ECS::Image::ImageId

镜像ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • SupportedImageOwnerAlias:支持的镜像类型。

  • InstanceType:实例的规格。

  • ImageFamily:镜像族系名称。

  • IsSupportIoOptimized:镜像是否可以运行在I/O优化实例上。

  • OSType:操作系统类型。

  • Architecture:镜像的体系架构。

  • Usage:镜像是否已经运行在ECS实例中。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ImageId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Image::ImageId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "SupportedImageOwnerAlias": ["system", "self", "others"]
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ImageId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Image::ImageId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          SupportedImageOwnerAlias:
            - system
            - self
            - others
  • 示例说明

    示例中通过指定参数ImageId的AssociationProperty属性为ALIYUN::ECS::Image::ImageId,AssociationPropertyMetadata属性为RegionId、SupportedImageOwnerAlias,获取当前可用区下的ECS镜像ID。

ALIYUN::ECS::Instance::AttributeSelector

ECS属性选择器。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AttributeSelector": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::AttributeSelector"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AttributeSelector:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::AttributeSelector
  • 示例说明

    示例中通过指定参数AttributeSelector的AssociationProperty属性为ALIYUN::ECS::Instance::AttributeSelector,获取ECS属性选择器。

ALIYUN::ECS::Instance::InstanceId

ECS实例ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • InstanceType:实例的规格。

  • InstanceTypeFamily:实例的规格族。

  • Platform:操作系统平台。

  • OSType:操作系统类型。

  • Status:实例状态。

  • NetworkType:实例网络类型。

  • DisabledNetworkType:禁用网络类型。

  • ShowNetworkType:展示实例网络类型。

  • InternetChargeType:公网带宽计费方式。

  • DisabledInternetChargeType:禁用公网带宽计费方式。

  • ShowInternetChargeType:展示公网带宽计费方式。

  • ChargeType:实例的计费方式。

  • DisabledChargeType:禁用实例的计费方式。

  • ShowChargeType: 展示实例的计费方式。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数InstanceId的AssociationProperty属性为ALIYUN::ECS::Instance::InstanceId,AssociationPropertyMetadata属性为RegionId,获取当前可用地域下已有云服务器ECS实例。

ALIYUN::ECS::Instance::InstancePropertyEditor

ECS实例属性编辑器。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstancePropertyEditor": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstancePropertyEditor"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstancePropertyEditor:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstancePropertyEditor
  • 示例说明

    示例中通过指定参数InstancePropertyEditor的AssociationProperty属性为ALIYUN::ECS::Instance::InstancePropertyEditor,获取ECS实例属性编辑器。

ALIYUN::ECS::Instance::InstanceType

ECS实例规格。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ZoneId:可用区ID。

  • InstanceChargeType:实例付费类型。

  • SpotStrategy:按量付费实例的竞价策略。

  • CreateACKClusterParams:过滤出容器服务支持ECS规格。

    • NetworkPlugin:网络插件。例如:terway-eniip

  • Constraints:定义实例规格筛选条件(允许多条件组合)。

    • InstanceType:实例规格。例如:ecs.c6.xlarge

    • InstanceTypeFamily:实例规格所属的实例规格族。例如:ecs.c6

    • vCPU:实例规格的vCPU内核数目。

    • Memory:实例规格的内存大小。

    • Architecture:CPU架构。

      • X86:x86计算。

      • ARM:Arm计算。

      • Heterogeneous:异构计算GPU/FPGA/NPU。

      • elastic_bareMetal:弹性裸金属服务器。

    • CustomizeFamily:自定义实例规格族。

      • high-clockSpeed

      • general-purpose

      • compute-optimized

      • memory-optimized

      • big-data

      • local-ssd

      • arm-general-purpose

      • arm-compute-optimized

      • arm-memory-optimized

      • gpu-a10

      • gpu-v100

      • gpu-t4

      • gpu-p100

      • gpu-p4

      • gpu-grid

      • gpu-arm

      • gpu-fpga-asic

      • gpu-other

      • basic

      • elastic-bareMetal-compute

      • elastic-bareMetal-GPU-compute

      • super-computeCluster-compute

      • super-computeCluster-GPU-compute

      • enhancement

      • current-recommendation

      • elastic-bareMetal-compute-china-CPU

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "Constraints": {
              "Architecture": [
                "X86"
              ],
              "vCPU": [
                4
              ],
              "Memory": [
                8
              ]
            }
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          Constraints:
            Architecture:
              - X86
            vCPU:
              - 4
            Memory:
              - 8
  • 示例说明

    示例中通过指定参数InstanceType的AssociationProperty属性为ALIYUN::ECS::Instance::InstanceType,AssociationPropertyMetadata属性为Constraints(Architecture、vCPU、Memory),获取当前地域下为x86计算架构,4vCPU,8G内存的ECS实例规格。

ALIYUN::ECS::Instance::MaxBandwidthIn

ECS公网入带宽最大值。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "MaxBandwidthIn": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::MaxBandwidthIn"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      MaxBandwidthIn:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::MaxBandwidthIn
  • 示例说明

    示例中通过指定参数MaxBandwidthIn的AssociationProperty属性为ALIYUN::ECS::Instance::MaxBandwidthIn,获取ECS公网入带宽最大值。

ALIYUN::ECS::Instance::OSType

查询ECS实例的操作系统类型。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • InstanceId:ECS实例ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ECSInstanceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "ECSOSType": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::OSType",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "InstanceId": "${ECSInstanceId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ECSInstanceId:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  ECSOSType:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::OSType
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      InstanceId: ${ECSInstanceId}

ALIYUN::ECS::Instance::Password

ECS实例密码组件。

说明

密码必须包含8~30个字符,必须包含大写字母、小写字母、数字和特殊字符中的三种以上。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "password": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::Password"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      password:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::Password
  • 示例说明

    示例中通过指定参数password的AssociationProperty属性为ALIYUN::ECS::Instance::Password,实现ECS实例密码的条件限制。

    限制条件:密码必须包含8~30个字符,必须包含大写字母、小写字母、数字和特殊字符中的三种以上。

ALIYUN::ECS::Instance::RenewPeriod

ECS续费周期。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RenewPeriod": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::RenewPeriod"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RenewPeriod:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::RenewPeriod
  • 示例说明

    示例中通过指定参数RenewPeriod的AssociationProperty属性为ALIYUN::ECS::Instance::RenewPeriod,获取ECS续费周期。

ALIYUN::ECS::Instance::StopMode

ECS停机模式。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "StopMode": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::StopMode"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      StopMode:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::StopMode
  • 示例说明

    示例中通过指定参数StopMode的AssociationProperty属性为ALIYUN::ECS::Instance::StopMode,获取ECS停机模式。

ALIYUN::ECS::InstanceType::AvailableInstanceType

ECS可用实例规格。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AvailableInstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::InstanceType::AvailableInstanceType"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AvailableInstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::InstanceType::AvailableInstanceType
  • 示例说明

    示例中通过指定参数AvailableInstanceType的AssociationProperty属性为 ALIYUN::ECS::InstanceType::AvailableInstanceType,获取ECS可用实例规格。

ALIYUN::ECS::KeyPair::KeyPairName

密钥对。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "KeyPairName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::KeyPair::KeyPairName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      KeyPairName:
        Type: String
        AssociationProperty: ALIYUN::ECS::KeyPair::KeyPairName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数KeyPairName的AssociationProperty属性为ALIYUN::ECS::KeyPair::KeyPairName ,AssociationPropertyMetadata属性为RegionId,获取当前地域下的ECS密钥对。

ALIYUN::ECS::LaunchTemplate::LaunchTemplateId

实例启动模板ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "LaunchTemplateId":{
          "AssociationProperty":"ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      LaunchTemplateId:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数LaunchTemplateId的AssociationProperty属性为ALIYUN::ECS::LaunchTemplate::LaunchTemplateId ,AssociationPropertyMetadata属性为RegionId,获取当前可用区下ECS的启动模板。

ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion

实例启动模板版本。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • LaunchTemplateId:实例启动模板ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "LaunchTemplateId": {
          "AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
          "Type": "String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "LaunchTemplateVersion": {
          "AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion",
          "Type": "String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "LaunchTemplateId": "${LaunchTemplateId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      LaunchTemplateId:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      LaunchTemplateVersion:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          LaunchTemplateId: ${LaunchTemplateId}
  • 示例说明

    示例中通过指定参数LaunchTemplateVersion的AssociationProperty属性为ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion ,AssociationPropertyMetadata属性为RegionId、LaunchTemplateId,获取所选ECS的启动模板的版本信息。

ALIYUN::ECS::ManagedInstance::InstanceId

ECS托管实例ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • OsType:托管实例的操作系统类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::ManagedInstance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ManagedInstance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数InstanceId的AssociationProperty属性为ALIYUN::ECS::ManagedInstance::InstanceId,AssociationPropertyMetadata属性为RegionId,获取当前可用地域下ECS托管实例ID。

ALIYUN::ECS::RAM::Role

ECS实例上已赋予的实例RAM角色。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Role": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RAM::Role"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Role:
        Type: String
        AssociationProperty: ALIYUN::ECS::RAM::Role
  • 示例说明

    示例中通过指定参数Role的AssociationProperty属性为ALIYUN::ECS::RAM::Role,获取ECS实例上的已赋予的实例RAM角色。

ALIYUN::ECS::RegionId

地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
  • 示例说明

    示例中通过指定参数RegionId的AssociationProperty为ALIYUN::ECS::RegionId,实现列举可用地域的列表。

ALIYUN::ECS::RegionId::RegionDeploy

设置ECS部署地域。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ECSRegionDeploy": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId::RegionDeploy"
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ECSRegionDeploy:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId::RegionDeploy

ALIYUN::ECS::RegionId::TargetRegionIds

ECS实例目标地域ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TargetRegionIds": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId::TargetRegionIds"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TargetRegionIds:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId::TargetRegionIds
  • 示例说明

    示例中通过指定参数TargetRegionIds的AssociationProperty属性为ALIYUN::ECS::RegionId::TargetRegionIds,获取ECS实例目标地域ID。

ALIYUN::ECS::ResourceGroup::ResourceGroupId

资源组。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceGroupId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  • 示例说明

    示例中通过指定参数ResourceGroupId的AssociationProperty属性为ALIYUN::ECS::ResourceGroup::ResourceGroupId。

ALIYUN::ECS::SecurityGroup::PortRange

根据IP协议设置ECS安全组端口号范围

  • IpProtocol:IP协议,取值:

    • ALL:同时支持多种协议。

    • TCP:tcp协议。

    • UDP:udp协议。

    • ICMP:icmp协议。

    • GRE:gre协议。

    • ICMPv6:icmpv6协议。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ECSSecurityGroupPortRange": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::SecurityGroup::PortRange",
      "AssociationPropertyMetadata": {
        "IpProtocol": "ALL"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ECSSecurityGroupPortRange:
    Type: String
    AssociationProperty: ALIYUN::ECS::SecurityGroup::PortRange
    AssociationPropertyMetadata:
      IpProtocol: ALL

ALIYUN::ECS::SecurityGroup::SecurityGroupId

安全组ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • VpcId:专有网络ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "SecurityGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "VpcId": "${VpcId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      SecurityGroupId:
        Type: String
        AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          VpcId: ${VpcId}
    
  • 示例说明

    示例中通过指定参数SecurityGroupId的AssociationProperty属性为ALIYUN::ECS::SecurityGroup::SecurityGroupId,AssociationPropertyMetadata属性为RegionId、VpcId,获取当前地域下所选专有网络下的安全组ID。

ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId

快照策略ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AutoSnapshotPolicyId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AutoSnapshotPolicyId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数AutoSnapshotPolicyId的AssociationProperty属性为ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId,AssociationPropertyMetadata属性为RegionId,获取当前地域下的ECS自动快照策略。

ALIYUN::ECS::Snapshot::SnapshotId

ECS实例磁盘快照ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • InstanceId:ECS实例ID。

  • DiskId:云盘ID。

  • Status:快照状态。

  • SnapshotType:快照创建类型。

  • Category:快照类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DiskId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DiskId"
        },
        "SnapshotId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Snapshot::SnapshotId",
          "AssociationPropertyMetadata": {
            "DiskId": "${DiskId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DiskId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DiskId
      SnapshotId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Snapshot::SnapshotId
        AssociationPropertyMetadata:
          DiskId: ${DiskId}
  • 示例说明

    示例中通过指定参数SnapshotId的AssociationProperty属性为ALIYUN::ECS::Snapshot::SnapshotId,获取ECS实例磁盘快照ID。

ALIYUN::ECS::TAG

ECS实例已经绑定标签信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ResourceType:资源类型定义。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Tag": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::TAG",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Tag:
        Type: String
        AssociationProperty: ALIYUN::ECS::TAG
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数Tag的AssociationProperty属性为ALIYUN::ECS::TAG,获取ECS实例标签信息。

ALIYUN::ECS::VPC::VPCId

专有网络ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数VpcId的AssociationProperty属性为ALIYUN::ECS::VPC::VPCId,AssociationPropertyMetadata属性为RegionId,获取当前地域下的VPC专有网络ID。

ALIYUN::ECS::VSwitch

交换机对象。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ZoneId:可用区ID。

  • VpcId:专有网络ID。

  • InstanceType:实例类型。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "VSwitchId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VSwitch",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • 示例说明

    示例中通过指定参数VSwitchId的AssociationProperty属性为ALIYUN::ECS::VSwitch,AssociationPropertyMetadata属性为RegionId、ZoneId,获取当前地域下所选可用交换机对象。

EHPC资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::EHPC::Cluster::ClusterId

集群选择 。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ClusterId":{
          "AssociationProperty":"ALIYUN::EHPC::Cluster::ClusterId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          },
          "Type":"String"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ClusterId:
        AssociationProperty: ALIYUN::EHPC::Cluster::ClusterId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
        Type: String
  • 示例说明

    示例中通过指定参数ClusterId的AssociationProperty属性为ALIYUN::EHPC::Cluster::ClusterId,获取EHPC集群ID。

ALIYUN::EHPC::FileSystem::FileSystemId

文件系统ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "FileSystemId":{
          "AssociationProperty":"ALIYUN::EHPC::FileSystem::FileSystemId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      FileSystemId:
        AssociationProperty: ALIYUN::EHPC::FileSystem::FileSystemId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数FileSystemId的AssociationProperty属性为ALIYUN::EHPC::FileSystem::FileSystemId,获取EHPC文件系统ID。

ALIYUN::EHPC::FileSystem::MountTargetDomain

挂载点。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • VolumeId:阿里云NAS实例ID。

  • VpcId:专有网络ID。

  • VSwitchId:交换机ID。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "MountTargetDomain":{
          "AssociationProperty":"ALIYUN::EHPC::FileSystem::MountTargetDomain",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      MountTargetDomain:
        AssociationProperty: ALIYUN::EHPC::FileSystem::MountTargetDomain
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数MountTargetDomain的AssociationProperty属性为ALIYUN::EHPC::FileSystem::MountTargetDomain,获取EHPC文件挂载点列表。

ESS资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId

ESS伸缩组ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AutoScalingGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AutoScalingGroupId:
        Type: String
        AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数AutoScalingGroupId的AssociationProperty属性为ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId,实现获取弹性伸缩组ID信息。

ALIYUN::ESS::ECIScalingConfiguration::ContainerName

查询ECI类型的伸缩组配置信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ScalingGroupId:伸缩组的ID。

  • ScalingConfigurationId:伸缩配置的ID。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ESSECIScalingConfigurationContainerName": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ESS::ECIScalingConfiguration::ContainerName",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ESSECIScalingConfigurationContainerName:
    Type: String
    AssociationProperty: ALIYUN::ESS::ECIScalingConfiguration::ContainerName
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId

查询伸缩配置的ID。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • ScalingGroupId:伸缩组的ID。

  • AutoSelectFirst:是否选择第一个。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "AutoScalingGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "ServiceConnectionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "ScalingGroupId": "${AutoScalingGroupId}",
        "AutoSelectFirst": true
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  AutoScalingGroupId:
    Type: String
    AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  ServiceConnectionId:
    Type: String
    AssociationProperty: ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      ScalingGroupId: ${AutoScalingGroupId}
      AutoSelectFirst: true

ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId

弹性伸缩配置ID。

RegionId:地域ID(默认为资源栈所属地域)。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ScalingConfigurationId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ScalingConfigurationId:
        Type: String
        AssociationProperty: ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • 示例说明

    示例中通过指定参数ScalingConfigurationId的AssociationProperty属性为ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId,实现获取弹性伸缩配置ID信息。

Elasticsearch资源

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::Elasticsearch::Instance::InstanceType

Elasticsearch实例规格。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Elasticsearch": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::Elasticsearch::Instance::InstanceType"
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Elasticsearch:
        Type: String
        AssociationProperty: ALIYUN::Elasticsearch::Instance::InstanceType
  • 示例说明

    示例中通过指定参数Elasticsearch的AssociationProperty属性为ALIYUN::Elasticsearch::Instance::InstanceType,获取Elasticsearch 实例规格。