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

Resource Orchestration Service:ALIYUN::ECI::ImageCache

最終更新日:Jan 16, 2025

ALIYUN::ECI::ImageCache は、イメージキャッシュを作成するために使用されます。

構文

{
  "Type": "ALIYUN::ECI::ImageCache",
  "Properties": {
    "EipInstanceId": String,
    "Image": List,
    "SecurityGroupId": String,
    "ResourceGroupId": String,
    "VSwitchId": String,
    "ImageRegistryCredential": List,
    "ImageCacheName": String
  }
}

プロパティ

名前

タイプ

必須

編集可能

説明

有効性

EipInstanceId

String

いいえ

いいえ

EIP インスタンスの ID です。

パブリックイメージをプルする前に、ECI がインターネットにアクセスできることを確認してください。vSwitch に NAT ゲートウェイを設定することをお勧めします。パブリック IP アドレスを設定することもできます。

Image

List

はい

いいえ

キャッシュするイメージの ID です。

最大 20 個のイメージをキャッシュできます。

SecurityGroupId

String

はい

いいえ

セキュリティグループの ID です。

なし

ResourceGroupId

String

いいえ

いいえ

リソースグループの ID です。

なし

VSwitchId

String

はい

いいえ

vSwitch の ID です。

なし

ImageRegistryCredential

List

いいえ

いいえ

イメージリポジトリにログインするために使用される認証情報です。

このパラメーターは、Alibaba Cloud Container Registry (ACR) に保存されているイメージの場合はオプションです。最大 10 個の認証情報を設定できます。

ImageCacheName

String

はい

いいえ

イメージキャッシュの名前です。

なし

ImageRegistryCredential 構文

"ImageRegistryCredential": [
  {
    "Server": String,
    "UserName": String,
    "Password": String
  }
]

ImageRegistryCredential プロパティ

名前

タイプ

必須

編集可能

説明

有効性

Server

String

いいえ

いいえ

イメージリポジトリの URL です。この URL には、http:// や https:// などのプロトコルプレフィックスは含まれません。

なし

UserName

String

いいえ

いいえ

イメージリポジトリにログインするために使用されるユーザー名です。

なし

Password

String

いいえ

いいえ

イメージリポジトリにログインするために使用されるパスワードです。

なし

レスポンスパラメーター

Fn::GetAtt

  • ImageCacheId: イメージキャッシュの ID です。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Description: ECI ImageCache のテスト
Parameters:
  ZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance:ZoneId
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      VpcId: VpcId
      ZoneId: ZoneId
  SecurityGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
    AssociationPropertyMetadata:
      VpcId: VpcId
  Image:
    Type: Json
    Description: キャッシュされるイメージリスト。
    MaxLength: 20
    Default: '["busybox"]'
  ImageCacheName:
    Type: String
    Description: イメージキャッシュ名。
    Default: mytest
Resources:
  Eip:
    Type: ALIYUN::VPC::EIP
    Properties:
      InternetChargeType: PayByTraffic
      Bandwidth: 5
  ImageCache:
    Type: ALIYUN::ECI::ImageCache
    Properties:
      EipInstanceId:
        Ref: Eip
      Image:
        Ref: Image
      SecurityGroupId:
        Ref: SecurityGroupId
      VSwitchId:
        Ref: VSwitchId
      ImageCacheName:
        Ref: ImageCacheName
Outputs:
  ImageCacheId:
    Description: イメージキャッシュの ID。
    Value:
      Fn::GetAtt:
        - ImageCache
        - ImageCacheId

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test ECI ImageCache",  // ECI ImageCache のテスト
  "Parameters": {
    "ZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance:ZoneId"
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "VSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "VpcId": "VpcId",
        "ZoneId": "ZoneId"
      }
    },
    "SecurityGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
      "AssociationPropertyMetadata": {
        "VpcId": "VpcId"
      }
    },
    "Image": {
      "Type": "Json",
      "Description": "The image list to be cached.", // キャッシュされるイメージリスト。
      "MaxLength": 20,
      "Default": "[\"busybox\"]"
    },
    "ImageCacheName": {
      "Type": "String",
      "Description": "Image cache name.", // イメージキャッシュ名。
      "Default": "mytest"
    }
  },
  "Resources": {
    "Eip": {
      "Type": "ALIYUN::VPC::EIP",
      "Properties": {
        "InternetChargeType": "PayByTraffic",
        "Bandwidth": 5
      }
    },
    "ImageCache": {
      "Type": "ALIYUN::ECI::ImageCache",
      "Properties": {
        "EipInstanceId": {
          "Ref": "Eip"
        },
        "Image": {
          "Ref": "Image"
        },
        "SecurityGroupId": {
          "Ref": "SecurityGroupId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "ImageCacheName": {
          "Ref": "ImageCacheName"
        }
      }
    }
  },
  "Outputs": {
    "ImageCacheId": {
      "Description": "The ID of the image cache.", // イメージキャッシュの ID。
      "Value": {
        "Fn::GetAtt": [
          "ImageCache",
          "ImageCacheId"
        ]
      }
    }
  }
}