All Products
Search
Document Center

Resource Orchestration Service:Redis resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values and metadata available for ApsaraDB for Redis resources in ROS templates.

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::Redis::Instance::InstanceId

Redis instance ID.

  • RegionId: region ID (defaults to the region where the stack resides).

  • InstanceType: instance type.

  • ChargeType: billing method.

  • EditionType: instance type.

  • InstanceClass: instance type.

  • NetworkType: network type.

  • InstanceStatus: instance status.

Examples follow:

  • Example code

    JSON example:

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

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::Redis::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Example description

    Sets the AssociationProperty of the InstanceId parameter to ALIYUN::Redis::Instance::InstanceId with RegionId as metadata, which retrieves available Redis instance IDs in the current region.

ALIYUN::Redis::Instance::InstanceType

Redis instance type.

  • RegionId: region ID (defaults to the region where the stack resides).

  • ZoneId: zone ID.

  • InstanceChargeType: instance billing method.

  • Engine: database engine.

  • ProductType: product type.

  • OrderType: order type.

Examples follow:

  • Example code

    JSON example:

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

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      Redis:
        Type: String
        AssociationProperty: ALIYUN::Redis::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Example description

    Sets the AssociationProperty of the Redis parameter to ALIYUN::Redis::Instance::InstanceType, which retrieves available Redis instance types.