All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::OTS::Instance

更新時間:Jun 02, 2023

ALIYUN::OTS::Instance is used to create a Tablestore instance.

Syntax

{
  "Type": "ALIYUN::OTS::Instance",
  "Properties": {
    "Network": String,
    "ClusterType": String,
    "InstanceName": String,
    "Description": String,
    "Tags": List
  }
}            

Properties

Property

Type

Required

Editable

Description

Constraint

ClusterType

String

No

No

The specifications of the instance.

Default value: SSD. Valid values:

  • SSD

  • HYBRID

InstanceName

String

Yes

No

The name of the instance.

The name must be 3 to 16 characters in length. It must start with a letter but cannot end with a hyphen (-). It can contain letters, digits, and hyphens (-).

Network

String

No

Yes

The network type of the instance.

Default value: NORMAL. Valid values:

  • NORMAL

  • VPC

  • VPC_CONSOLE

Description

String

No

Yes

The description of the instance.

The description can be up to 256 characters in length.

Tags

List

No

Yes

The tags of the instance.

A maximum of five tags can be specified.

For more information, see Properties.

Tags syntax

"Tags":[
  {
    "Value":String,
    "Key":String
  }
]           

Tags properties

Property

Type

Required

Editable

Description

Constraint

Key

String

Yes

No

The tag key.

The tag key must be 1 to 128 characters in length. It cannot start with acs: or aliyun. It cannot contain http:// or https://.

Value

String

No

No

The tag value.

The tag key must be 0 to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

Response parameters

Fn::GetAtt

  • PrivateEndpoint: the private endpoint of the instance.

  • PublicEndpoint: the public endpoint of the instance.

  • VpcEndpoint: the endpoint of the VPC.

  • InstanceName: the name of the instance.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  Instance:
    Type: ALIYUN::OTS::Instance
    Properties:
      Network: NORMAL
      ClusterType: SSD
      InstanceName: TestOTS
      Description: Test Ots Instance
Outputs:
  InstanceName:
    Description: Instance name
    Value:
      Fn::GetAtt:
        - Instance
        - InstanceName
  VpcEndpoint:
    Description: Vpc endpoint
    Value:
      Fn::GetAtt:
        - Instance
        - VpcEndpoint
  PublicEndpoint:
    Description: Public endpoint
    Value:
      Fn::GetAtt:
        - Instance
        - PublicEndpoint
  PrivateEndpoint:
    Description: Private endpoint
    Value:
      Fn::GetAtt:
        - Instance
        - PrivateEndpoint

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "Instance": {
      "Type": "ALIYUN::OTS::Instance",
      "Properties": {
        "Network": "NORMAL",
        "ClusterType": "SSD",
        "InstanceName": "TestOTS",
        "Description": "Test Ots Instance"
      }
    }
  },
  "Outputs": {
    "InstanceName": {
      "Description": "Instance name",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "InstanceName"
        ]
      }
    },
    "VpcEndpoint": {
      "Description": "Vpc endpoint",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "VpcEndpoint"
        ]
      }
    },
    "PublicEndpoint": {
      "Description": "Public endpoint",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "PublicEndpoint"
        ]
      }
    },
    "PrivateEndpoint": {
      "Description": "Private endpoint",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "PrivateEndpoint"
        ]
      }
    }
  }
}