全部产品
Search
文档中心

资源编排:ComputeNest资源

更新时间:Mar 16, 2026

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,获取计算巢服务版本。