更新时间:2023-04-20 GMT+08:00
分享

VPCEndpoint.EndpointService

模型说明

VPCEndpoint.EndpointService元素用于创建终端节点服务。终端节点服务指将云服务或用户私有服务配置为VPC终端节点支持的服务。

模型属性

表1 模型定义属性说明

属性

是否必选

描述

serviceType

终端节点服务类型

参数类型:string

vpcId

终端节点服务对应后端资源所在的VPC的ID

参数类型:HuaweiCloud.VPC.VPC.Id

portId

标识终端节点服务后端资源的ID,格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)

参数类型:string

approvalEnabled

是否需要审批

参数类型:boolean

dnsNames

域名(interface类型时有效)普通租户不可创,仅支持op_service用户创建

参数类型:string数组

serverType

资源类型

参数类型:string

ports

服务开放的端口映射列表

参数类型:VPCEndpoint.Ports数组

关联关系

表2 关联关系说明

关系说明

关联节点

被包含关系

VPC.VPC

输出

属性

参数类型

描述

serverType

string

VPCEndpoint后端服务类型(VM/VIP/LB)

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  my-vpc:
    description: 终端节点服务对应后端资源所在的VPC的ID
  my-endpointservice_serverType:
    description: 终端节点服务类型
  my-endpointservice_portId:
    description: 标识终端节点服务后端资源的ID
node_templates:
  my-endpointservice:
    type: HuaweiCloud.VPCEndpoint.EndpointService
    properties:
      vpcId:
        get_input: my-vpc
      ports:
        - clientPort: 8080
          serverPort: 80
          protocol: TCP
      serverType:
        get_input: my-endpointservice_serverType
      portId:
        get_input: my-endpointservice_portId
分享:

    相关文档

    相关产品