Skip to content

Commit 1bb4ba2

Browse files
committed
Merge branch 'master' into rnfs
2 parents f691102 + db591ef commit 1bb4ba2

36 files changed

+2123
-256
lines changed

.secrets.baseline

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.mod|go.sum|.*.map|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-09-10T10:45:53Z",
6+
"generated_at": "2025-09-16T08:11:13Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -517,6 +517,16 @@
517517
"verified_result": null
518518
}
519519
],
520+
"examples/ibm-db2/main.tf": [
521+
{
522+
"hashed_secret": "a72bbcb46048bc597b5d0ae17aef962773429c1e",
523+
"is_secret": false,
524+
"is_verified": false,
525+
"line_number": 26,
526+
"type": "Secret Keyword",
527+
"verified_result": null
528+
}
529+
],
520530
"examples/ibm-direct-link-provider/terraform.tfvars": [
521531
{
522532
"hashed_secret": "55518b11e5013893f3b9f074209da1e3d4b2a6e7",
@@ -944,15 +954,15 @@
944954
"hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9",
945955
"is_secret": false,
946956
"is_verified": false,
947-
"line_number": 2462,
957+
"line_number": 2463,
948958
"type": "Secret Keyword",
949959
"verified_result": null
950960
},
951961
{
952962
"hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437",
953963
"is_secret": false,
954964
"is_verified": false,
955-
"line_number": 2468,
965+
"line_number": 2469,
956966
"type": "Secret Keyword",
957967
"verified_result": null
958968
}
@@ -2795,6 +2805,44 @@
27952805
"verified_result": null
27962806
}
27972807
],
2808+
"ibm/service/db2/data_source_ibm_db2_list_users.go": [
2809+
{
2810+
"hashed_secret": "3046d9f6cfaaeea6eed9bb7a4ab010fe49b0cfd4",
2811+
"is_secret": false,
2812+
"is_verified": false,
2813+
"line_number": 86,
2814+
"type": "Secret Keyword",
2815+
"verified_result": null
2816+
},
2817+
{
2818+
"hashed_secret": "2c7d1e61c036dc18b2e9b3e6392c8e59c8437f23",
2819+
"is_secret": false,
2820+
"is_verified": false,
2821+
"line_number": 225,
2822+
"type": "Secret Keyword",
2823+
"verified_result": null
2824+
}
2825+
],
2826+
"ibm/service/db2/data_source_ibm_db2_list_users_test.go": [
2827+
{
2828+
"hashed_secret": "7380498ba3ddc3b9c17fd968d76935a7587a625d",
2829+
"is_secret": false,
2830+
"is_verified": false,
2831+
"line_number": 61,
2832+
"type": "Secret Keyword",
2833+
"verified_result": null
2834+
}
2835+
],
2836+
"ibm/service/db2/resource_ibm_db2_instance_test.go": [
2837+
{
2838+
"hashed_secret": "a72bbcb46048bc597b5d0ae17aef962773429c1e",
2839+
"is_secret": false,
2840+
"is_verified": false,
2841+
"line_number": 500,
2842+
"type": "Secret Keyword",
2843+
"verified_result": null
2844+
}
2845+
],
27982846
"ibm/service/directlink/resource_ibm_dl_provider_gateway_test.go": [
27992847
{
28002848
"hashed_secret": "a184c8ba0974f2e1da4ca1d71f54e1cf40604335",
@@ -5112,11 +5160,19 @@
51125160
}
51135161
],
51145162
"website/docs/r/db2_instance.html.markdown": [
5163+
{
5164+
"hashed_secret": "a72bbcb46048bc597b5d0ae17aef962773429c1e",
5165+
"is_secret": false,
5166+
"is_verified": false,
5167+
"line_number": 83,
5168+
"type": "Secret Keyword",
5169+
"verified_result": null
5170+
},
51155171
{
51165172
"hashed_secret": "91199272d5d6a574a51722ca6f3d1148edb1a0e7",
51175173
"is_secret": false,
51185174
"is_verified": false,
5119-
"line_number": 272,
5175+
"line_number": 354,
51205176
"type": "Secret Keyword",
51215177
"verified_result": null
51225178
}
@@ -5936,7 +5992,7 @@
59365992
}
59375993
]
59385994
},
5939-
"version": "0.13.1+ibm.61.dss",
5995+
"version": "0.13.1+ibm.62.dss",
59405996
"word_list": {
59415997
"file": null,
59425998
"hash": null

examples/ibm-db2/main.tf

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,38 @@ resource "ibm_db2" "db2_instance" {
1717
disk_encryption_key_crn = "none"
1818
oracle_compatibility = "no"
1919

20+
// user configuration required for create and update
21+
# users_config {
22+
# id = "test-user"
23+
# iam = "false"
24+
# ibmid = "test-ibm-id"
25+
# name = "test_user"
26+
# password = "dEkMc43@gfAPl!867^dSbu"
27+
# role = "bluuser"
28+
# email = "[email protected]"
29+
# locked = "no"
30+
# authentication {
31+
# method = "internal"
32+
# policy_id = "Default"
33+
# }
34+
# }
35+
36+
// allowed list of ip address
37+
# allowlist_config {
38+
# ip_addresses {
39+
# address = "127.0.0.32"
40+
# description = "A sample IP address"
41+
# }
42+
# }
43+
2044
autoscale_config {
2145
auto_scaling_enabled = "true"
2246
auto_scaling_threshold = "60"
2347
auto_scaling_over_time_period = "15"
2448
auto_scaling_pause_limit = "70"
2549
auto_scaling_allow_plan_limit = "true"
2650
}
27-
// custom_setting_config {
51+
// custom_setting_config {
2852
// db {
2953
// act_sortmem_limit = "NONE"
3054
// alt_collate = "IDENTITY_16BIT"
@@ -219,4 +243,9 @@ resource "ibm_db2" "db2_instance" {
219243
//DataSource reading backups of Db2 instance
220244
# data "ibm_db2_backup" "Db2-kj-test-pub" {
221245
# deployment_id = "crn%3Av1%3Astaging%3Apublic%3Adashdb-for-transactions%3Aus-south%3Aa%2Fe7e3e87b512f474381c0684a5ecbba03%3A5d673016-3dbf-428c-8e59-e6ab82028b53%3A%3A"
222-
# }
246+
# }
247+
248+
// Db2 SaaS List Users
249+
#data "ibm_db2_users" "db2_list_users" {
250+
# x_deployment_id = "crn:v1:staging:public:dashdb-for-transactions:us-south:a/081cc8d873fc41268d721af06b1f81e2:f03f761b-9a01-4bb5-a06b-57dab66ff8c9::"
251+
#}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/IBM/appconfiguration-go-admin-sdk v0.5.1
1010
github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f
1111
github.com/IBM/cloud-databases-go-sdk v0.8.0
12-
github.com/IBM/cloud-db2-go-sdk v0.2.3
12+
github.com/IBM/cloud-db2-go-sdk v0.2.4
1313
github.com/IBM/cloudant-go-sdk v0.8.0
1414
github.com/IBM/code-engine-go-sdk v0.0.0-20241217191651-e1821f8c58c3
1515
github.com/IBM/configuration-aggregator-go-sdk v0.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f h1:4c1
104104
github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f/go.mod h1:d22kTYY7RYBWcQlZpqrSdshpB/lJ16viWS5Sbjtlc8s=
105105
github.com/IBM/cloud-databases-go-sdk v0.8.0 h1:uMFqhnc/roVTzfCaUsJ23eaHKjChhGpM1F7Mpxik0bo=
106106
github.com/IBM/cloud-databases-go-sdk v0.8.0/go.mod h1:JYucI1PdwqbAd8XGdDAchxzxRP7bxOh1zUnseovHKsc=
107-
github.com/IBM/cloud-db2-go-sdk v0.2.3 h1:R+8uFXSZFOsBDC7nKqW9DgyGgT9Pop589ziUIaw2Tek=
108-
github.com/IBM/cloud-db2-go-sdk v0.2.3/go.mod h1:jEJMNXX2KOE+Hhk3M8CBq0qi9CZ0eRK36xmhuBPSiNA=
107+
github.com/IBM/cloud-db2-go-sdk v0.2.4 h1:kCiFoKav2FVrZqukoSAp0ivH8xBZDYipFBNkiyAXDw0=
108+
github.com/IBM/cloud-db2-go-sdk v0.2.4/go.mod h1:U1E6eRDEL5zWTE+aP9zWRC1DyaXB29a0kkTvhlCT9Wc=
109109
github.com/IBM/cloudant-go-sdk v0.8.0 h1:XzaqZFy5fm1Q9+iK52X5zRW39SHaahT9pf5SRgVTsTY=
110110
github.com/IBM/cloudant-go-sdk v0.8.0/go.mod h1:zDGBs8ideVtn9MehXbIQNI3852B68BsMtKJvq3iPn/Q=
111111
github.com/IBM/code-engine-go-sdk v0.0.0-20241217191651-e1821f8c58c3 h1:bNopmSDZEmWf+Q4ZqwnT3LY7vNt7S3oVH3PXTZHuLmE=

ibm/provider/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ func Provider() *schema.Provider {
363363
"ibm_db2_autoscale": db2.DataSourceIbmDb2Autoscale(),
364364
"ibm_db2_backup": db2.DataSourceIbmDb2Backup(),
365365
"ibm_db2_tuneable_param": db2.DataSourceIbmDb2TuneableParam(),
366+
"ibm_db2_users": db2.DataSourceIbmDb2Users(),
366367
"ibm_compute_bare_metal": classicinfrastructure.DataSourceIBMComputeBareMetal(),
367368
"ibm_compute_image_template": classicinfrastructure.DataSourceIBMComputeImageTemplate(),
368369
"ibm_compute_placement_group": classicinfrastructure.DataSourceIBMComputePlacementGroup(),

0 commit comments

Comments
 (0)