Skip to content

Commit 77637ff

Browse files
author
hellertang
authored
pgsql add atrribute uid (#786)
1 parent 4fd3734 commit 77637ff

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tencentcloud/resource_tc_postgresql_instance.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ func resourceTencentCloudPostgresqlInstance() *schema.Resource {
209209
Computed: true,
210210
Description: "Port for private access.",
211211
},
212+
"uid": {
213+
Type: schema.TypeInt,
214+
Computed: true,
215+
Description: "Uid of the postgresql instance.",
216+
},
212217
"create_time": {
213218
Type: schema.TypeString,
214219
Computed: true,
@@ -703,6 +708,7 @@ func resourceTencentCloudPostgresqlInstanceRead(d *schema.ResourceData, meta int
703708
_ = d.Set("status", instance.DBInstanceStatus)
704709
_ = d.Set("memory", instance.DBInstanceMemory)
705710
_ = d.Set("storage", instance.DBInstanceStorage)
711+
_ = d.Set("uid", instance.Uid)
706712

707713
// ignore spec_code
708714
// qcs::postgres:ap-guangzhou:uin/123435236:DBInstanceId/postgres-xxx

website/docs/r/postgresql_instance.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ In addition to all arguments above, the following attributes are exported:
8686
* `private_access_port` - Port for private access.
8787
* `public_access_host` - Host for public access.
8888
* `public_access_port` - Port for public access.
89+
* `uid` - Uid of the postgresql instance.
8990

9091

9192
## Import

0 commit comments

Comments
 (0)