Updated on 2023-12-13 GMT+08:00

DBSS.Instance

Element Description

The DBSS.Instance element is used to create Database Security Service (DBSS) resources.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

comment

No

Remark information.

Type: string

vpcId

Yes

VPC ID of the tenant production.

Type: HuaweiCloud.VPC.VPC.Id

name

Yes

Name of CloudServer.

Type: string

periodType

No

Type of subscription period.

Type: HuaweiCloud.Common.PeriodType

Default: month

periodNum

No

Number of subscription period.

Type: HuaweiCloud.Common.PeriodNum

Default: 1

resourceSpecCode

Yes

Resource Specification Types which have been registered at CBC.

Type: string

publicIp

No

The EIP configuration of CloudServer.

Type: ECS.PublicIP

Value Description: If you do not want to use an elastic IP address, do not configure this parameter. To enable automatic allocation of elastic IP addresses, specify the information of the IP address to be created. To use an existing elastic IP address, specify the information of the existing elastic IP address.

Default: {}

subscriptionNum

No

Number of subscriptions.

Type: integer

Default: 1

Value Constraint: The value can only be 1.

securityGroups

Yes

The SecurityGroup information of CloudServer.

Type: ECS.SecurityGroup Array

nics

Yes

The NIC configuration of CloudServer.

Type: ECS.NICS Array

availabilityZone1

Yes

Name of Master AvailabilityZone.

Type: HuaweiCloud.ECS.AvailabilityZone.Name

availabilityZone2

Yes

Name of Slave AvailabilityZone.

Type: HuaweiCloud.ECS.AvailabilityZone.Name

hxPassword

Yes

The login password of Hx.

Type: secret

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

VPC.Subnet

ContainedIn

VPC.VPC

Connected

VPC.SecurityGroup

Connected

VPC.EIP

Return Value

Property

Type

Description

refID

string

Database Security Service ID

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  dbss-name:
    description: Name of CloudServer
  vpc-id:
    description: VPC ID of the tenant production
  subnet-vpcid:
    description: Subnet ID
  security-groups-id:
    description: ID of the security group
  availability-zone1:
    description: Name of master availabilityZone
  availability-zone2:
    description: Name of slave availabilityZone
  resource-spec-code:
    description: Resource specification Type
  hx-password:
    description: The login password of Hx
node_templates:
  my-dbss:
    type: HuaweiCloud.DBSS.Instance
    properties:
      name: {get_input: dbss-name}
      vpcId: {get_input: vpc-id}
      availabilityZone1: {get_input: availability-zone1}
      availabilityZone2: {get_input: availability-zone2}
      nics:
        - subnetId: {get_input: subnet-vpcid}
      security_groups:
        - id: {get_input: security-groups-id}
      securityGroups: {get_input: ecs-name}
      subscriptionNum: 1
      resourceSpecCode: {get_input: resource-spec-code}
      hxPassword: {get_input: hx-password}
outputs:
  ha-id:
    description: Database Security Service ID