すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:CS リソース

最終更新日:Mar 17, 2026

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 Basic Edition クラスター、ACK サーバーレス Pro エディションクラスター、ACK サーバーレス Basic Edition クラスター、ACK エッジ Pro エディションクラスター、および ACK エッジ Basic Edition クラスターが含まれます。

    • ExternalKubernetes: ACK 登録済みクラスターです。

  • Profile: 特定のシナリオにおけるクラスタータイプです。

    • Default: 非エッジシナリオクラスターです。

    • Edge: エッジシナリオクラスターです。

    • Serverless: ASK クラスターです。

  • Runtime: ランタイムタイプです。

    • docker: Docker ランタイムです。

    • containerd: Containerd ランタイムです。

    • Sandboxed-Container.runv: サンドボックスコンテナです。

  • KubernetesVersionPrefix: バージョンプレフィックスです。

  • AutoSelectLatest: 最新バージョンを自動的に選択します。

コード例

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 マネージドクラスターのサービス CIDR 情報を照会します。

  • RegionId: リージョン ID (スタックのリージョンにデフォルト設定されます)。

  • ClusterType: クラスタータイプです。

  • VpcId: VPC ID です。

  • NodeCidrMask: ノードの IP アドレスの最大数です。

  • ContainerCidr: コンテナ CIDR ブロックです。

コード例

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}