Tous les produits
Search
Centre de documentation

Resource Orchestration Service:ALIYUN::OTS::VpcBinder

Dernière mise à jour :Aug 10, 2026

La ressource ALIYUN::OTS::VpcBinder permet d'associer une instance Tablestore à un réseau privé virtuel (VPC).

Syntaxe

{
  "Type": "ALIYUN::OTS::VpcBinder",
  "Properties": {
    "Vpcs": List,
    "InstanceName": String
  }
}            

Propriétés

Propriété

Type

Obligatoire

Modifiable

Description

Contrainte

Vpcs

List

Oui

Oui

Les configurations de liaison au VPC.

Le type des éléments de cette propriété est VpcInfo.

InstanceName

String

Oui

Non

Le nom de l'instance Tablestore.

Aucune.

Syntaxe de Vpcs

"Vpcs":[
  {
    "VpcId":String,
    "InstanceVpcName":String,
    "VirtualSwitchId": String,
    "Network": String
  }
]           

Propriétés de Vpcs

Propriété

Type

Obligatoire

Modifiable

Description

Contrainte

VpcId

String

Oui

Non

L'ID du VPC.

Le VPC et l'instance Tablestore doivent appartenir au même compte et se trouver dans la même région.

InstanceVpcName

String

Oui

Non

Le nom personnalisé.

Ce nom doit être unique au sein de l'instance Tablestore.

VirtualSwitchId

String

Oui

Non

L'ID du vSwitch.

Le vSwitch doit appartenir au VPC spécifié.

Network

String

Oui

Non

Le type de réseau de l'instance Tablestore.

Valeurs valides :

  • NORMAL (par défaut) : l'instance Tablestore accepte les requêtes provenant de toutes les sources.

  • VPC : l'instance Tablestore n'accepte les requêtes que depuis les VPC auxquels elle est associée.

  • VPC_CONSOLE : l'instance Tablestore n'accepte les requêtes que depuis la console Tablestore et les VPC auxquels elle est associée.

Valeurs de retour

Fn::GetAtt

  • Domains : les noms de domaine utilisés pour accéder à l'instance Tablestore dans le VPC.

  • Endpoints : les endpoints privés utilisés pour accéder à l'instance Tablestore dans le VPC.

Exemples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Description: Test Tablestore, a Tablestore instance, and VPC binding
Parameters:
  InstanceName:
    Type: String
    Description: OTS Instance name
    Default: mytest
  InstanceVpcName:
    Type: String
    Description: Instance name
    Default: mytest
  VSwitchZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::ZoneId
    Description: Availability ID for existing switches
    Label: VSwitch Zone ID
  VpcId:
    Type: String
    Default: Null
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Description: Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud
    Label: Existing VPC ID
  VSwitchId:
    Type: String
    Default: Null
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    Description: Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches
    Label: VSwitch ID
    AssociationPropertyMetadata:
      ZoneId: ${VSwitchZoneId}
      VpcId: ${VpcId}
Resources:
  VpcBinder:
    Type: ALIYUN::OTS::VpcBinder
    Properties:
      InstanceName:
        Ref: InstanceName
      Vpcs:
        - VpcId:
            Ref: VpcId
          InstanceVpcName:
            Ref: InstanceVpcName
          VirtualSwitchId:
            Ref: VSwitchZoneId
          Network: NORMAL
Outputs:
  Domains:
    Value:
      Fn::GetAtt:
        - VpcBinder
        - Domains
  Endpoints:
    Value:
      Fn::GetAtt:
        - VpcBinder
        - Endpoints

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test Tablestore, a Tablestore instance, and VPC binding",
  "Parameters": {
    "InstanceName": {
      "Type": "String",
      "Description": "OTS Instance name",
      "Default": "mytest"
    },
    "InstanceVpcName": {
      "Type": "String",
      "Description": "Instance name",
      "Default": "mytest"
    },
    "VSwitchZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
      "Description": "Availability ID for existing switches",
      "Label": "VSwitch Zone ID"
    },
    "VpcId": {
      "Type": "String",
      "Default": null,
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Description": "Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud",
      "Label": "Existing VPC ID"
    },
    "VSwitchId": {
      "Type": "String",
      "Default": null,
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "Description": "Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches",
      "Label": "VSwitch ID",
      "AssociationPropertyMetadata": {
        "ZoneId": "${VSwitchZoneId}",
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "VpcBinder": {
      "Type": "ALIYUN::OTS::VpcBinder",
      "Properties": {
        "InstanceName": {
          "Ref": "InstanceName"
        },
        "Vpcs": [
          {
            "VpcId": {
              "Ref": "VpcId"
            },
            "InstanceVpcName": {
              "Ref": "InstanceVpcName"
            },
            "VirtualSwitchId": {
              "Ref": "VSwitchZoneId"
            },
            "Network": "NORMAL"
          }
        ]
      }
    }
  },
  "Outputs": {
    "Domains": {
      "Value": {
        "Fn::GetAtt": [
          "VpcBinder",
          "Domains"
        ]
      }
    },
    "Endpoints": {
      "Value": {
        "Fn::GetAtt": [
          "VpcBinder",
          "Endpoints"
        ]
      }
    }
  }
}