全部產品
Search
文件中心

Resource Orchestration Service:ComputeNestSupplier資源

更新時間:Mar 17, 2026

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,擷取計算巢服務版本。