你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Neon.Postgres 组织/项目/分支/neon数据库 2025-06-23-preview

Bicep 资源定义

可以使用目标作部署组织/项目/分支/neonDatabases 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Neon.Postgres/organizations/projects/branches/neonDatabases 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Neon.Postgres/organizations/projects/branches/neonDatabases@2025-06-23-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    attributes: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    branchId: 'string'
    databaseName: 'string'
    entityName: 'string'
    ownerName: 'string'
  }
}

属性值

Neon.Postgres/organizations/projects/branches/neonDatabases

Name Description Value
name 资源名称 string

Constraints:
模式 = ^\S.{0,62}\S$|^\S$ (必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称: 组织/项目/分支
properties 此资源的资源特定属性。 NeonDatabaseProperties

Attributes

Name Description Value
name 属性名称 string (必需)
value 特性的值 string (必需)

NeonDatabaseProperties

Name Description Value
attributes 实体的其他属性 Attributes[]
branchId 此数据库所属的分支的 ID 字符串
databaseName 数据库的名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
entityName 资源名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
ownerName 拥有数据库的角色的名称 字符串

ARM 模板资源定义

可以使用目标作部署组织/项目/分支/neonDatabases 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Neon.Postgres/organizations/projects/branches/neonDatabases 资源,请将以下 JSON 添加到模板。

{
  "type": "Neon.Postgres/organizations/projects/branches/neonDatabases",
  "apiVersion": "2025-06-23-preview",
  "name": "string",
  "properties": {
    "attributes": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "branchId": "string",
    "databaseName": "string",
    "entityName": "string",
    "ownerName": "string"
  }
}

属性值

Neon.Postgres/organizations/projects/branches/neonDatabases

Name Description Value
apiVersion API 版本 “2025-06-23-预览”
name 资源名称 string

Constraints:
模式 = ^\S.{0,62}\S$|^\S$ (必需)
properties 此资源的资源特定属性。 NeonDatabaseProperties
类型 资源类型 'Neon.Postgres/organizations/projects/branches/neonDatabases'

Attributes

Name Description Value
name 属性名称 string (必需)
value 特性的值 string (必需)

NeonDatabaseProperties

Name Description Value
attributes 实体的其他属性 Attributes[]
branchId 此数据库所属的分支的 ID 字符串
databaseName 数据库的名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
entityName 资源名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
ownerName 拥有数据库的角色的名称 字符串

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标作部署组织/项目/分支/neonDatabases 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Neon.Postgres/organizations/projects/branches/neonDatabases 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Neon.Postgres/organizations/projects/branches/neonDatabases@2025-06-23-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      attributes = [
        {
          name = "string"
          value = "string"
        }
      ]
      branchId = "string"
      databaseName = "string"
      entityName = "string"
      ownerName = "string"
    }
  }
}

属性值

Neon.Postgres/organizations/projects/branches/neonDatabases

Name Description Value
name 资源名称 string

Constraints:
模式 = ^\S.{0,62}\S$|^\S$ (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID: 组织/项目/分支
properties 此资源的资源特定属性。 NeonDatabaseProperties
类型 资源类型 “Neon.Postgres/organizations/projects/branches/neonDatabases@2025-06-23-preview”

Attributes

Name Description Value
name 属性名称 string (必需)
value 特性的值 string (必需)

NeonDatabaseProperties

Name Description Value
attributes 实体的其他属性 Attributes[]
branchId 此数据库所属的分支的 ID 字符串
databaseName 数据库的名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
entityName 资源名称 string

Constraints:
图案 = ^\S.{0,62}\S$|^\S$
ownerName 拥有数据库的角色的名称 字符串