All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::Memcache::Instance

Last Updated:Jun 17, 2026

Membuat instance Memcache.

Sintaks

{
  "Type": "ALIYUN::Memcache::Instance",
  "Properties": {
    "VpcId": String,
    "Capacity": Integer,
    "ResourceGroupId": String,
    "BackupPolicy": Map,
    "CouponNo": String,
    "AutoRenewPeriod": String,
    "AutoUseCoupon": String,
    "ZoneId": String,
    "InstanceName": String,
    "AutoRenew": String,
    "InstanceClass": String,
    "VpcPasswordFree": Boolean,
    "VSwitchId": String,
    "ChargeType": String,
    "Period": String,
    "NetworkType": String,
    "Password": String,
    "Config": String,
    "PrivateIpAddress": String
  }
}

Properti

Property Name

Type

Required

Update allowed

Description

Constraints

VpcId

String

No

No

ID dari virtual private cloud (VPC).

None

Capacity

Integer

No

No

Kapasitas instans.

Anda harus menentukan salah satu properti Capacity atau InstanceClass. Untuk informasi selengkapnya, lihat Instance types.

Unit: MB.

ResourceGroupId

String

No

No

ID kelompok sumber daya.

None

BackupPolicy

Map

No

Yes

Kebijakan cadangan.

Untuk informasi selengkapnya, lihat BackupPolicy properties.

CouponNo

String

No

No

Kode kupon.

Nilai default adalah youhuiquan_promotion_option_id_for_blank.

AutoRenewPeriod

String

No

No

Siklus perpanjangan otomatis.

Nilai yang valid:

  • 1

  • 2

  • 3

  • 6

  • 12

Unit: bulan.

Catatan

Parameter ini wajib ditentukan ketika AutoRenew diatur ke true.

AutoUseCoupon

String

No

No

Menentukan apakah akan menggunakan kupon.

Nilai yang valid:

  • true

  • false (default)

ZoneId

String

No

No

ID zona.

None

InstanceName

String

No

Yes

Nama instans.

Nama harus terdiri dari 2 hingga 128 karakter. Nama harus dimulai dengan huruf dan tidak boleh mengandung spasi atau karakter khusus berikut:

@/:=”<>{[]}

AutoRenew

String

No

No

Menentukan apakah akan mengaktifkan perpanjangan otomatis.

Nilai yang valid:

  • true

  • false (default)

InstanceClass

String

No

No

Tipe instans.

Anda harus menentukan salah satu properti Capacity atau InstanceClass. Untuk informasi selengkapnya, lihat Instance types.

VpcPasswordFree

Boolean

No

No

Menentukan apakah akan mengaktifkan akses tanpa password ke instans dalam VPC.

None

VSwitchId

String

No

No

ID vSwitch.

None

ChargeType

String

No

No

Metode penagihan.

Nilai yang valid:

  • PrePaid: subscription.

  • PostPaid (default): pay-as-you-go.

Period

String

No

No

Siklus penagihan.

Nilai yang valid:

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 12

  • 24

  • 36

Unit: bulan.

Parameter ini wajib ditentukan ketika ChargeType diatur ke PrePaid. Parameter ini tidak didukung ketika ChargeType diatur ke PostPaid.

NetworkType

String

No

No

Jenis jaringan.

Nilai yang valid:

  • CLASSIC (default): classic network.

  • Virtual Private Cloud (VPC).

Password

String

No

No

Kata sandi instance.

Password harus terdiri dari 8 hingga 32 karakter. Password harus mengandung minimal tiga jenis karakter berikut: huruf kapital, huruf kecil, angka, dan karakter khusus. Karakter khusus yang didukung adalah:

!@#$%^&*()_+-=

Config

String

No

No

Konfigurasi detail instans.

Nilainya berupa string dalam format JSON.

PrivateIpAddress

String

No

No

Alamat IP pribadi instans.

Alamat IP pribadi harus berada dalam Blok CIDR vSwitch tempat instans tersebut berada.

Sintaks BackupPolicy

"BackupPolicy": {
  "PreferredBackupTime": String,
  "EnableBackupLog": Integer,
  "PreferredBackupPeriod": String
}

Properti BackupPolicy

Property Name

Type

Required

Update allowed

Description

Constraints

PreferredBackupTime

String

Yes

Yes

Rentang waktu pencadangan.

Format: HH:mmZ-HH:mmZ.

EnableBackupLog

Integer

No

Yes

Menentukan apakah akan mengaktifkan cadangan inkremental.

Nilai yang valid:

  • 1: diaktifkan.

  • 0 (default): dinonaktifkan.

PreferredBackupPeriod

String

Yes

Yes

Siklus pencadangan.

Nilai yang valid:

  • Monday

  • Tuesday

  • Wednesday

  • Thursday

  • Friday

  • Saturday

  • Sunday

Nilai kembalian

Fn::GetAtt

  • InstanceId: ID instance.

  • InstanceName: Nama instance.

  • ConnectionDomain: Titik akhir instance.

  • Port: Port instance.

  • QPS: Jumlah permintaan per detik (QPS).

Contoh

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Description:
  en: 'Alibaba Cloud ROS Sample Template: Create a VPC type memcache instance.'
  zh-cn: 'Alibaba Cloud Resource Orchestration Service sample template: Create a VPC-type Memcache instance.'
Parameters:
  ZoneId:
    Type: String
    Description:
      zh-cn: Zona tempat Anda ingin membuat instans. Pastikan zona tersebut mendukung pembuatan instans Memcache.
      en: Create an Availability Zone for an instance to ensure that the Availability Zone supports the creation of Memcache resource specifications.
    AssociationProperty: ALIYUN::ECS::Instance::ZoneId
    Label:
      en: Zone ID
      zh-cn: Zone
  VPC:
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Type: String
    Description:
      zh-cn: ID VPC yang sudah ada. Anda dapat menemukan ID tersebut di Konsol VPC.
      en: Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud
    Label:
      zh-cn: Existing VPC Instance ID
      en: Existing VPC Instance ID
  VSwitch:
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    Type: String
    Description:
      zh-cn: ID vSwitch yang sudah ada. Anda dapat menemukan ID tersebut di Konsol VPC pada bagian VSwitches.
      en: Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches
    Label:
      zh-cn: vSwitch ID
      en: Existing VSwitch ID
    AssociationPropertyMetadata:
      VpcId: VPC
      ZoneId: ZoneId
  InstanceClass:
    Type: String
    Description:
      en: Instance specifications
      zh-cn: Tipe Instans
    Default: memcache.master.small.default
    Label:
      zh-cn: Tipe Instans
      en: Instance Type
  Password:
    Type: String
    Description:
      en: 'Length 8~32 characters, can contain size letters, Numbers and special symbols, including the following: !@#$%^&*()_+-='
      zh-cn: 'Password harus terdiri dari 8 hingga 32 karakter dan dapat mengandung huruf kapital, huruf kecil, angka, serta karakter khusus, termasuk yang berikut: !@#$%^&*()_+-='
    ConstraintDescription:
      en: '8~32 characters, can contain size letters, Numbers and special symbols, including the following: !@#$%^&*()_+-='
      zh-cn: '8 hingga 32 karakter. Dapat mengandung huruf kapital, huruf kecil, angka, serta karakter khusus, termasuk yang berikut: !@#$%^&*()_+-='
    MaxLength: 32
    MinLength: 8
    NoEcho: true
    Label:
      en: Instance Password
      zh-cn: Password Instans
Resources:
  MemcacheInstance:
    Type: ALIYUN::Memcache::Instance
    Properties:
      VpcId:
        Ref: VPC
      VSwitchId:
        Ref: VSwitch
      InstanceClass:
        Ref: InstanceClass
      NetworkType: VPC
      Password:
        Ref: Password
      ZoneId:
        Ref: ZoneId
Outputs:
  ConnectionDomain:
    Description: Titik akhir internal.
    Value:
      Fn::GetAtt:
        - MemcacheInstance
        - ConnectionDomain
  InstanceId:
    Value:
      Fn::GetAtt:
        - MemcacheInstance
        - InstanceId
  QPS:
    Value:
      Fn::GetAtt:
        - MemcacheInstance
        - QPS
  Port:
    Value:
      Fn::GetAtt:
        - MemcacheInstance
        - Port

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": {
    "en": "Alibaba Cloud ROS Sample Template: Create a VPC type memcache instance.",
    "zh-cn": "Alibaba Cloud Resource Orchestration Service sample template: Create a VPC-type Memcache instance."
  },
  "Parameters": {
    "ZoneId": {
      "Type": "String",
      "Description": {
        "zh-cn": "Zona tempat Anda ingin membuat instans. Pastikan zona tersebut mendukung pembuatan instans Memcache.",
        "en": "Create an Availability Zone for an instance to ensure that the Availability Zone supports the creation of Memcache resource specifications."
      },
      "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
      "Label": {
        "en": "Zone ID",
        "zh-cn": "Zone"
      }
    },
    "VPC": {
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Type": "String",
      "Description": {
        "zh-cn": "ID VPC yang sudah ada. Anda dapat menemukan ID tersebut di Konsol VPC.",
        "en": "Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud"
      },
      "Label": {
        "zh-cn": "Existing VPC Instance ID",
        "en": "Existing VPC Instance ID"
      }
    },
    "VSwitch": {
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "Type": "String",
      "Description": {
        "zh-cn": "ID vSwitch yang sudah ada. Anda dapat menemukan ID tersebut di Konsol VPC pada bagian VSwitches.",
        "en": "Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches"
      },
      "Label": {
        "zh-cn": "vSwitch ID",
        "en": "Existing VSwitch ID"
      },
      "AssociationPropertyMetadata": {
        "VpcId": "VPC",
        "ZoneId": "ZoneId"
      }
    },
    "InstanceClass": {
      "Type": "String",
      "Description": {
        "en": "Instance specifications",
        "zh-cn": "Tipe Instans"
      },
      "Default": "memcache.master.small.default",
      "Label": {
        "zh-cn": "Tipe Instans",
        "en": "Instance Type"
      }
    },
    "Password": {
      "Type": "String",
      "Description": {
        "en": "Length 8~32 characters, can contain size letters, Numbers and special symbols, including the following: !@#$%^&*()_+-=",
        "zh-cn": "Password harus terdiri dari 8 hingga 32 karakter dan dapat mengandung huruf kapital, huruf kecil, angka, serta karakter khusus, termasuk yang berikut: !@#$%^&*()_+-="
      },
      "ConstraintDescription": {
        "en": "8~32 characters, can contain size letters, Numbers and special symbols, including the following: !@#$%^&*()_+-=",
        "zh-cn": "8 hingga 32 karakter. Dapat mengandung huruf kapital, huruf kecil, angka, serta karakter khusus, termasuk yang berikut: !@#$%^&*()_+-="
      },
      "MaxLength": 32,
      "MinLength": 8,
      "NoEcho": true,
      "Label": {
        "en": "Instance Password",
        "zh-cn": "Password Instans"
      }
    }
  },
  "Resources": {
    "MemcacheInstance": {
      "Type": "ALIYUN::Memcache::Instance",
      "Properties": {
        "VpcId": {
          "Ref": "VPC"
        },
        "VSwitchId": {
          "Ref": "VSwitch"
        },
        "InstanceClass": {
          "Ref": "InstanceClass"
        },
        "NetworkType": "VPC",
        "Password": {
          "Ref": "Password"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        }
      }
    }
  },
  "Outputs": {
    "ConnectionDomain": {
      "Description": "Titik akhir internal.",
      "Value": {
        "Fn::GetAtt": [
          "MemcacheInstance",
          "ConnectionDomain"
        ]
      }
    },
    "InstanceId": {
      "Value": {
        "Fn::GetAtt": [
          "MemcacheInstance",
          "InstanceId"
        ]
      }
    },
    "QPS": {
      "Value": {
        "Fn::GetAtt": [
          "MemcacheInstance",
          "QPS"
        ]
      }
    },
    "Port": {
      "Value": {
        "Fn::GetAtt": [
          "MemcacheInstance",
          "Port"
        ]
      }
    }
  }
}