全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

ksyun_sqlservers

最近更新时间:2025-03-18 20:10:11

此数据源提供HRDS SQLServer实例信息。

使用示例

data "ksyun_sqlservers" "search-sqlservers"{
  output_file = "output_file"
  db_instance_identifier = "***"
  db_instance_type = "HRDS-SS"
  keyword = ""
  order = ""
  project_id = ""
  marker = ""
  max_records = ""
}

参数参考

The following arguments are supported:

  • output_file - (Required) The file name of the content store.

  • db_instance_identifier - (Optional) Instance ID. If omitted, all instances are queried.

  • db_instance_type - (Optional) The type of the instance, which is HRDS_SS (highly available).

  • db_instance_status - (Optional) Instance status. Valid values are active and invalid (please renew).

  • keyword - (Optional) The keyword for fuzzy filtering by name or VIP.

  • order - (Optional) The way that the list is sorted. The value is a case sensitive string, which can be default (default sorting method) or group (sorting by replication group, will rank read-only instances after their primary instances).

  • project_id - (Optional) The ID of the project to which the instance is assigned. The default value is all projects.

  • marker - (Optional) Record start offset.

  • max_records - (Optional) The maximum number of entries in the result of each page. The value range is 1 to 100.

支持以下参数:

  • output_file - (必选)内容存储的文件名称。

  • db_instance_identifier - (可选)实例ID。如果省略,将查询所有实例。

  • db_instance_type - (可选)实例类型,为HRDS_SS(高可用)。

  • db_instance_status - (可选)实例状态。有效值为activeinvalid(无效,请续费)。

  • keyword - (可选)用于通过名称或VIP进行模糊过滤的关键字。

  • order - (可选)列表的排序方式。值是一个区分大小写的字符串,可以是default(默认排序方法)或group(按复制组排序,将只读实例排在它们的主实例之后)。

  • project_id - (可选)实例分配的项目ID。默认值为all projects

  • marker - (可选)记录开始偏移量。

  • max_records - (可选)每页结果中条目的最大数量。值范围是1到100。

属性参考

In addition to all arguments above, the following attributes are exported:

  • DBInstanceClass - Instance specifications

  • Vcpus - Number of CPUs

  • Disk - Hard disk size

  • Ram - Memory size

  • DBInstanceIdentifier - Instance ID

  • DBInstanceName - Instance name

  • DBInstanceStatus - Instance status

  • DBInstanceType - Instance type

  • DBParameterGroupId - Parameter group ID

  • GroupId - Group ID

  • SecurityGroupId - Security group ID

  • Vip - Virtual IP

  • Port - Port number

  • Engine - Database engine

  • EngineVersion - Database engine version

  • InstanceCreateTime - Instance creation time

  • MasterUserName - User name of the primary account

  • DatastoreVersionId - Database version

  • Region - Region

  • VpcId - Virtual private network ID

  • ReadReplicaDBInstanceIdentifiers - Read-only instance

  • BillType - Billing type

  • MultiAvailabilityZone - Multi-availability zone

  • ProductId - Product ID

  • DiskUsed - Hard disk usage

  • ProjectId - Project ID

  • ProjectName - Project name

除了上述所有参数外,还导出以下属性:

  • DBInstanceClass - 实例规格

  • Vcpus - CPU数量

  • Disk - 硬盘大小

  • Ram - 内存大小

  • DBInstanceIdentifier - 实例ID

  • DBInstanceName - 实例名称

  • DBInstanceStatus - 实例状态

  • DBInstanceType - 实例类型

  • DBParameterGroupId - 参数组ID

  • GroupId - 组ID

  • SecurityGroupId - 安全组ID

  • Vip - 虚拟IP

  • Port - 端口号

  • Engine - 数据库引擎

  • EngineVersion - 数据库引擎版本

  • InstanceCreateTime - 实例创建时间

  • MasterUserName - 主账户用户名

  • DatastoreVersionId - 数据库版本

  • Region - 区域

  • VpcId - 虚拟私有网络ID

  • ReadReplicaDBInstanceIdentifiers - 只读实例

  • BillType - 计费类型

  • MultiAvailabilityZone - 多可用区

  • ProductId - 产品ID

  • DiskUsed - 硬盘使用情况

  • ProjectId - 项目ID

  • ProjectName - 项目名称

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容